]> git.proxmox.com Git - mirror_qemu.git/commitdiff
xen: fix trivial PCI passthrough MSI-X bug
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 17 Dec 2012 11:36:58 +0000 (11:36 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 17 Dec 2012 11:36:58 +0000 (11:36 +0000)
We are currently passing entry->data as address parameter. Pass
entry->addr instead.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Tested-by: Sander Eikelenboom <linux@eikelenboom.it>
Xen-devel: http://marc.info/?l=xen-devel&m=135515462613715

hw/xen_pt_msi.c

index 680767229b01a1c8f00cbe4365e4b898b23c8d1d..db757cd1f10e9c653fbb088c5378413956addf30 100644 (file)
@@ -321,7 +321,7 @@ static int xen_pt_msix_update_one(XenPCIPassthroughState *s, int entry_nr)
 
     pirq = entry->pirq;
 
-    rc = msi_msix_setup(s, entry->data, entry->data, &pirq, true, entry_nr,
+    rc = msi_msix_setup(s, entry->addr, entry->data, &pirq, true, entry_nr,
                         entry->pirq == XEN_PT_UNASSIGNED_PIRQ);
     if (rc) {
         return rc;