KVM: x86/mmu: Replace comment with an actual lockdep assertion on mmu_lock
authorSean Christopherson <seanjc@google.com>
Thu, 2 Feb 2023 18:27:50 +0000 (18:27 +0000)
committerSean Christopherson <seanjc@google.com>
Fri, 17 Mar 2023 23:02:07 +0000 (16:02 -0700)
commiteddd9e8302de77cea52b3b2aaa3e1db19e680dd0
tree87265ef4eba821e7b367993abcd457a06ae33974
parent727ae377013249c05359f84975d21f3d13c70907
KVM: x86/mmu: Replace comment with an actual lockdep assertion on mmu_lock

Assert that mmu_lock is held for write in __walk_slot_rmaps() instead of
hoping the function comment will magically prevent introducing bugs.

Signed-off-by: Ben Gardon <bgardon@google.com>
Link: https://lore.kernel.org/r/20230202182809.1929122-3-bgardon@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/mmu.c