aboutsummaryrefslogtreecommitdiff
path: root/cpu-common.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-12-18 15:48:55 +0200
committerAvi Kivity <avi@redhat.com>2011-12-19 17:23:24 +0200
commitfce537d4a741521ac182d54465c568b101b9a71e (patch)
tree5eaa74102ac97de28b109d285c5eef65726d8eb5 /cpu-common.h
parent5ab97b7f81dccccee03a3f1d03a4d09a27f0eeff (diff)
memory, xen: pass MemoryRegion to xen_ram_alloc()
Currently xen_ram_alloc() relies on ram_addr, which is going away. Give it something else to use as a cookie. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'cpu-common.h')
-rw-r--r--cpu-common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpu-common.h b/cpu-common.h
index 48f4c01a3f..72eb731c3e 100644
--- a/cpu-common.h
+++ b/cpu-common.h
@@ -61,9 +61,12 @@ static inline void cpu_register_physical_memory(target_phys_addr_t start_addr,
}
ram_addr_t cpu_get_physical_page_desc(target_phys_addr_t addr);
+struct MemoryRegion;
ram_addr_t qemu_ram_alloc_from_ptr(DeviceState *dev, const char *name,
- ram_addr_t size, void *host);
-ram_addr_t qemu_ram_alloc(DeviceState *dev, const char *name, ram_addr_t size);
+ ram_addr_t size, void *host,
+ struct MemoryRegion *mr);
+ram_addr_t qemu_ram_alloc(DeviceState *dev, const char *name, ram_addr_t size,
+ struct MemoryRegion *mr);
void qemu_ram_free(ram_addr_t addr);
void qemu_ram_free_from_ptr(ram_addr_t addr);
void qemu_ram_remap(ram_addr_t addr, ram_addr_t length);