KVM: nVMX: Skip IBPB when temporarily switching between vmcs01 and vmcs02
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 6 May 2020 23:58:50 +0000 (16:58 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 May 2020 16:15:03 +0000 (12:15 -0400)
commit1af1bb05625bcdd09522f416b62bcc72cc2fdd3b
tree5e6c6b69869cacc8c2c3a1f7d0c1b9258dc85471
parent5c911beff20aa8639e7a1f28988736c13e03ed54
KVM: nVMX: Skip IBPB when temporarily switching between vmcs01 and vmcs02

Skip the Indirect Branch Prediction Barrier that is triggered on a VMCS
switch when temporarily loading vmcs02 to synchronize it to vmcs12, i.e.
give copy_vmcs02_to_vmcs12_rare() the same treatment as
vmx_switch_vmcs().

Make vmx_vcpu_load() static now that it's only referenced within vmx.c.

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