From: Paolo Bonzini Date: Thu, 5 Jul 2012 15:16:26 +0000 (+0200) Subject: ivshmem: wrap ivshmem_del_eventfd loops with transaction X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b6a1f3a56921c80cd04d8130e713028c7c91edc1;p=qemu.git ivshmem: wrap ivshmem_del_eventfd loops with transaction Signed-off-by: Paolo Bonzini Signed-off-by: Avi Kivity --- diff --git a/hw/ivshmem.c b/hw/ivshmem.c index 3cdbea2133..19e164a353 100644 --- a/hw/ivshmem.c +++ b/hw/ivshmem.c @@ -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]); }