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

Re: [Xen-devel] shadow2 corrupting PV guest state

To: Doi.Tsunehisa@xxxxxxxxxxxxxx
Subject: Re: [Xen-devel] shadow2 corrupting PV guest state
From: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
Date: Tue, 24 Oct 2006 10:09:04 +0100
Cc: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 24 Oct 2006 02:09:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200610240718.k9O7IgF22580@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <453020EE.4080603@xxxxxxxx> <200610240718.k9O7IgF22580@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
Hi,

At 16:18 +0900 on 24 Oct (1161706722), Doi.Tsunehisa@xxxxxxxxxxxxxx wrote:
>   In my investigation, get_page() assumes that the page frame is in
> use. But, the page_info structure of released page frame should not
> be treated as inuse. Thus the nd value might be invalid value in this
> situation, I think.

True, but we don't look at nd unless the page is allocated...

>         if ( unlikely((x & PGC_count_mask) == 0) ||  /* Not allocated? */
>              unlikely((nx & PGC_count_mask) == 0) || /* Count overflow? */
>              unlikely(d != _domain) )                /* Wrong owner? */

Cheers,

Tim.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel