ia64/xen-unstable

changeset 6680:4309a1fd8447

Always bind dom0 virqs to vcpu 0.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Wed Sep 07 16:50:55 2005 +0000 (2005-09-07)
parents acde14d25398
children 422fee1de8e7
files xen/common/event_channel.c
line diff
     1.1 --- a/xen/common/event_channel.c	Wed Sep 07 15:53:04 2005 +0000
     1.2 +++ b/xen/common/event_channel.c	Wed Sep 07 16:50:55 2005 +0000
     1.3 @@ -251,6 +251,9 @@ static long evtchn_bind_virq(evtchn_bind
     1.4      if ( virq >= ARRAY_SIZE(v->virq_to_evtchn) )
     1.5          return -EINVAL;
     1.6  
     1.7 +    if ( d->domain_id == 0 && virq >= VIRQ_CONSOLE )
     1.8 +        v = d->vcpu[0];
     1.9 +
    1.10      spin_lock(&d->evtchn_lock);
    1.11  
    1.12      /*
    1.13 @@ -271,6 +274,7 @@ static long evtchn_bind_virq(evtchn_bind
    1.14   out:
    1.15      spin_unlock(&d->evtchn_lock);
    1.16  
    1.17 +    printk("evtchn_bind_virq %d port %d\n", virq, port);
    1.18      if ( port < 0 )
    1.19          return port;
    1.20