mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 05:28:36 -07:00
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>
This commit is contained in:
parent
1d71148eac
commit
f6790af6bc
9 changed files with 25 additions and 23 deletions
|
|
@ -1141,7 +1141,7 @@ int xen_hvm_init(void)
|
|||
|
||||
state->memory_listener = xen_memory_listener;
|
||||
QLIST_INIT(&state->physmap);
|
||||
memory_listener_register(&state->memory_listener, get_system_memory());
|
||||
memory_listener_register(&state->memory_listener, &address_space_memory);
|
||||
state->log_for_dirtybit = NULL;
|
||||
|
||||
/* Initialize backend core & drivers */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue