aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/paging.h
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-11-19 13:21:09 +0000
committerKeir Fraser <keir@xen.org>2010-11-19 13:21:09 +0000
commit2c7d8f610b43d83737e429dfd4fa668dc3134eed (patch)
treecc88962ff4dec4d402edc891cec7a79587d5c68d /xen/include/asm-x86/paging.h
parenta681f36c2e14c3660d7a0f1f59d5c3d1fe408be5 (diff)
downloadxen-2c7d8f610b43d83737e429dfd4fa668dc3134eed.tar.gz
xen-2c7d8f610b43d83737e429dfd4fa668dc3134eed.tar.bz2
xen-2c7d8f610b43d83737e429dfd4fa668dc3134eed.zip
x86/mm: Allocate log-dirty bitmaps from shadow/HAP memory.
Move the p2m alloc and free functions back into the per-domain paging assistance structure and allow them to be called from the log-dirty code. This makes it less likely that log-dirty code will run out of memory populating the log-dirty bitmap. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/include/asm-x86/paging.h')
-rw-r--r--xen/include/asm-x86/paging.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/include/asm-x86/paging.h b/xen/include/asm-x86/paging.h
index 10aa9f1339..2cf23c2cff 100644
--- a/xen/include/asm-x86/paging.h
+++ b/xen/include/asm-x86/paging.h
@@ -134,8 +134,8 @@ struct paging_mode {
/*****************************************************************************
* Log dirty code */
-/* allocate log dirty bitmap resource for recording dirty pages */
-int paging_alloc_log_dirty_bitmap(struct domain *d);
+/* get the top of the log-dirty bitmap trie, allocating if necessary */
+mfn_t *paging_map_log_dirty_bitmap(struct domain *d);
/* free log dirty bitmap resource */
void paging_free_log_dirty_bitmap(struct domain *d);