mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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>
This commit is contained in:
parent
8df8a8436f
commit
7376e5827a
6 changed files with 46 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue