]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: do early preparation of vmcs02 before check_vmentry_postreqs()
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 26 Sep 2018 16:23:52 +0000 (09:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:29:56 +0000 (00:29 +0200)
commita4e6275303daaebd4e6cadc3a9cd55aace9d6e7e
tree7a7b4a6e4dd927a41553e201250700ca240fab88
parente88264328fdcc8557de3b93a0a403bbe8704a3d6
KVM: nVMX: do early preparation of vmcs02 before check_vmentry_postreqs()

In anticipation of using vmcs02 to do early consistency checks, move
the early preparation of vmcs02 prior to checking the postreqs.  The
downside of this approach is that we'll unnecessary load vmcs02 in
the case that check_vmentry_postreqs() fails, but that is essentially
our slow path anyways (not actually slow, but it's the path we don't
really care about optimizing).

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