OSDN Git Service

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)
commit597cb7968cb6243e915ba9599195656be14773e5
tree4b67084824a0375c75e20472bbc204e9c0c37f41
parentfdba608f15e2427419997b0898750a49a735afcb
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: c9d61dcb0bc26 (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