From: Zhenzhong Duan <zhenzhong.duan@oracle.com>
To: xen-devel <xen-devel@lists.xen.org>,
Yuval Shaia <yuval.shaia@oracle.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Feng Jin <joe.jin@oracle.com>, Chien Yen <chien.yen@oracle.com>
Subject: [PATCH 2/2] qemu: pass entry_nr and msix addr/data when calling xc_domain_update_msi_irq
Date: Wed, 08 May 2013 16:17:32 +0800 [thread overview]
Message-ID: <518A0A1C.40701@oracle.com> (raw)
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
reply other threads:[~2013-05-08 8:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=518A0A1C.40701@oracle.com \
--to=zhenzhong.duan@oracle.com \
--cc=chien.yen@oracle.com \
--cc=joe.jin@oracle.com \
--cc=konrad.wilk@oracle.com \
--cc=xen-devel@lists.xen.org \
--cc=yuval.shaia@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.