diff options
author | Avi Kivity <avi@redhat.com> | 2012-10-02 15:28:50 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-10-15 11:43:06 +0200 |
commit | 0d673e36a74d366ce090ab096955317b581c0fb0 (patch) | |
tree | da85f725694e2e7c5cc7db7b3f1cb52615de55d6 /memory.h | |
parent | 9ad2bbc16788d3048d514f3450d0975e59d46119 (diff) | |
download | qemu-0d673e36a74d366ce090ab096955317b581c0fb0.zip qemu-0d673e36a74d366ce090ab096955317b581c0fb0.tar.gz qemu-0d673e36a74d366ce090ab096955317b581c0fb0.tar.bz2 |
memory: maintain a list of address spaces
Instead of embedding knowledge of the memory and I/O address spaces in the
memory core, maintain a list of all address spaces. This list will later
be extended dynamically for other bus masters.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -164,10 +164,12 @@ typedef struct AddressSpace AddressSpace; */ struct AddressSpace { /* All fields are private. */ + const char *name; MemoryRegion *root; struct FlatView *current_map; int ioeventfd_nb; struct MemoryRegionIoeventfd *ioeventfds; + QTAILQ_ENTRY(AddressSpace) address_spaces_link; }; typedef struct MemoryRegionSection MemoryRegionSection; |