]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SEV: Mark nested locking of kvm->lock
authorWanpeng Li <wanpengli@tencent.com>
Wed, 5 Jan 2022 06:41:03 +0000 (22:41 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Jan 2022 17:01:55 +0000 (12:01 -0500)
commitc5811e9d6cfc4f9426a162c7dc4cc59af173e1fe
tree4b67084824a0375c75e20472bbc204e9c0c37f41
parent76b25000867111067128fbc33d63cd29fec571d9
KVM: SEV: Mark nested locking of kvm->lock

Both source and dest vms' kvm->locks are held in sev_lock_two_vms.
Mark one with a different subtype to avoid false positives from lockdep.

Fixes: 1f700abd1d20f (KVM: SEV: accept signals in sev_lock_two_vms)
Reported-by: Yiru Xu <xyru1999@gmail.com>
Tested-by: Jinrong Liang <cloudliang@tencent.com>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Message-Id: <1641364863-26331-1-git-send-email-wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c