direct-io.hg

diff linux-2.6-xen-sparse/drivers/xen/core/evtchn.c @ 10472:fc1c6dfd1807

[LINUX] Transparent virtualization fixes.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author kaf24@firebug.cl.cam.ac.uk
date Wed Jun 21 16:54:09 2006 +0100 (2006-06-21)
parents be05097d5d69
children c9696012fe05
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c	Wed Jun 21 10:56:20 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c	Wed Jun 21 16:54:09 2006 +0100
     1.3 @@ -666,6 +666,10 @@ static struct hw_interrupt_type pirq_typ
     1.4  int irq_ignore_unhandled(unsigned int irq)
     1.5  {
     1.6  	struct physdev_irq_status_query irq_status = { .irq = irq };
     1.7 +
     1.8 +	if (!is_running_on_xen())
     1.9 +		return 0;
    1.10 +
    1.11  	(void)HYPERVISOR_physdev_op(PHYSDEVOP_irq_status_query, &irq_status);
    1.12  	return !!(irq_status.flags & XENIRQSTAT_shared);
    1.13  }