aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/mm.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-03-06 19:18:39 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-03-06 19:18:39 +0000
commite4865c23155b05278f31be537764e760cd2d9b7e (patch)
treee020f0021a3939aef936a38ee4322f58df27efbd /xen/include/xen/mm.h
parent3c6846fa3462faadbe7b34255cb18009a751cd48 (diff)
downloadxen-e4865c23155b05278f31be537764e760cd2d9b7e.tar.gz
xen-e4865c23155b05278f31be537764e760cd2d9b7e.tar.bz2
xen-e4865c23155b05278f31be537764e760cd2d9b7e.zip
Page offline support in Xen side
This patch add support to offline a page. The basical idea is, when a page is assigned, it will be marked offline pending and be moved out of buddy when freed, when a page is free, it will be moved out of buddy directly. One notice after this change is, now the page->count_info is not always 0, especially for shadow page, since the PGC_offlining bit may be set. Signed-off-by: Wang, Shane <shane.wang@intel.com> Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Diffstat (limited to 'xen/include/xen/mm.h')
-rw-r--r--xen/include/xen/mm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h
index fa61751785..82340f3ae4 100644
--- a/xen/include/xen/mm.h
+++ b/xen/include/xen/mm.h
@@ -60,6 +60,9 @@ unsigned long avail_domheap_pages_region(
unsigned long avail_domheap_pages(void);
#define alloc_domheap_page(d,f) (alloc_domheap_pages(d,0,f))
#define free_domheap_page(p) (free_domheap_pages(p,0))
+unsigned int online_page(unsigned long mfn, uint32_t *status);
+int offline_page(unsigned long mfn, int broken, uint32_t *status);
+int query_page_offline(unsigned long mfn, uint32_t *status);
void scrub_heap_pages(void);