diff options
author | Keir Fraser <keir@xen.org> | 2010-11-19 13:21:09 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2010-11-19 13:21:09 +0000 |
commit | 2c7d8f610b43d83737e429dfd4fa668dc3134eed (patch) | |
tree | cc88962ff4dec4d402edc891cec7a79587d5c68d /xen/include/asm-x86/paging.h | |
parent | a681f36c2e14c3660d7a0f1f59d5c3d1fe408be5 (diff) | |
download | xen-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.h | 4 |
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); |