Blame SOURCES/kvm-memory-Move-address_space_update_ioeventfds.patch

9bac43
From b512b7ed1761bb5a288314e3f1ed674bcc40a22c Mon Sep 17 00:00:00 2001
9bac43
From: David Gibson <dgibson@redhat.com>
9bac43
Date: Thu, 16 Nov 2017 03:07:24 +0100
9bac43
Subject: [PATCH 20/30] memory: Move address_space_update_ioeventfds
9bac43
9bac43
RH-Author: David Gibson <dgibson@redhat.com>
9bac43
Message-id: <20171116030732.8560-15-dgibson@redhat.com>
9bac43
Patchwork-id: 77702
9bac43
O-Subject: [PATCH 14/22] memory: Move address_space_update_ioeventfds
9bac43
Bugzilla: 1481593
9bac43
RH-Acked-by: Thomas Huth <thuth@redhat.com>
9bac43
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9bac43
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
9bac43
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
9bac43
9bac43
From: Alexey Kardashevskiy <aik@ozlabs.ru>
9bac43
9bac43
So it is called (twice) from the same function. This is to make the next
9bac43
patches a bit simpler.
9bac43
9bac43
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
9bac43
Message-Id: <20170921085110.25598-12-aik@ozlabs.ru>
9bac43
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
9bac43
(cherry picked from commit 02218487649558ed66c3689d4cc55250a42601d8)
9bac43
9bac43
Signed-off-by: David Gibson <dgibson@redhat.com>
9bac43
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9bac43
---
9bac43
 memory.c | 3 +--
9bac43
 1 file changed, 1 insertion(+), 2 deletions(-)
9bac43
9bac43
diff --git a/memory.c b/memory.c
9bac43
index 8034520..1f58d29 100644
9bac43
--- a/memory.c
9bac43
+++ b/memory.c
9bac43
@@ -951,8 +951,6 @@ static void address_space_update_topology(AddressSpace *as)
9bac43
      * counting is necessary.
9bac43
      */
9bac43
     flatview_unref(old_view);
9bac43
-
9bac43
-    address_space_update_ioeventfds(as);
9bac43
 }
9bac43
 
9bac43
 void memory_region_transaction_begin(void)
9bac43
@@ -975,6 +973,7 @@ void memory_region_transaction_commit(void)
9bac43
 
9bac43
             QTAILQ_FOREACH(as, &address_spaces, address_spaces_link) {
9bac43
                 address_space_update_topology(as);
9bac43
+                address_space_update_ioeventfds(as);
9bac43
             }
9bac43
             memory_region_update_pending = false;
9bac43
             MEMORY_LISTENER_CALL_GLOBAL(commit, Forward);
9bac43
-- 
9bac43
1.8.3.1
9bac43