summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx/capabilities.h
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2020-09-23 18:50:46 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-09-28 13:57:29 +0200
commitb936d3eb92b7c1258805bebecc7eaac0c8a51b7f (patch)
tree17366cfba22b260da80a4b8cb44987ca1c1ab230 /arch/x86/kvm/vmx/capabilities.h
parentKVM: VMX: Rename vmx_*_supported() helpers to cpu_has_vmx_*() (diff)
downloadlinux-b936d3eb92b7c1258805bebecc7eaac0c8a51b7f.tar.xz
linux-b936d3eb92b7c1258805bebecc7eaac0c8a51b7f.zip
KVM: VMX: Unconditionally clear CPUID.INVPCID if !CPUID.PCID
If PCID is not exposed to the guest, clear INVPCID in the guest's CPUID even if the VMCS INVPCID enable is not supported. This will allow consolidating the secondary execution control adjustment code without having to special case INVPCID. Technically, this fixes a bug where !CPUID.PCID && CPUID.INVCPID would result in unexpected guest behavior (#UD instead of #GP/#PF), but KVM doesn't support exposing INVPCID if it's not supported in the VMCS, i.e. such a config is broken/bogus no matter what. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Message-Id: <20200923165048.20486-3-sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx/capabilities.h')
0 files changed, 0 insertions, 0 deletions