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 /memory.h | |
parent | 1d71148eace669827ba15101819b54b20fcca616 (diff) | |
download | qemu-f6790af6bcfa35fa9ea3c565a0a2aed54337aef5.zip qemu-f6790af6bcfa35fa9ea3c565a0a2aed54337aef5.tar.gz qemu-f6790af6bcfa35fa9ea3c565a0a2aed54337aef5.tar.bz2 |
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 'memory.h')
-rw-r--r-- | memory.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -187,7 +187,7 @@ typedef struct MemoryRegionSection MemoryRegionSection; */ struct MemoryRegionSection { MemoryRegion *mr; - MemoryRegion *address_space; + AddressSpace *address_space; target_phys_addr_t offset_within_region; uint64_t size; target_phys_addr_t offset_within_address_space; @@ -223,7 +223,7 @@ struct MemoryListener { target_phys_addr_t addr, target_phys_addr_t len); /* Lower = earlier (during add), later (during del) */ unsigned priority; - MemoryRegion *address_space_filter; + AddressSpace *address_space_filter; QTAILQ_ENTRY(MemoryListener) link; }; @@ -774,7 +774,7 @@ void memory_region_transaction_commit(void); * @listener: an object containing the callbacks to be called * @filter: if non-%NULL, only regions in this address space will be observed */ -void memory_listener_register(MemoryListener *listener, MemoryRegion *filter); +void memory_listener_register(MemoryListener *listener, AddressSpace *filter); /** * memory_listener_unregister: undo the effect of memory_listener_register() |