KVM: nVMX: Free only the affected contexts when emulating INVEPT
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 20 Mar 2020 21:28:31 +0000 (14:28 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Apr 2020 13:12:58 +0000 (09:12 -0400)
commitce8fe7b77bd8ee405295e349c82d0ef8c9788200
tree44a7747dda2302b8876c51e153a3685d1478eb25
parent9805c5f74b8a65da397ec6b70734e44f1f191c0b
KVM: nVMX: Free only the affected contexts when emulating INVEPT

Add logic to handle_invept() to free only those roots that match the
target EPT context when emulating a single-context INVEPT.

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