]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Optimize handling of VM-Entry failures in vmx_vcpu_run()
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 10 Apr 2020 17:47:02 +0000 (10:47 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Apr 2020 13:13:09 +0000 (09:13 -0400)
commit9b9e22c5e70dab2ab6127ea9dbeabe6ca1a73c4b
treee09b50fd9340a143bc6c007fc97dcdbd35a913fe
parent2e33368beef3ff02f11964c2d397bc44c5229d11
KVM: VMX: Optimize handling of VM-Entry failures in vmx_vcpu_run()

Mark the VM-Fail, VM-Exit on VM-Enter, and #MC on VM-Enter paths as
'unlikely' so as to improve code generation so that it favors successful
VM-Enter.  The performance of successful VM-Enter is for more important,
irrespective of whether or not success is actually likely.

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