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] live migration can fail due to XENMEM_maximum_gpfn

To: John Levon <levon@xxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] live migration can fail due to XENMEM_maximum_gpfn
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Tue, 7 Oct 2008 10:54:32 +0900
Cc: jeremy@xxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 06 Oct 2008 18:54:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20081006164753.GA7589@xxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <20081006164753.GA7589@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
On Mon, Oct 06, 2008 at 05:47:53PM +0100, John Levon wrote:
> 
> There's a race that can cause live migration to fail. In particular,
> xc_save uses XENMEM_maximum_gpfn to create the shm segment. qemu then
> also uses that value to look up the segment. However, the value can
> easily change in between due to p2m_set_entry(). In particular if
> there's PV drivers in the HVM domU, ->max_mapped_pfn can change easily:
> 
> dom 11 max gpfn 262143
> dom 11 max gpfn 262143
> dom 11 max gpfn 262143
> ....
> dom 11 max gpfn 985087
> 
> (1Gb Solaris HVM domU).
> 
> I'm not sure how this should be fixed?

I think a similar race would exist once balloon expansion
(using memory hot plug) is implemented.
According to http://wiki.xensource.com/xenwiki/XenParavirtOps,
it is WIP, though.

-- 
yamahata

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

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