diff options
author | Avi Kivity <avi@redhat.com> | 2012-10-07 12:59:55 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-10-22 14:50:08 +0200 |
commit | 83f3c251422b0724044f976a7ff26b2e8a47c374 (patch) | |
tree | ed5bdab5dd91f6e102eb228691c133485c0a8aa5 /memory.h | |
parent | b90600eed3c0efe5f3260853c873caf51c0677b1 (diff) | |
download | qemu-83f3c251422b0724044f976a7ff26b2e8a47c374.tar.gz qemu-83f3c251422b0724044f976a7ff26b2e8a47c374.tar.bz2 qemu-83f3c251422b0724044f976a7ff26b2e8a47c374.zip |
memory: add address_space_destroy()
Since address spaces can be created dynamically by device hotplug, they
can also be destroyed dynamically.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'memory.h')
-rw-r--r-- | memory.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -804,6 +804,18 @@ void mtree_info(fprintf_function mon_printf, void *f); */ void address_space_init(AddressSpace *as, MemoryRegion *root); + +/** + * address_space_destroy: destroy an address space + * + * Releases all resources associated with an address space. After an address space + * is destroyed, its root memory region (given by address_space_init()) may be destroyed + * as well. + * + * @as: address space to be destroyed + */ +void address_space_destroy(AddressSpace *as); + /** * address_space_rw: read from or write to an address space. * |