Commit eddd9e8
committed
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>1 parent 727ae37 commit eddd9e8
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5906 | 5906 | | |
5907 | 5907 | | |
5908 | 5908 | | |
5909 | | - | |
5910 | 5909 | | |
5911 | 5910 | | |
5912 | 5911 | | |
| |||
5916 | 5915 | | |
5917 | 5916 | | |
5918 | 5917 | | |
| 5918 | + | |
| 5919 | + | |
5919 | 5920 | | |
5920 | 5921 | | |
5921 | 5922 | | |
| |||
0 commit comments