From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Jan Beulich <JBeulich@suse.com>, xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PVH]: Help: msi.c
Date: Wed, 12 Dec 2012 17:15:23 -0800 [thread overview]
Message-ID: <20121212171523.332a0a89@mantra.us.oracle.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1212111208260.17523@kaball.uk.xensource.com>
On Tue, 11 Dec 2012 12:10:19 +0000
Stefano Stabellini <stefano.stabellini@eu.citrix.com> wrote:
> On Tue, 11 Dec 2012, Mukesh Rathor wrote:
> > On Mon, 10 Dec 2012 09:43:34 +0000
> > "Jan Beulich" <JBeulich@suse.com> wrote:
> >
> > > >>> On 08.12.12 at 02:46, Mukesh Rathor <mukesh.rathor@oracle.com>
> > > >>> wrote:
> > > > The second is msi.c. I don't understand it very well, and need
> > > > to figure what to do for PVH. Would appreciate suggestions if
> > > > anyone knows.
> > >
> > > Why do you think you need to do something specially for PVH here
> > > in the first place? The only adjustment I would expect might be
> > > needed is address translation (depending on how PVH deal with
> > > MMIO addresses).
> >
> > Ok, thanks. Looks like I'm missing some address translation
> > somewhere, getting EPT violation from dom0. Time to read up more on
> > msi-x and debug.
>
> That's strange because AFAIK Linux is never editing the MSI-X entries
> directly: give a look at
> arch/x86/pci/xen.c:xen_initdom_setup_msi_irqs, Linux only remaps MSIs
> into pirqs using hypercalls. Xen should be the only one to touch the
> real MSI-X table.
So, this is what's happening. The side effect of :
if ( rangeset_add_range(mmio_ro_ranges, dev->msix_table.first,
dev->msix_table.last) )
WARN();
if ( rangeset_add_range(mmio_ro_ranges, dev->msix_pba.first,
dev->msix_pba.last) )
WARN();
in msix_capability_init() in xen is that the dom0 EPT entries that I've
mapped are going from RW to read only. Then when dom0 accesses it, I
get EPT violation. In case of pure PV, the PTE entry to access the
iomem is RW, and the above rangeset adding doesn't affect it. I don't
understand why? Looking into that now...
thanks
Mukesh
next prev parent reply other threads:[~2012-12-13 1:15 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-08 1:46 [PVH]: Help: msi.c Mukesh Rathor
2012-12-10 9:43 ` Jan Beulich
2012-12-11 2:43 ` Mukesh Rathor
2012-12-11 12:10 ` Stefano Stabellini
2012-12-13 1:15 ` Mukesh Rathor [this message]
2012-12-13 1:43 ` Mukesh Rathor
2012-12-13 10:42 ` Jan Beulich
2012-12-13 12:19 ` Stefano Stabellini
2012-12-13 13:39 ` Jan Beulich
2012-12-13 14:25 ` Stefano Stabellini
2012-12-14 20:08 ` Mukesh Rathor
2012-12-17 12:42 ` Stefano Stabellini
2012-12-17 12:57 ` Jan Beulich
2012-12-17 14:16 ` Stefano Stabellini
2012-12-17 15:28 ` Jan Beulich
2012-12-18 21:16 ` Konrad Rzeszutek Wilk
2012-12-19 11:19 ` Stefano Stabellini
2012-12-19 15:37 ` Konrad Rzeszutek Wilk
2012-12-20 11:49 ` Stefano Stabellini
2012-12-21 21:01 ` Konrad Rzeszutek Wilk
2013-01-04 16:57 ` Stefano Stabellini
2013-01-08 19:49 ` Konrad Rzeszutek Wilk
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=20121212171523.332a0a89@mantra.us.oracle.com \
--to=mukesh.rathor@oracle.com \
--cc=JBeulich@suse.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).