]> git.proxmox.com Git - mirror_qemu.git/blobdiff - memory.h
memory: add address_space_destroy()
[mirror_qemu.git] / memory.h
index d36c2baa23d6b5366d014c88c9f165d8b086ea9a..79393f1a764afc652228d3ef73244eaf2ab299c7 100644 (file)
--- a/memory.h
+++ b/memory.h
@@ -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.
  *