All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] qemu: pass entry_nr and msix addr/data when calling xc_domain_update_msi_irq
@ 2013-05-08  8:17 Zhenzhong Duan
  0 siblings, 0 replies; only message in thread
From: Zhenzhong Duan @ 2013-05-08  8:17 UTC (permalink / raw)
  To: xen-devel, Yuval Shaia, Konrad Rzeszutek Wilk, Feng Jin,
	Chien Yen

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@oracle.com>
Tested-by: Yuval Shaia <yuval.shaia@oracle.com>
---
 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-08  8:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-08  8:17 [PATCH 2/2] qemu: pass entry_nr and msix addr/data when calling xc_domain_update_msi_irq Zhenzhong Duan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.