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/
Home Products Support Community News


[Xen-devel] [PATCH] Do not set page's count_info directly

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Tim Deegan <Tim.Deegan@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Do not set page's count_info directly
From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Date: Thu, 5 Mar 2009 17:11:56 +0800
Accept-language: en-US
Acceptlanguage: en-US
Delivery-date: Thu, 05 Mar 2009 01:12:41 -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: Acmdcm6GSftyn0gkQJWVa8H8BEB+YQ==
Thread-topic: [PATCH] Do not set page's count_info directly
Page offline patch add several flag to page_info->count_info. However, 
currently some code will try to set count_info after alloc_domheap_pages 
without using "&" or "|" operation, this may cause the new flags lost, since 
there are no protection. This patch try to make sure all write to count_info 
will only impact specific field.

Also currently shadow code assume count_info is 0 for shadow page, however, 
this is invalid after the new flags. Change some assert in shadow code.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx>

Yunhong Jiang

Attachment: clear_count_info.patch
Description: clear_count_info.patch

Xen-devel mailing list