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> The offline_page() can be called from both HV context (like MCA handler as discussed in mailing list), or from dom0''s user space tools, like for proactive action. To invoke from user space tools, we need swap the page so that the page is really offlined, that patch is still on way. Thanks Yunhong Jiang _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jiang, Yunhong
2009-Mar-04 08:58 UTC
[Xen-devel] RE: [PATCH] Page offline support in Xen side
Sorry something for testing left in previous patch. Thanks Yunhong jiang xen-devel-bounces@lists.xensource.com <> wrote:> 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> > > The offline_page() can be called from both HV context (like > MCA handler as discussed in mailing list), or from dom0''s user > space tools, like for proactive action. To invoke from user > space tools, we need swap the page so that the page is really > offlined, that patch is still on way. > > Thanks > Yunhong Jiang_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel