From: "Jan Beulich" <JBeulich@novell.com>
To: Yunhong Jiang <yunhong.jiang@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
KonradRzeszutek Wilk <konrad.wilk@oracle.com>
Subject: RE: [PATCH, RFC, resend] Re: granting access to MSI-X table and pending bit array
Date: Fri, 27 Aug 2010 10:10:53 +0100 [thread overview]
Message-ID: <4C779D3D0200007800012784@vpn.id2.novell.com> (raw)
In-Reply-To: <789F9655DD1B8F43B48D77C5D30659732A1291B6@shsmsx501.ccr.corp.intel.com>
>>> On 27.08.10 at 03:48, "Jiang, Yunhong" <yunhong.jiang@intel.com> wrote:
>>From: Jan Beulich [mailto:JBeulich@novell.com]
>>Because pciback does the actual enabling on behalf of the guest.
>>Any resource adjustments done when memory decoding gets
>>enabled won't be known at the time the guest starts.
>
> Does this resource adjustment work in current pciback/hypervisor? At least
pciback and hypervisor on its own presumably have no problem, but
the tools won't cope with it (as they read the resource settings when
assigning the device, before it gets enabled). I never liked that solution
anyway, as it basically takes away control from the hypervisor (which
could monitor config space changes if there wasn't the problem of
how to handle MMCONFIG accesses). Instead of passing resource
ownership information to Xen, all the tools should do is pass PCI
device ownership information. Any dynamic change to the device's
resources should be handled by the hypervisor. Individual resources
should be claimed for a guest only for non-PCI devices one wants
the guest to have access to.
> it means we need remove the old iomem permission/mapping and add the new
> iomem permission, although not sure if any other impact. And if we want to
> add this support to pciback/hypervisor, we can of course cover the MSI-x
> read-only situation.
>
>>Again - knowing about the PCI hierarchy doesn't mean knowing about
>>all resources. One option clearly is to require a (new) callout from Dom0
>>when any resources get adjusted. What I don't like about this is that
>>all existing Dom0 kernels would need fixing, i.e. I'd prefer a solution
>>that is contained to hypervisor+tools.
>
> If we trust dom0, we don't need care dom0's writing access.
This is not just about Dom0's write access - I'm in particular talking
about resource adjustments done to passed through devices.
> If we don't trust dom0, and if hypervisor does not protect pci configuration
> space access, this new callout, comparing with your patch, seems make no
> difference IMHO.
>
> Anyway, your patch do make great improvement, these issues (global list,
> guest's existing mapping and checking in _sh_propgate) is not important, or
> can be enhanced later, I'm glad to verify your patch on my system. Do you
> have any updated patch, or I can simply use the one you sent out on Aug, 13?
Yes, that one should be fine and up-to-date.
Jan
next prev parent reply other threads:[~2010-08-27 9:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-13 13:37 [PATCH, RFC, resend] Re: granting access to MSI-X table and pending bit array Jan Beulich
2010-08-14 6:32 ` Keir Fraser
2010-08-16 7:55 ` Jan Beulich
2010-08-26 6:24 ` Jiang, Yunhong
2010-08-26 7:06 ` Jan Beulich
2010-08-26 8:41 ` Jiang, Yunhong
2010-08-26 11:22 ` Jan Beulich
2010-08-27 1:48 ` Jiang, Yunhong
2010-08-27 9:10 ` Jan Beulich [this message]
2010-08-27 9:38 ` Jiang, Yunhong
2010-09-01 7:39 ` Jiang, Yunhong
2010-09-15 1:32 ` Jiang, Yunhong
2010-09-15 6:52 ` Keir Fraser
2010-09-15 7:02 ` Jiang, Yunhong
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=4C779D3D0200007800012784@vpn.id2.novell.com \
--to=jbeulich@novell.com \
--cc=konrad.wilk@oracle.com \
--cc=xen-devel@lists.xensource.com \
--cc=yunhong.jiang@intel.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 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).