WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Page offline support in Xen side

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Page offline support in Xen side
From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Date: Wed, 4 Mar 2009 16:52:42 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 04 Mar 2009 00:53:47 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmcppP+h5FDvx4nRXC6AV6NsmadMw==
Thread-topic: [PATCH] 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@xxxxxxxxx>
Signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx>

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

Attachment: page_offline_xen.patch
Description: page_offline_xen.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>