projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
563027c
)
ivshmem: wrap ivshmem_del_eventfd loops with transaction
author
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 5 Jul 2012 15:16:26 +0000
(17:16 +0200)
committer
Avi Kivity
<avi@redhat.com>
Thu, 12 Jul 2012 11:08:10 +0000
(14:08 +0300)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/ivshmem.c
patch
|
blob
|
history
diff --git
a/hw/ivshmem.c
b/hw/ivshmem.c
index 3cdbea2133032fab5206b869f69eb6fffe99d1db..19e164a35310f8ea07ff32fdccd4806efc2f187b 100644
(file)
--- 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]);
}