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] [Question] How to support page offline in Xen environmen

To: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Subject: Re: [Xen-devel] [Question] How to support page offline in Xen environment
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Thu, 11 Dec 2008 15:48:02 +0000
Cc: "Wang, Shane" <shane.wang@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 11 Dec 2008 07:48:31 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <E2263E4A5B2284449EEBD0AAB751098401C4683D00@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <E2263E4A5B2284449EEBD0AAB751098401C309F6C3@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20081203100910.GM25331@xxxxxxxxxxxxxxxxxxxxx> <E2263E4A5B2284449EEBD0AAB751098401C30DCF7E@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20081203104506.GN25331@xxxxxxxxxxxxxxxxxxxxx> <E2263E4A5B2284449EEBD0AAB751098401C30DD314@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20081204130921.GP25331@xxxxxxxxxxxxxxxxxxxxx> <E2263E4A5B2284449EEBD0AAB751098401C30DDA60@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <E2263E4A5B2284449EEBD0AAB751098401C4683D00@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.17 (2007-11-01)
At 23:21 +0800 on 11 Dec (1229037698), Jiang, Yunhong wrote:
> Tim, do you think this code path will keep guest's service continue
> (that's one reason we considered LM method before). Seems from the
> code, the guest will be down for very short time, but I'm not qutie
> sure. I'm still trying to reading the code.

Yes; the resume code was written as part of a project that does
continuous live snapshotting of a running guest to provide
fault-tolerance.  The downtime for offlining pages this way should be
even less than for live migration.

Cheers,

Tim.

> Thanks
> Yunhong Jiang
> 
> xen-devel-bounces@xxxxxxxxxxxxxxxxxxx <> wrote:
> >> Have a look at the code for xc_domain_resume in libxc/xc_resume.c.  The
> >> slow-and-safe version makes the domain state look like it would after a
> >> save/restore, so that older kernels can be resumed after they've paused
> >> and had their state saved.  The fast version just changes the return
> >> code that the guest will see from its shutdown hypercall.
> >> 
> >> My suggestion is that you cause the guest to stop like it would for a
> >> save to disk, shuffle its p2m around, and call the slow-path resume
> >> function so that it will pick up the new p2m properly.
> > 
> > I will dig-into the code  Thanks for your suggestion.
> > 
> >> 
> >>> Do you mean the "something very lightweight based on small parts of
> >>> the save/restore code" is done in management tools, not in HV, am I
> >>> right?
> >> 
> >> Yes.  For the common case this lets you get what you want without the
> >> hypervisor being involved.
> > 
> > So maybe the policy can be: if HV can offline page easily
> > (like page owned by hvm domain without device assigned, or
> > free pages), HV will do that, otherwise, we will leave it to user space
> > tools. 
> > 
> > We will firstly implement the code in HV side.
> > 
> >> 
> >> Cheers,
> >> 
> >> Tim.
> >> 
> >> --
> >> Tim Deegan <Tim.Deegan@xxxxxxxxxx>
> >> Principal Software Engineer, Citrix Systems (R&D) Ltd.
> >> [Company #02300071, SL9 0DZ, UK.]
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-devel
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]

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