aboutsummaryrefslogtreecommitdiff
path: root/memory.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-10-02 15:28:50 +0200
committerAvi Kivity <avi@redhat.com>2012-10-15 11:43:06 +0200
commit0d673e36a74d366ce090ab096955317b581c0fb0 (patch)
treeda85f725694e2e7c5cc7db7b3f1cb52615de55d6 /memory.h
parent9ad2bbc16788d3048d514f3450d0975e59d46119 (diff)
downloadqemu-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/memory.h b/memory.h
index a1d75e7..46bc5e1 100644
--- a/memory.h
+++ b/memory.h
@@ -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;