diff options
author | Avi Kivity <avi@redhat.com> | 2011-07-26 14:26:07 +0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-07-29 08:25:43 -0500 |
commit | 16ef61c9e56657d39760e5ad6b9f5361f00b2083 (patch) | |
tree | 5afb31147fdff479bc86c44e0b0e0c70efbda484 /memory.h | |
parent | memory: rename MemoryRegion::has_ram_addr to ::terminates (diff) | |
download | qemu-kvm-16ef61c9e56657d39760e5ad6b9f5361f00b2083.tar.gz qemu-kvm-16ef61c9e56657d39760e5ad6b9f5361f00b2083.tar.bz2 qemu-kvm-16ef61c9e56657d39760e5ad6b9f5361f00b2083.zip |
memory: late initialization of ram_addr
For non-RAM memory regions, we cannot tell whether this is an I/O region
or an MMIO region. Since the qemu backing registration is different for
the two, we have to defer initialization until we know which address
space we are in.
These shenanigans will be removed once the backing registration is unified
with the memory API.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'memory.h')
-rw-r--r-- | memory.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -89,6 +89,7 @@ struct MemoryRegion { uint64_t size; target_phys_addr_t addr; target_phys_addr_t offset; + bool backend_registered; ram_addr_t ram_addr; bool terminates; MemoryRegion *alias; |