diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2011-05-03 12:48:09 -0600 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-06-03 22:59:15 +0200 |
commit | 1f2e98b62d62205de9d52e81aca78e78712af973 (patch) | |
tree | dafc7bc15b6bfb6af3a425ab52448cc83b1ed4c6 /cpu-common.h | |
parent | c83066d4c4a13d687d60f1f18c748f934b5a5be6 (diff) |
exec: Implement qemu_ram_free_from_ptr()
Required for regions mapped via qemu_ram_alloc_from_ptr(). VFIO
and ivshmem will make use of this to remove mappings when devices
are hot unplugged.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'cpu-common.h')
-rw-r--r-- | cpu-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpu-common.h b/cpu-common.h index 151c32c1f..9f5917224 100644 --- a/cpu-common.h +++ b/cpu-common.h @@ -61,6 +61,7 @@ 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); 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); /* This should only be used for ram local to a device. */ void *qemu_get_ram_ptr(ram_addr_t addr); |