diff options
author | Avi Kivity <avi@redhat.com> | 2012-10-02 14:59:23 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-10-15 11:43:06 +0200 |
commit | 9ad2bbc16788d3048d514f3450d0975e59d46119 (patch) | |
tree | ab18922d80e5599febca2b96cdc783da77a05d32 /memory.c | |
parent | 8786db7cb96f8ce5c75c6e1e074319c9dca8d356 (diff) | |
download | qemu-9ad2bbc16788d3048d514f3450d0975e59d46119.tar.gz qemu-9ad2bbc16788d3048d514f3450d0975e59d46119.tar.bz2 qemu-9ad2bbc16788d3048d514f3450d0975e59d46119.zip |
memory: export AddressSpace
The DMA API will use an AddressSpace to differentiate among different
initiators.
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'memory.c')
-rw-r--r-- | memory.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -216,17 +216,8 @@ struct FlatView { unsigned nr_allocated; }; -typedef struct AddressSpace AddressSpace; typedef struct AddressSpaceOps AddressSpaceOps; -/* A system address space - I/O, memory, etc. */ -struct AddressSpace { - MemoryRegion *root; - FlatView *current_map; - int ioeventfd_nb; - MemoryRegionIoeventfd *ioeventfds; -}; - #define FOR_EACH_FLAT_RANGE(var, view) \ for (var = (view)->ranges; var < (view)->ranges + (view)->nr; ++var) @@ -1510,7 +1501,7 @@ void memory_listener_unregister(MemoryListener *listener) QTAILQ_REMOVE(&memory_listeners, listener, link); } -static void address_space_init(AddressSpace *as, MemoryRegion *root) +void address_space_init(AddressSpace *as, MemoryRegion *root) { memory_region_transaction_begin(); as->root = root; |