From: Stefano Stabellini Date: Mon, 17 Dec 2012 11:36:58 +0000 (+0000) Subject: xen: fix trivial PCI passthrough MSI-X bug X-Git-Tag: qemu-xen-4.3.0-rc1~15 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c849ef3781f21c3f711d68215048cd33f3cd385a;p=qemu-upstream-4.3-testing.git xen: fix trivial PCI passthrough MSI-X bug upstream-commit-id: 044b99c6555f562254ae70dc39f32190eecbc1f2 We are currently passing entry->data as address parameter. Pass entry->addr instead. Signed-off-by: Stefano Stabellini Tested-by: Sander Eikelenboom Xen-devel: http://marc.info/?l=xen-devel&m=135515462613715 --- diff --git a/hw/xen_pt_msi.c b/hw/xen_pt_msi.c index 680767229..db757cd1f 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;