]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: try to set EFER bits correctly when initializing controls
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 26 Sep 2018 16:23:44 +0000 (09:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:29:52 +0000 (00:29 +0200)
commit7e8f5028a6da8aa6c888688c074800c9510ee513
tree1d5fda6a47264c42a8452aae71dce583eba44003
parent3bc921379c71ae05ce6c227ef0a83bd47d090207
KVM: nVMX: try to set EFER bits correctly when initializing controls

VM_ENTRY_IA32E_MODE and VM_{ENTRY,EXIT}_LOAD_IA32_EFER will be
explicitly set/cleared as needed by vmx_set_efer(), but attempt
to get the bits set correctly when intializing the control fields.
Setting the value correctly can avoid multiple VMWrites.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c