summaryrefslogtreecommitdiff
path: root/hw/vhost.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-10-02 20:13:51 +0200
committerAvi Kivity <avi@redhat.com>2012-10-22 14:50:07 +0200
commitf6790af6bcfa35fa9ea3c565a0a2aed54337aef5 (patch)
treea26b7a7c52d483f083c7672af26e62f774e1b706 /hw/vhost.c
parent1d71148eace669827ba15101819b54b20fcca616 (diff)
downloadqemu-f6790af6bcfa35fa9ea3c565a0a2aed54337aef5.tar.gz
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/vhost.c')
-rw-r--r--hw/vhost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vhost.c b/hw/vhost.c
index 100f7659a0..0b4ac3f1df 100644
--- a/hw/vhost.c
+++ b/hw/vhost.c
@@ -792,7 +792,7 @@ int vhost_dev_init(struct vhost_dev *hdev, int devfd, const char *devpath,
hdev->log_size = 0;
hdev->log_enabled = false;
hdev->started = false;
- memory_listener_register(&hdev->memory_listener, get_system_memory());
+ memory_listener_register(&hdev->memory_listener, &address_space_memory);
hdev->force = force;
return 0;
fail: