mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
ivshmem: wrap ivshmem_del_eventfd loops with transaction
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
committed by
Avi Kivity
parent
563027cc0c
commit
b6a1f3a569
@@ -369,8 +369,12 @@ static void close_guest_eventfds(IVShmemState *s, int posn)
|
||||
|
||||
guest_curr_max = s->peers[posn].nb_eventfds;
|
||||
|
||||
memory_region_transaction_begin();
|
||||
for (i = 0; i < guest_curr_max; i++) {
|
||||
ivshmem_del_eventfd(s, posn, i);
|
||||
}
|
||||
memory_region_transaction_commit();
|
||||
for (i = 0; i < guest_curr_max; i++) {
|
||||
event_notifier_cleanup(&s->peers[posn].eventfds[i]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user