KVM: vmx: write HOST_IA32_EFER in vmx_set_constant_host_state()
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 26 Sep 2018 16:23:56 +0000 (09:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:29:59 +0000 (00:29 +0200)
commit5a5e8a15d76e6dd62e3a94fea499057bd048abbc
tree7561a66efc18d786dd011a1980e56590225ec815
parent09abb5e3e5e50eef72b09adaa798b7ef0ce9239b
KVM: vmx: write HOST_IA32_EFER in vmx_set_constant_host_state()

EFER is constant in the host and writing it once during setup means
we can skip writing the host value in add_atomic_switch_msr_special().

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