Skip to content

KVM: x86: Virtualize AMD CPUID faulting

Jim Mattson kvm linux-kselftest lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

* Remove supports_cpuid_fault() instead of renaming it [Sean]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: x86: Remove supports_cpuid_fault() helperarch/x86/kvm/cpuid.h arch/x86/kvm/x86.c+1 -60 replies
2/3KVM: x86: Virtualize AMD CPUID faultingarch/x86/kvm/cpuid.c arch/x86/kvm/cpuid.h arch/x86/kvm/emulate.c +1 more+26 -153 replies
3/3KVM: selftests: Update hwcr_msr_test for CPUID faulting bittools/testing/selftests/kvm/x86/hwcr_msr_test.c+5 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] KVM: x86: Virtualize AMD CPUID faulting

AMD's "disable CPUID in usermode" feature is analogous to Intel's "CPUID faulting" feature, but it is advertised and activated differently. The AMD feature is advertised via CPUID.80000021H:EAX.CpuidUserDis[bit 17] and activated by setting HWCR.CpuidUserDis[bit 35].

Add virtualization support for the AMD feature.

v1 -> v2:
* Remove supports_cpuid_fault() instead of renaming it [Sean]

v1: https://lore.kernel.org/kvm/[email protected]/

Jim Mattson (3):
KVM: x86: Remove supports_cpuid_fault() helper
KVM: x86: Virtualize AMD CPUID faulting
KVM: selftests: Update hwcr_msr_test for CPUID faulting bit

 arch/x86/kvm/cpuid.c                          |  2 +-
 arch/x86/kvm/cpuid.h                          | 11 ++++------
 arch/x86/kvm/emulate.c                        | 14 +++++++------
 arch/x86/kvm/x86.c                            | 21 ++++++++++++-------
 .../testing/selftests/kvm/x86/hwcr_msr_test.c | 10 ++++-----
 5 files changed, 32 insertions(+), 26 deletions(-)

base-commit: 85f871f6ba46f20d7fbc0b016b4db648c33220dd

Signature · 1 line
2.54.0.563.g4f69b47b94-goog