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: Jiri Denemark <jdenemar@xxxxxxxxxx>, Gerd Hoffmann <kraxel@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Fix xenconsole after aborted save
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 20 Apr 2009 15:41:17 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 20 Apr 2009 07:41:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090420140436.GB18963@xxxxxxxxxx>
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: AcnBwRTWSty7+zjoQjm0KLImYqwZ1gABPr8G
Thread-topic: [Xen-devel] [PATCH] Fix xenconsole after aborted save
User-agent: Microsoft-Entourage/12.17.0.090302
On 20/04/2009 15:04, "Jiri Denemark" <jdenemar@xxxxxxxxxx> wrote:

>>> This patch modifies xenconsoled to check current status of open event
>>> channels
>>> and rebind them if necessary.
>> 
>> close() + open() is the sledge hammer approach (will work though).  Just
>> unbind(local_port) should be enough.
> 
> It doesn't close() and open(), it just calls xc_evtchn_bind_interdomain() in
> case the event channel is unbound. The close() + open() combination was there
> before... I haven't touched that code except for skipping it when only rebind
> is required.

And actually that is a bug, since you will leak the old dom->local_port. I
checked in an alternative patch as c/s 19561, so please take a look and test
that resolves your issue.

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!

 -- Keir



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