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-changelog

[Xen-changelog] [linux-2.6.18-xen] xen evtchn: Rememeber to re-bind user

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] xen evtchn: Rememeber to re-bind user-attached event channels to VCPU
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 08 Apr 2008 02:02:00 -0700
Delivery-date: Tue, 08 Apr 2008 02:06:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1207218656 -3600
# Node ID 636cd340e024e921ffd8f3575e6775d4cb6dc48c
# Parent  ad7ad9af265e3276d084f8074192bec9d3867747
xen evtchn: Rememeber to re-bind user-attached event channels to VCPU
0 when the channel is closed.
From: Pascal Bouchareine <pascal@xxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 drivers/xen/evtchn/evtchn.c |    2 ++
 1 files changed, 2 insertions(+)

diff -r ad7ad9af265e -r 636cd340e024 drivers/xen/evtchn/evtchn.c
--- a/drivers/xen/evtchn/evtchn.c       Tue Apr 01 11:29:31 2008 -0600
+++ b/drivers/xen/evtchn/evtchn.c       Thu Apr 03 11:30:56 2008 +0100
@@ -349,6 +349,7 @@ static long evtchn_ioctl(struct file *fi
 
                port_user[unbind.port] = NULL;
                mask_evtchn(unbind.port);
+               rebind_evtchn_to_cpu(unbind.port, 0);
 
                spin_unlock_irq(&port_user_lock);
 
@@ -458,6 +459,7 @@ static int evtchn_release(struct inode *
 
                port_user[i] = NULL;
                mask_evtchn(i);
+               rebind_evtchn_to_cpu(i, 0);
 
                close.port = i;
                ret = HYPERVISOR_event_channel_op(EVTCHNOP_close, &close);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] xen evtchn: Rememeber to re-bind user-attached event channels to VCPU, Xen patchbot-linux-2.6.18-xen <=