]> Git Repo - qemu.git/commitdiff
target-arm: kvm: use AddressSpace-specific listener
authorPaolo Bonzini <[email protected]>
Mon, 17 Oct 2016 18:22:16 +0000 (19:22 +0100)
committerPeter Maydell <[email protected]>
Mon, 17 Oct 2016 18:22:16 +0000 (19:22 +0100)
The only address space where the GIC devices are added is
address_space_memory.  There is no need to use a global
MemoryListener.

This removes the only user of global MemoryListeners.

Signed-off-by: Paolo Bonzini <[email protected]>
[PMM: added missing #include "exec/address-spaces.h"]
Reviewed-by: Peter Maydell <[email protected]>
Message-id: 1475219846[email protected]
Signed-off-by: Peter Maydell <[email protected]>
target-arm/kvm.c

index dbe393c10995381ad9e8d88a03c2e2ed0e0b9189..c00b94e42a93a1defaa140f5eb792690996412b3 100644 (file)
@@ -23,6 +23,7 @@
 #include "internals.h"
 #include "hw/arm/arm.h"
 #include "exec/memattrs.h"
+#include "exec/address-spaces.h"
 #include "hw/boards.h"
 #include "qemu/log.h"
 
@@ -283,7 +284,7 @@ void kvm_arm_register_device(MemoryRegion *mr, uint64_t devid, uint64_t group,
     }
 
     if (QSLIST_EMPTY(&kvm_devices_head)) {
-        memory_listener_register(&devlistener, NULL);
+        memory_listener_register(&devlistener, &address_space_memory);
         qemu_add_machine_init_done_notifier(&notify);
     }
     kd = g_new0(KVMDevice, 1);
This page took 0.026914 seconds and 4 git commands to generate.