From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Eli Cohen <eli@dev.mellanox.co.il>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Xen interrupts when using passthrough
Date: Tue, 4 Oct 2011 17:50:17 +0100 [thread overview]
Message-ID: <4E8B3949.4090803@citrix.com> (raw)
In-Reply-To: <20111004162906.GA2681@mtldesk30>
On 04/10/11 17:29, Eli Cohen wrote:
> Hi,
> I am trying to debug a problem where a guest does not receive the
> correct interrupt. It's a passtrough system where the guest is given a
> virtual function and is using MSIX to recieve the interrupts.
Do you mean that it is receiving interrupts for another device, or are
you trying to pass through multiple interrupts for a device and the
interrupt is appearing in the wrong event channel?
Could you describe your hardware setup in detail please, especially
AMD/Intel, IOMMU features in use according to Xen, and the PCI topology
of the box.
> I am
> trying to understand how is the guest supposed to recieve the
> interrupt: Is it handled by dom0 which is using event channels to pass
> the interrupt to domU, or is handled directly by domU. Please send
> pointers to the code.
(I am not very familiar with guest IRQs so the following might not be
accurate)
For a PCI passthrough system, the interrupts should be bound directly to
domU, with no dom0 interaction. A PIRQ is bound to an event channel
using the EVTCHNOP_bind_pirq in common/event_channel.c, which should be
set up by qemu for the relevant domU, when it is interpreting the PCI
config space reads/writes.
> Thanks in advance,
> eli;
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
--
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com
next prev parent reply other threads:[~2011-10-04 16:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-04 16:29 Xen interrupts when using passthrough Eli Cohen
2011-10-04 16:50 ` Andrew Cooper [this message]
2011-10-04 19:00 ` Eli Cohen
2011-10-05 7:27 ` Jan Beulich
2011-10-05 8:26 ` Eli Cohen
2011-10-05 8:51 ` Jan Beulich
2011-10-05 9:00 ` Eli Cohen
2011-10-05 9:09 ` Jan Beulich
2011-10-05 9:45 ` Eli Cohen
2011-10-05 9:54 ` Ian Campbell
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=4E8B3949.4090803@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=eli@dev.mellanox.co.il \
--cc=xen-devel@lists.xensource.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.