From: Ian Jackson Date: Fri, 19 Nov 2010 18:50:43 +0000 (+0000) Subject: passthrough: let xen choose the pirq number X-Git-Tag: xen-4.1.0-rc1~14 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=60766b459c41e429a4b2405124b42512ea362984;p=qemu-xen-4.1-testing.git passthrough: let xen choose the pirq number When remapping an interrupt into the guest, let xen choose the pirq, otherwise we might have to handle possible conflicts. Signed-off-by: Stefano Stabellini --- diff --git a/hw/pass-through.c b/hw/pass-through.c index 014144ecf..9c5620da2 100644 --- a/hw/pass-through.c +++ b/hw/pass-through.c @@ -4265,7 +4265,7 @@ static struct pt_dev * register_real_device(PCIBus *e_bus, if ( PT_MACHINE_IRQ_AUTO == machine_irq ) { - int pirq = pci_dev->irq; + int pirq = -1; machine_irq = pci_dev->irq; rc = xc_physdev_map_pirq(xc_handle, domid, machine_irq, &pirq);