KVM: VMX: Allow userspace to set all supported FEATURE_CONTROL bits
authorSean Christopherson <seanjc@google.com>
Tue, 7 Jun 2022 23:23:51 +0000 (23:23 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 1 Dec 2022 00:29:53 +0000 (16:29 -0800)
commitd2a00af2061db863890e32a4a99a6f82c330df1f
tree73658f1e257ff94d7cf1dd2157090426601e956e
parent0b5e7a16a0a79a3742f0df9e45bca46f01b40e6a
KVM: VMX: Allow userspace to set all supported FEATURE_CONTROL bits

Allow userspace to set all supported bits in MSR IA32_FEATURE_CONTROL
irrespective of the guest CPUID model, e.g. via KVM_SET_MSRS.  KVM's ABI
is that userspace is allowed to set MSRs before CPUID, i.e. can set MSRs
to values that would fault according to the guest CPUID model.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220607232353.3375324-2-seanjc@google.com
arch/x86/kvm/vmx/vmx.c