]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Drop redundant VMCS switch and free_nested() call
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 23 Sep 2020 18:44:51 +0000 (11:44 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:46 +0000 (07:57 -0400)
commit4228056da8cc1a82283ffe90b15b65fc4ebf8e93
tree05f1ed45c5d9fb7216abef904f07dce15856836e
parent0457a9f04ba7c45f02d71d46162580f6f50c9e2a
KVM: nVMX: Drop redundant VMCS switch and free_nested() call

Remove the explicit switch to vmcs01 and the call to free_nested() in
nested_vmx_free_vcpu().  free_nested(), which is called unconditionally
by vmx_leave_nested(), ensures vmcs01 is loaded prior to freeing vmcs02
and friends.

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