]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0a052215ce92c0631c9f23bfc7c0de8f8455ed1
tree7561a66efc18d786dd011a1980e56590225ec815
parent8d771a98c687e5c38df55d40dd97edfff618ffbc
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