From 60766b459c41e429a4b2405124b42512ea362984 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 19 Nov 2010 18:50:43 +0000 Subject: [PATCH] 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 --- hw/pass-through.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5