]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SEV: do not take kvm->lock when destroying
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Nov 2021 00:50:35 +0000 (19:50 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Nov 2021 08:54:14 +0000 (03:54 -0500)
commitbd230c2622a63b2444b4b5895fbbdb0a0aba5d35
treeef056b1ae7077a9352a201a3cf5f22bfdd9ea6ce
parentf23cbd60acd1c31aaacd6cbdb6c83ea799d15712
KVM: SEV: do not take kvm->lock when destroying

Taking the lock is useless since there are no other references,
and there are already accesses (e.g. to sev->enc_context_owner)
that do not take it.  So get rid of it.

Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211123005036.2954379-12-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c