]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Make CR4.VMXE reserved for the guest
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jul 2020 11:02:50 +0000 (07:02 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jul 2020 20:21:58 +0000 (16:21 -0400)
commit26d3dc56586a5ad3529e12317d0ad90b4348b613
treee67e0a34edefc7ff722716d5fd7dbdf616626414
parent666969d167e592e0c1d80a1bfb8347eec669bd6c
KVM: x86: Make CR4.VMXE reserved for the guest

CR4.VMXE is reserved unless the VMX CPUID bit is set.  On Intel,
it is also tested by vmx_set_cr4, but AMD relies on kvm_valid_cr4,
so fix it.

Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.h