[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 2/2] qemu: pass entry_nr and msix addr/data when calling xc_domain_update_msi_irq



Entry_nr and msix entry need to be passed to xen to initialize msix entry
buffer right afrer the accelerated msix entrys are allocated.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@xxxxxxxxxx>
Tested-by: Yuval Shaia <yuval.shaia@xxxxxxxxxx>
---
 hw/pt-msi.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/hw/pt-msi.c b/hw/pt-msi.c
index b03b989..3524cf6 100644
--- a/hw/pt-msi.c
+++ b/hw/pt-msi.c
@@ -142,7 +142,7 @@ int pt_msi_update(struct pt_dev *d)
            d->msi->pirq, gvec, gflags);
 
     ret = xc_domain_update_msi_irq(xc_handle, domid, gvec,
-                                     d->msi->pirq, gflags, 0);
+                                     d->msi->pirq, gflags, 0, 0, 0);
 
     if (ret)
     {
@@ -319,7 +319,8 @@ static int pt_msix_update_one(struct pt_dev *dev, int 
entry_nr)
             entry_nr, pirq, gvec);
 
     ret = xc_domain_update_msi_irq(xc_handle, domid, gvec, pirq, gflags,
-                                   dev->msix->mmio_base_addr);
+                                   dev->msix->mmio_base_addr, entry_nr,
+                                   entry->io_mem);
     if ( ret )
     {
         PT_LOG("Error: Updating msix irq info for entry %d\n", entry_nr);
-- 
1.7.3


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.