]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Move free_nested() below vmx_switch_vmcs()
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 23 Sep 2020 18:44:49 +0000 (11:44 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:45 +0000 (07:57 -0400)
commitddc2136994599f7015263ab725cc37f490100013
tree5757818b9959445645ab6386365ba6834fc41a92
parentf4e3e7727a94c9a4be78324b31d890b1a997afb3
KVM: nVMX: Move free_nested() below vmx_switch_vmcs()

Move free_nested() down below vmx_switch_vmcs() so that a future patch
can do an "emergency" invocation of vmx_switch_vmcs() if vmcs01 is not
the loaded VMCS when freeing nested resources.

No functional change intended.

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