aboutsummaryrefslogtreecommitdiff
path: root/cpu-common.h
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2010-09-16 13:57:49 +0100
committerAlexander Graf <agraf@suse.de>2011-05-08 10:10:01 +0200
commit050a0ddf39cf5555ecf9b22a918b2a2b00bdbe34 (patch)
treee8267403b7a59988a32773ec6e9367f791e30f0a /cpu-common.h
parentea6c5f8ffe6de12e04e63acbb9937683b30216e2 (diff)
Introduce qemu_put_ram_ptr
This function allows to unlock a ram_ptr give by qemu_get_ram_ptr. After a call to qemu_put_ram_ptr, the pointer may be unmap from QEMU when used with Xen. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Acked-by: Alexander Graf <agraf@suse.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cpu-common.h')
-rw-r--r--cpu-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpu-common.h b/cpu-common.h
index 6410cccda5..151c32c1f2 100644
--- a/cpu-common.h
+++ b/cpu-common.h
@@ -67,6 +67,7 @@ void *qemu_get_ram_ptr(ram_addr_t addr);
/* Same but slower, to use for migration, where the order of
* RAMBlocks must not change. */
void *qemu_safe_ram_ptr(ram_addr_t addr);
+void qemu_put_ram_ptr(void *addr);
/* This should not be used by devices. */
int qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr);
ram_addr_t qemu_ram_addr_from_host_nofail(void *ptr);