mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 12:23:36 +08: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:
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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user