Commit 614fb9d1 authored by Sean Christopherson's avatar Sean Christopherson
Browse files

KVM: Assert that slots_lock is held when resetting per-vCPU dirty rings

Assert that slots_lock is held in kvm_dirty_ring_reset() and add a comment
to explain _why_ slots needs to be held for the duration of the reset.

Link: https://lore.kernel.org/all/aCSns6Q5oTkdXUEe@google.com


Suggested-by: default avatarJames Houghton <jthoughton@google.com>
Reviewed-by: default avatarYan Zhao <yan.y.zhao@intel.com>
Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20250516213540.2546077-7-seanjc@google.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent e46ad851
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment