]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: Drop hack that "manually" informs lockdep of kvm->lock vs. vcpu->mutex
authorSean Christopherson <seanjc@google.com>
Wed, 9 Oct 2024 15:04:55 +0000 (08:04 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 16 Dec 2024 22:37:30 +0000 (14:37 -0800)
commit01528db67f28d5919f7b0a68900dc212165218e2
tree24ec9c04e88db975e2f26f34aa6c6d434ca6b679
parente53dc37f5a06f0be5b89fac230fcd4008f646d50
KVM: Drop hack that "manually" informs lockdep of kvm->lock vs. vcpu->mutex

Now that KVM takes vcpu->mutex inside kvm->lock when creating a vCPU, drop
the hack to manually inform lockdep of the kvm->lock => vcpu->mutex
ordering.

This effectively reverts commit 42a90008f890 ("KVM: Ensure lockdep knows
about kvm->lock vs. vcpu->mutex ordering rule").

Cc: Oliver Upton <oliver.upton@linux.dev>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20241009150455.1057573-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
virt/kvm/kvm_main.c