diff options
| author | Maxim Levitsky <mlevitsk@redhat.com> | 2022-11-03 16:13:45 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-11-17 11:39:56 -0500 |
| commit | f9697df251438b0798780900e8b43bdb12a56d64 (patch) | |
| tree | e725dfa86cd557adf6fdce934abcdbb7d7e31ff3 /arch/x86/kvm/svm/nested.c | |
| parent | KVM: x86: nSVM: harden svm_free_nested against freeing vmcb02 while still in use (diff) | |
| download | linux-f9697df251438b0798780900e8b43bdb12a56d64.tar.gz linux-f9697df251438b0798780900e8b43bdb12a56d64.zip | |
KVM: x86: add kvm_leave_nested
add kvm_leave_nested which wraps a call to nested_ops->leave_nested
into a function.
Cc: stable@vger.kernel.org
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20221103141351.50662-4-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm/nested.c')
| -rw-r--r-- | arch/x86/kvm/svm/nested.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index b02a3a1792f1..7354f0035a69 100644 --- a/arch/x86/kvm/svm/nested.c +++ b/arch/x86/kvm/svm/nested.c @@ -1146,9 +1146,6 @@ void svm_free_nested(struct vcpu_svm *svm) svm->nested.initialized = false; } -/* - * Forcibly leave nested mode in order to be able to reset the VCPU later on. - */ void svm_leave_nested(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); |
