ia64/linux-2.6.18-xen.hg

changeset 509:636cd340e024

xen evtchn: Rememeber to re-bind user-attached event channels to VCPU
0 when the channel is closed.
From: Pascal Bouchareine <pascal@gandi.net>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Apr 03 11:30:56 2008 +0100 (2008-04-03)
parents ad7ad9af265e
children 2cc4d7bf6b61
files drivers/xen/evtchn/evtchn.c
line diff
     1.1 --- a/drivers/xen/evtchn/evtchn.c	Tue Apr 01 11:29:31 2008 -0600
     1.2 +++ b/drivers/xen/evtchn/evtchn.c	Thu Apr 03 11:30:56 2008 +0100
     1.3 @@ -349,6 +349,7 @@ static long evtchn_ioctl(struct file *fi
     1.4  
     1.5  		port_user[unbind.port] = NULL;
     1.6  		mask_evtchn(unbind.port);
     1.7 +		rebind_evtchn_to_cpu(unbind.port, 0);
     1.8  
     1.9  		spin_unlock_irq(&port_user_lock);
    1.10  
    1.11 @@ -458,6 +459,7 @@ static int evtchn_release(struct inode *
    1.12  
    1.13  		port_user[i] = NULL;
    1.14  		mask_evtchn(i);
    1.15 +		rebind_evtchn_to_cpu(i, 0);
    1.16  
    1.17  		close.port = i;
    1.18  		ret = HYPERVISOR_event_channel_op(EVTCHNOP_close, &close);