diff options
author | Avi Kivity <avi@redhat.com> | 2012-02-08 21:05:17 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-02-29 13:44:42 +0200 |
commit | 7376e5827a898d8ddf10f929047cc84bf65d9f52 (patch) | |
tree | af5ade26946ff09d19d950d66af6083c6f2f00d2 /hw/vhost.c | |
parent | 8df8a8436fa22442a58b366fbb7e471b4a8d88ce (diff) |
memory: allow MemoryListeners to observe a specific address space
Ignore any regions not belonging to a specified address space.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/vhost.c')
-rw-r--r-- | hw/vhost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vhost.c b/hw/vhost.c index e1e7e01584..01f676a959 100644 --- a/hw/vhost.c +++ b/hw/vhost.c @@ -774,7 +774,7 @@ int vhost_dev_init(struct vhost_dev *hdev, int devfd, bool force) hdev->log_size = 0; hdev->log_enabled = false; hdev->started = false; - memory_listener_register(&hdev->memory_listener); + memory_listener_register(&hdev->memory_listener, NULL); hdev->force = force; return 0; fail: |