From: stefano.stabellini@eu.citrix.com Subject: [PATCH 4 of 4] qemu-xen: let xen choose the pirq number Date: Mon, 30 Aug 2010 12:25:04 +0100 Message-ID: <1283167504-7787-4-git-send-email-stefano.stabellini@eu.citrix.com> References: Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Stefano Stabellini List-Id: xen-devel@lists.xenproject.org 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 f6ae4b2..81ae3f3 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);