diff options
| author | Avi Kivity <avi@redhat.com> | 2012-10-02 20:13:51 +0200 |
|---|---|---|
| committer | Avi Kivity <avi@redhat.com> | 2012-10-22 14:50:07 +0200 |
| commit | f6790af6bcfa35fa9ea3c565a0a2aed54337aef5 (patch) | |
| tree | a26b7a7c52d483f083c7672af26e62f774e1b706 /hw/xen_pt.c | |
| parent | 1d71148eace669827ba15101819b54b20fcca616 (diff) | |
| download | focaccia-qemu-f6790af6bcfa35fa9ea3c565a0a2aed54337aef5.tar.gz focaccia-qemu-f6790af6bcfa35fa9ea3c565a0a2aed54337aef5.zip | |
memory: use AddressSpace for MemoryListener filtering
Using the AddressSpace type reduces confusion, as you can't accidentally supply the MemoryRegion you're interested in. Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/xen_pt.c')
| -rw-r--r-- | hw/xen_pt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xen_pt.c b/hw/xen_pt.c index d5dc11e582..d3d7c8bc3c 100644 --- a/hw/xen_pt.c +++ b/hw/xen_pt.c @@ -749,8 +749,8 @@ static int xen_pt_initfn(PCIDevice *d) } out: - memory_listener_register(&s->memory_listener, get_system_memory()); - memory_listener_register(&s->io_listener, get_system_io()); + memory_listener_register(&s->memory_listener, &address_space_memory); + memory_listener_register(&s->io_listener, &address_space_io); XEN_PT_LOG(d, "Real physical device %02x:%02x.%d registered successfuly!\n", bus, slot, func); |