aboutsummaryrefslogtreecommitdiff
path: root/memory.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-08-08 19:58:48 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2011-08-12 08:31:29 -0500
commit545e92e06aa4f5eda46f4be2018a595d1adf66f8 (patch)
tree977ebfdbbbbac9ab8d84f3fc7d467be534e55a93 /memory.h
parent76dc3cf82c1fa4afc4b67f60318d90355ded8fb3 (diff)
memory: reclaim resources when a memory region is destroyed for good
Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'memory.h')
-rw-r--r--memory.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/memory.h b/memory.h
index da00a3b0df..c9252a245d 100644
--- a/memory.h
+++ b/memory.h
@@ -109,6 +109,7 @@ struct MemoryRegion {
target_phys_addr_t addr;
target_phys_addr_t offset;
bool backend_registered;
+ void (*destructor)(MemoryRegion *mr);
ram_addr_t ram_addr;
IORange iorange;
bool terminates;