Patchwork xen: fix trivial PCI passthrough MSI-X bug

login
register
mail settings
Submitter Stefano Stabellini
Date Dec. 10, 2012, 4:47 p.m.
Message ID <alpine.DEB.2.02.1212101644330.17523@kaball.uk.xensource.com>
Download mbox | patch
Permalink /patch/204970/
State New
Headers show

Comments

Stefano Stabellini - Dec. 10, 2012, 4:47 p.m.
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

Patch

diff --git a/hw/xen_pt_msi.c b/hw/xen_pt_msi.c
index 6807672..db757cd 100644
--- a/hw/xen_pt_msi.c
+++ b/hw/xen_pt_msi.c
@@ -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;