]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
memory: set ioeventfd_update_pending after address_space_update_ioeventfds
authorlinzhecheng <linzc@zju.edu.cn>
Sun, 14 Jan 2018 12:55:19 +0000 (20:55 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 12 Feb 2018 02:24:14 +0000 (20:24 -0600)
We should set ioeventfd_update_pending same as memory_region_update_pending.

Signed-off-by: linzhecheng <linzc@zju.edu.cn>
Message-Id: <1515934519-16158-1-git-send-email-linzc@zju.edu.cn>
Cc: qemu-stable@nongnu.org
Fixes: ade9c1aac5292ff698fa550adebe794c37d86cc9
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 0b15209571e5eae706027f42da2ecd175eddc4e3)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
memory.c

index e26e5a3b1defc2d047e1ef412a9773a40698caca..226a7e8a2c542c80b79c9d3002b9f5e065827e40 100644 (file)
--- a/memory.c
+++ b/memory.c
@@ -1091,6 +1091,7 @@ void memory_region_transaction_commit(void)
                 address_space_update_ioeventfds(as);
             }
             memory_region_update_pending = false;
+            ioeventfd_update_pending = false;
             MEMORY_LISTENER_CALL_GLOBAL(commit, Forward);
         } else if (ioeventfd_update_pending) {
             QTAILQ_FOREACH(as, &address_spaces, address_spaces_link) {