KVM: VMX: Check for full VMX support when verifying CPU compatibility
authorSean Christopherson <sean.j.christopherson@intel.com>
Sat, 21 Dec 2019 04:45:10 +0000 (20:45 -0800)
committerBorislav Petkov <bp@suse.de>
Mon, 13 Jan 2020 18:26:58 +0000 (19:26 +0100)
commitff10e22e65f2b4d5d09805dd9e7194b93e303eb1
tree2cf6e974f2ef3c5209263052a5f9c4f733d41464
parenta4d0b2fdbcf75ef6654713c83c316ea3a661ddc3
KVM: VMX: Check for full VMX support when verifying CPU compatibility

Explicitly check the current CPU's IA32_FEAT_CTL and VMX feature flags
when verifying compatibility across physical CPUs.  This effectively
adds a check on IA32_FEAT_CTL to ensure that VMX is fully enabled on
all CPUs.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20191221044513.21680-17-sean.j.christopherson@intel.com
arch/x86/kvm/vmx/vmx.c