]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: nSVM: leave nested mode on vCPU free
authorMaxim Levitsky <mlevitsk@redhat.com>
Thu, 3 Nov 2022 14:13:43 +0000 (16:13 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Nov 2022 16:39:53 +0000 (11:39 -0500)
commit1a1ff993edb6b85dca281050a23dcb8c7e0f95a5
tree21bc0f64dd0499a74ba4d595754108d947e19059
parent1e750c452f7e147a26ec58c666e5ea13f3042d60
KVM: x86: nSVM: leave nested mode on vCPU free

If the VM was terminated while nested, we free the nested state
while the vCPU still is in nested mode.

Soon a warning will be added for this condition.

Cc: stable@vger.kernel.org
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20221103141351.50662-2-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c