]> xenbits.xensource.com Git - qemu-xen-4.2-testing.git/commitdiff
passthrough: let xen choose the pirq number
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 19 Nov 2010 18:50:43 +0000 (18:50 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 19 Nov 2010 18:50:43 +0000 (18:50 +0000)
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 <stefano.stabellini@eu.citrix.com>
hw/pass-through.c

index 014144ecf2ee16efda1c33cb0a4002a1be068cb2..9c5620da2076f32add7356e15ec6021c54d4f049 100644 (file)
@@ -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);