KVM: nVMX: Lift sync_vmcs12() out of prepare_vmcs12()
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 7 May 2019 15:36:26 +0000 (08:36 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2019 09:46:06 +0000 (11:46 +0200)
commitf4f8316d2ad5f93ff0ec829a893db0728b9041bd
tree55cda8d5524f13585db87d039fe472e8e3b48ac4
parent1c6f0b47fb59d1674a6ba91b0ce58dfbfc5a76de
KVM: nVMX: Lift sync_vmcs12() out of prepare_vmcs12()

... to make it more obvious that sync_vmcs12() is invoked on all nested
VM-Exits, e.g. hiding sync_vmcs12() in prepare_vmcs12() makes it appear
that guest state is NOT propagated to vmcs12 for a normal VM-Exit.

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