]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: vmx: skip VMWRITE of HOST_{FS,GS}_SEL when possible
authorSean Christopherson <sean.j.christopherson@intel.com>
Mon, 23 Jul 2018 19:32:49 +0000 (12:32 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:59:16 +0000 (17:59 +0200)
commit123378a1e09100cc2cda5cd7e397ba149b8121fb
treee5eec36f1c8ed760755913d80ec90738c87a19e8
parentc53359bb6efbb3c544bef5505df08a17d89f21d1
KVM: vmx: skip VMWRITE of HOST_{FS,GS}_SEL when possible

On a 64-bit host, FS.sel and GS.sel are all but guaranteed to be 0,
which in turn means they'll rarely change.  Skip the VMWRITE for the
associated VMCS fields when loading host state if the selector hasn't
changed since the last VMWRITE.

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