pv-cpuid: Add PV CPUID patches

Patches are cherry-picked directly from upstream. Patches 0002-0007
applied with no conflicts.

Patch 0001 had a few conflicts because it's based on an older kernel
version. Namely:

- The list that we check in spectre_bhb_loop_affected has extra
  items. Since patch 0001 changes the signature of the function which
  is called for each item by removing the first arg, we do the same
  for the extra items.
- The call to is_midr_in_range_list in is_spectre_bhb_safe was not
  present in 0001, so the patch didn't update its signature. We do that
  ourselves.
- is_spectre_bhb_fw_affected does not exist. This function was renamed
  to has_spectre_bhb_fw_mitigation in e403e8538359d (arm64: errata:
  Assume that unknown CPUs _are_ vulnerable to Spectre BHB), and the
  relevant code section was removed, so we ignore the change.

BUG=b/416048325
TEST=presubmit
RELEASE_NOTE=None

Signed-off-by: Kevin Berry <kpberry@google.com>
Change-Id: Idfa97399d712042c740926c1955c034086bac82f
Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/119922
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Reviewed-by: Robert Kolchmeyer <rkolchmeyer@google.com>
Reviewed-by: Chetan Sharma <qoogle@google.com>
7 files changed