[PATCH v2 00/10] x86: Introduce MSR_ARCH_CAPS into featuresets

Andrew Cooper posted 10 patches 1 year ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20230524112526.3475200-1-andrew.cooper3@citrix.com
tools/misc/xen-cpuid.c                      | 57 +++++++++-----
tools/tests/cpu-policy/test-cpu-policy.c    |  5 --
xen/arch/x86/cpu-policy.c                   | 83 ++++++++++-----------
xen/arch/x86/cpu/common.c                   |  5 ++
xen/arch/x86/hvm/vmx/vmx.c                  |  8 +-
xen/arch/x86/include/asm/cpufeature.h       | 23 +++++-
xen/arch/x86/include/asm/processor.h        |  2 +-
xen/arch/x86/spec_ctrl.c                    | 56 +++++++-------
xen/arch/x86/tsx.c                          | 13 ++--
xen/include/public/arch-x86/cpufeatureset.h | 29 ++++++-
xen/include/xen/lib/x86/cpu-policy.h        | 50 ++++++-------
xen/lib/x86/cpuid.c                         | 11 ++-
xen/tools/gen-cpuid.py                      |  3 +
13 files changed, 208 insertions(+), 137 deletions(-)
[PATCH v2 00/10] x86: Introduce MSR_ARCH_CAPS into featuresets
Posted by Andrew Cooper 1 year ago
Also combined with "x86: Feature check cleanup" for simplicity.

See individual patches for v2 deltas.

Andrew Cooper (10):
  x86/boot: Rework dom0 feature configuration
  x86/boot: Adjust MSR_ARCH_CAPS handling for the Host policy
  x86/cpu-policy: Infrastructure for MSR_ARCH_CAPS
  x86/cpu-policy: MSR_ARCH_CAPS feature names
  x86/boot: Record MSR_ARCH_CAPS for the Raw and Host CPU policy
  x86/boot: Expose MSR_ARCH_CAPS data in guest max policies
  x86/cpufeature: Rework {boot_,}cpu_has()
  x86/vtx: Remove opencoded MSR_ARCH_CAPS check
  x86/tsx: Remove opencoded MSR_ARCH_CAPS check
  x86/spec-ctrl: Remove opencoded MSR_ARCH_CAPS check

 tools/misc/xen-cpuid.c                      | 57 +++++++++-----
 tools/tests/cpu-policy/test-cpu-policy.c    |  5 --
 xen/arch/x86/cpu-policy.c                   | 83 ++++++++++-----------
 xen/arch/x86/cpu/common.c                   |  5 ++
 xen/arch/x86/hvm/vmx/vmx.c                  |  8 +-
 xen/arch/x86/include/asm/cpufeature.h       | 23 +++++-
 xen/arch/x86/include/asm/processor.h        |  2 +-
 xen/arch/x86/spec_ctrl.c                    | 56 +++++++-------
 xen/arch/x86/tsx.c                          | 13 ++--
 xen/include/public/arch-x86/cpufeatureset.h | 29 ++++++-
 xen/include/xen/lib/x86/cpu-policy.h        | 50 ++++++-------
 xen/lib/x86/cpuid.c                         | 11 ++-
 xen/tools/gen-cpuid.py                      |  3 +
 13 files changed, 208 insertions(+), 137 deletions(-)

-- 
2.30.2