diff options
| author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-12-17 11:36:58 +0000 |
|---|---|---|
| committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-12-17 11:36:58 +0000 |
| commit | 044b99c6555f562254ae70dc39f32190eecbc1f2 (patch) | |
| tree | 593fc885b49b5d98b88001f9410ef70ecee6961b /hw/xen_pt_msi.c | |
| parent | 2c1d4d15f09cf95b8f832624e7aac2916f9d1865 (diff) | |
| download | focaccia-qemu-044b99c6555f562254ae70dc39f32190eecbc1f2.tar.gz focaccia-qemu-044b99c6555f562254ae70dc39f32190eecbc1f2.zip | |
xen: fix trivial PCI passthrough MSI-X bug
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
Diffstat (limited to 'hw/xen_pt_msi.c')
| -rw-r--r-- | hw/xen_pt_msi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xen_pt_msi.c b/hw/xen_pt_msi.c index 680767229b..db757cd1f1 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; |