Skip to content

KVM: VMX: Let userspace set IA32_FEAT_CTL at will

Sean Christopherson kvm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: VMX: Allow userspace to set all supported FEATURE_CONTROL bitsarch/x86/kvm/vmx/vmx.c+31 -50 replies
2/3KVM: VMX: Move MSR_IA32_FEAT_CTL.LOCKED check into "is valid" helperarch/x86/kvm/vmx/vmx.c+8 -50 replies
3/3KVM: selftests: Verify userspace can stuff IA32_FEATURE_CONTROL at willtools/testing/selftests/kvm/include/x86_64/processor.h tools/testing/selftests/kvm/x86_64/vmx_msrs_test.c+49 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] KVM: VMX: Let userspace set IA32_FEAT_CTL at will

Fix a bug where KVM requires userspace to set the guest CPUID model in order to enable features via IA32_FEAT_CTL.

Note, the selftest builds on the vmx_msrs_test from the VMX MSRs series[*], i.e. it won't apply cleanly on kvm/queue.

[*] https://lkml.kernel.org/r/[email protected]

Sean Christopherson (3):
KVM: VMX: Allow userspace to set all supported FEATURE_CONTROL bits
KVM: VMX: Move MSR_IA32_FEAT_CTL.LOCKED check into "is valid" helper
KVM: selftests: Verify userspace can stuff IA32_FEATURE_CONTROL at
will

 arch/x86/kvm/vmx/vmx.c                        | 43 ++++++++++++++---
 .../selftests/kvm/include/x86_64/processor.h  |  2 +
 .../selftests/kvm/x86_64/vmx_msrs_test.c      | 47 +++++++++++++++++++
 3 files changed, 85 insertions(+), 7 deletions(-)

base-commit: 838fd3e5a7208ee3b95bf73898c135a44a0c589d

Signature · 1 line
2.36.1.255.ge46751e96f-goog