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] [PATCH] Fix xenconsole after aborted save

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Fix xenconsole after aborted save
From: Chris Lalancette <clalance@xxxxxxxxxx>
Date: Wed, 22 Apr 2009 16:24:20 +0200
Cc: Jiri Denemark <jdenemar@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Gerd Hoffmann <kraxel@xxxxxxxxxx>
Delivery-date: Wed, 22 Apr 2009 07:24:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C614AE59.9293%keir.fraser@xxxxxxxxxxxxx>
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: <C614AE59.9293%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.21 (X11/20090320)
Keir Fraser wrote:
> On 22/04/2009 10:49, "Chris Lalancette" <clalance@xxxxxxxxxx> wrote:
> 
>> Keir Fraser wrote:
>>> Another thing to note is I think this problem can only occur if the domU
>>> does not support suspend cancellation (advertised as SUSPEND_CANCEL in
>>> kernel elf notes -- see xen/xend/XendDomainInfo.py:resumeDomain()). Your
>>> kernels should support that feature -- suspend cancellation (a.k.a. Resume)
>>> is very likely to be hit-or-miss without it!
>> Could you elaborate a bit on this?  I was under the impression that suspend
>> cancellation was there mostly for the netaccel bits, but I have to admit I
>> didn't look at it very closely.  What scenarios do the suspend cancel bits
>> help?
> 
> Suspend failures (failure to save or to migrate). Also for live
> checkpointing/snapshotting. The feature indicates that the guest is happy
> for the suspend hypercall to return indicating 'failure/cancelled' and in
> which case it can pretty much resume whatever it was doing without any of
> the usual resume logic. The alternative is for the toolstack to make it look
> like the domain has been restored/migrated, by resetting PV devices and the
> like, and this is not much tested and almost inherently fragile.
> 
> The suspend_cancel hook you are thinking of is for any PV devices which *do*
> need to know that a suspend was cancelled. Netaccel does for some reason
> which I cannot recall.
> 
> Anyway, it is pretty easy and pretty important to support SUSPEND_CANCEL!

OK, that makes sense.  Thanks Keir!

-- 
Chris Lalancette

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