mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-07 11:14:46 +00:00
memory: check address space when a listener is registered
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 <julien.grall@citrix.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
b9f9be8838
commit
221b3a3f1e
5
memory.c
5
memory.c
@ -1444,6 +1444,11 @@ static void listener_add_address_space(MemoryListener *listener,
|
|||||||
{
|
{
|
||||||
FlatRange *fr;
|
FlatRange *fr;
|
||||||
|
|
||||||
|
if (listener->address_space_filter
|
||||||
|
&& listener->address_space_filter != as->root) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (global_dirty_log) {
|
if (global_dirty_log) {
|
||||||
listener->log_global_start(listener);
|
listener->log_global_start(listener);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user