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/domain.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/domain.h')
-rw-r--r-- | xen/include/asm-x86/domain.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/include/asm-x86/domain.h b/xen/include/asm-x86/domain.h index 5ff0a06e98..dc77780888 100644 --- a/xen/include/asm-x86/domain.h +++ b/xen/include/asm-x86/domain.h @@ -201,6 +201,10 @@ struct paging_domain { struct hap_domain hap; /* log dirty support */ struct log_dirty_domain log_dirty; + /* alloc/free pages from the pool for paging-assistance structures + * (used by p2m and log-dirty code for their tries) */ + struct page_info * (*alloc_page)(struct domain *d); + void (*free_page)(struct domain *d, struct page_info *pg); }; struct paging_vcpu { |