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] Fast checkpoints with COW VM memory

To: "Tim Deegan" <Tim.Deegan@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Fast checkpoints with COW VM memory
From: "Mike Sun" <msun@xxxxxxxxxx>
Date: Mon, 4 Feb 2008 22:14:26 -0500
Delivery-date: Mon, 04 Feb 2008 19:14:50 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=Nmfn9YWJ2HkJKK7Q0ugxyl5KHkMNnfUr2b2wWXAgb18=; b=xSRE1LAyswI1HhdVcQc+F4DsjZoAnkmpVqjVXVXBbP3ieTqQSQCx7n/Wb8s3VI2yEN6BcbBsl9sAfSGzsr6qW1k7V1I1Ivl48EB93BD8Fe38tmqEWGddZ0+OWPb1P3f9MnK+JsEkDGve1S1dLTapNMeuV/4UQJMfr6nyfnBQPBw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=RsnC2JzQoVtmm6T7m6juH/l/r64i9dyh303Ged3h/DaKujaZdRa1VCPs/v6pUQaTYd/q5ryRxD1z+B7SO6UeNBpjXTJIkAFsPpa94qPR0OP7tNExIGO0r1nD/NNiSwLVCyj1aEZoYWRGBnI8PHg35u9HC+C8P8VKg97QecbyL5k=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <e4e579070801152028v123b5aeod61e2d4e8509386e@xxxxxxxxxxxxxx>
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: <e4e579070712051159y57404901t39a0d1ceb3fa6ef0@xxxxxxxxxxxxxx> <20071205220535.GA4431@xxxxxxxxxxxxxxxxxxxxx> <478D78CB.8010406@xxxxxxxxxxx> <e4e579070801152028v123b5aeod61e2d4e8509386e@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi --

I'm attempting to implement some sort of COW functionality for use in
fast snapshotting, but have a few questions I'm hoping people can help
out with.

As per typical OS COW implementations, I mark the memory pages I want
COW to read only protection.  When I receive the page protection fault
in the hypervisor page fault handler, is there a way for me to
determine if the protection fault is the result my my COW action as
opposed to a protection fault actually incurred by the guest (i.e.
perhaps the guest OS is implementing its own COW on portions of its
memory)?  The only method I can think of is to keep track of the
protection bits of the pages before I have the hypervisor modify them
to read only, and use this information in the hypervisor's page fault
handler to determine what it should reset the page's protection bits
to be after the page has been copied.

Thanks,
Mike

2008/1/15 Mike Sun <msun@xxxxxxxxxx>:
> Hi --
>
> I'm currently in the process of implementing the COW functionality.
> It will probably take me some time, but I'll get back to you when I
> have a better idea of what the timeline will be.
>
> Mike
>
>
> On Jan 15, 2008 10:23 PM, tgh <wwwwww4187@xxxxxxxxxxx> wrote:
> > hi
> > I am interested in the COW VM memory ,and are there some code or patch
> > about it ,or still in process ,or in plan? and if it has been
> > implemented and integrated in the source tree, then ,what is the way to
> > use it ? say , fast checkpoint, or VM fork ?or something else? is it
> > available to use ? or how to do it ?
> >
> > Thanks
> >
> >
> >
> >
> > Tim Deegan 写道:
> >
> > > At 14:59 -0500 on 05 Dec (1196866790), Mike Sun wrote:
> > >
> > >> According to the Xen Roadmap for 2006, there was talk of copy-on-write
> > >> functionality that could be developed easily from the
> > >> save/restore/migration code to enable features such as fast
> > >> checkpoints or even VM forks.
> > >>
> > >
> > > FSVO "easily". :)  I am working on extending the typed P2M work I did a
> > > while ago to allow pages to be marked copy-on-write, and other similar
> > > memory tricks.  It's still in the planning stage, but I hope to have
> > > some patches for comment fairly soon.
> > >
> > > Brendan Cully gave a talk on this area at the last Summit, and I know
> > > there is more work going on at UBC too.
> > >
> > > Tim
>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>