]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: cleanup and fix host 64-bit mode checks
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Sep 2019 16:33:53 +0000 (18:33 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Sep 2019 17:22:33 +0000 (19:22 +0200)
commite2b1ccde42500151c2cf4151b17b11b9b8506b15
tree295565b14056307d08674bdcc0db9b1b0d8ace92
parent9a56e46addc642f30accf6ec414f7a270e71c4b2
KVM: nVMX: cleanup and fix host 64-bit mode checks

KVM was incorrectly checking vmcs12->host_ia32_efer even if the "load
IA32_EFER" exit control was reset.  Also, some checks were not using
the new CC macro for tracing.

Cleanup everything so that the vCPU's 64-bit mode is determined
directly from EFER_LMA and the VMCS checks are based on that, which
matches section 26.2.4 of the SDM.

Cc: Sean Christopherson <sean.j.christopherson@intel.com>
Cc: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Fixes: d5d05b855e6ba0460e5042fe92b5d4bd62e16f9c
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c