[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] memory: check address space when a listener is regi
From: |
Julien Grall |
Subject: |
[Qemu-devel] [PATCH] memory: check address space when a listener is registered |
Date: |
Wed, 4 Apr 2012 15:15:41 +0100 |
This patch resolves a bug in memory listener registration.
"range_add" callback was called on each section of the both
address space (IO and memory space) even if it doesn't match
the address space filter.
Signed-off-by: Julien Grall <address@hidden>
---
memory.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/memory.c b/memory.c
index 22b0352..a9d237d 100644
--- a/memory.c
+++ b/memory.c
@@ -1444,6 +1444,11 @@ static void listener_add_address_space(MemoryListener
*listener,
{
FlatRange *fr;
+ if (listener->address_space_filter
+ && listener->address_space_filter != as->root) {
+ return;
+ }
+
if (global_dirty_log) {
listener->log_global_start(listener);
}
--
Julien Grall
- [Qemu-devel] [PATCH] memory: check address space when a listener is registered,
Julien Grall <=