]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: vmx: do not unconditionally clear EFER switching
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 26 Sep 2018 16:23:43 +0000 (09:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:29:51 +0000 (00:29 +0200)
commit3bc921379c71ae05ce6c227ef0a83bd47d090207
treef6646bcbd9a5aea74b655463b25898b7f814162f
parentd9058f243cf87d2e4b63b0067cb9b76b153a0332
KVM: vmx: do not unconditionally clear EFER switching

Do not unconditionally call clear_atomic_switch_msr() when updating
EFER.  This adds up to four unnecessary VMWrites in the case where
guest_efer != host_efer, e.g. if the load_on_{entry,exit} bits were
already set.

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