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] why would XENMEM_decrease_reservation fail?

To: James Harper <james.harper@xxxxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] why would XENMEM_decrease_reservation fail?
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 17 Nov 2009 03:34:35 +0000
Cc:
Delivery-date: Mon, 16 Nov 2009 19:36:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D0180D4B1@trantor>
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: AcpnD4IyWVbrQGBWQ9+Dq/yi1zkI+QAJ1+87
Thread-topic: [Xen-devel] why would XENMEM_decrease_reservation fail?
User-agent: Microsoft-Entourage/12.19.0.090515
On 16/11/2009 22:52, "James Harper" <james.harper@xxxxxxxxxxxxxxxx> wrote:

> I am attempting to implement the kludge to make save/restore/migrate
> work in the GPLPV drivers under Xen 3.4.1. On my test box I successfully
> free grant_table_pages + 1 pages. The logs from another users system
> show that each call to XENMEM_decrease_reservation returns 0 instead of
> 1.
> 
> Under what circumstances would XENMEM_decrease_reservation fail? The pfn
> passed to XENMEM_decrease_reservation looks reasonable (similar values
> to my test box), and everything else is identical.

Really it should only fail if the page does not belong to the guest. You
might have to give them a patch to add tracing to error paths in e.g.,
guest_remove_page() to find out what's going on, if this happens
deterministically for them.

 -- Keir



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

<Prev in Thread] Current Thread [Next in Thread>