KVM: VMX: Invert the ordering of saving guest/host scratch reg at VM-Enter
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 25 Jan 2019 15:41:06 +0000 (07:41 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Feb 2019 12:12:25 +0000 (13:12 +0100)
commit217aaff53c25f03b1d2fc23eff9dc2bae34f690e
treed00cf0b9fb832403cb21ed88b0464e0e7351b63f
parentc9afc58cc368623aaa34a62e321eea2a59240f6f
KVM: VMX: Invert the ordering of saving guest/host scratch reg at VM-Enter

Switching the ordering allows for an out-of-line path for VM-Fail
that elides saving guest state but still shares the register clearing
with the VM-Exit path.

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