]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f94e6bf487c179b9cd072e1c73f1c94bbfcd32e
tree2cf6e974f2ef3c5209263052a5f9c4f733d41464
parent882c9dd3199297a20b8985cd3c97f835c1cd7a0f
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