summaryrefslogtreecommitdiff
path: root/hw/xen.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 /hw/xen.h
parent5ab97b7f81dccccee03a3f1d03a4d09a27f0eeff (diff)
downloadqemu-fce537d4a741521ac182d54465c568b101b9a71e.tar.gz
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 'hw/xen.h')
-rw-r--r--hw/xen.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/xen.h b/hw/xen.h
index 21621115e4..f9f66e83ef 100644
--- a/hw/xen.h
+++ b/hw/xen.h
@@ -44,7 +44,9 @@ void xen_vcpu_init(void);
void xenstore_store_pv_console_info(int i, struct CharDriverState *chr);
#if defined(NEED_CPU_H) && !defined(CONFIG_USER_ONLY)
-void xen_ram_alloc(ram_addr_t ram_addr, ram_addr_t size);
+struct MemoryRegion;
+void xen_ram_alloc(ram_addr_t ram_addr, ram_addr_t size,
+ struct MemoryRegion *mr);
#endif
#if defined(CONFIG_XEN) && CONFIG_XEN_CTRL_INTERFACE_VERSION < 400