All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Roger Pau Monné" <roger.pau@citrix.com>
To: "Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
Cc: Kevin Tian <kevin.tian@intel.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Jan Beulich <jbeulich@suse.com>, Wei Liu <wl@xen.org>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	George Dunlap <George.Dunlap@eu.citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>,
	Simon Gaiser <simon@invisiblethingslab.com>,
	Julien Grall <julien.grall@arm.com>,
	Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>,
	xen-devel@lists.xenproject.org, Brian Woods <brian.woods@amd.com>
Subject: Re: [Xen-devel] [PATCH v7 4/4] xen/x86: Allow stubdom access to irq created for msi.
Date: Mon, 30 Sep 2019 10:17:18 +0200	[thread overview]
Message-ID: <20190930081718.bij2lrh7fvavwtws@Air-de-Roger> (raw)
In-Reply-To: <20190929013554.GA24160@mail-itl>

On Sun, Sep 29, 2019 at 03:35:54AM +0200, Marek Marczykowski-Górecki wrote:
> On Thu, Sep 26, 2019 at 09:10:17AM +0200, Roger Pau Monné wrote:
> > On Thu, Sep 26, 2019 at 06:16:06AM +0200, Marek Marczykowski-Górecki wrote:
> > > On Wed, Sep 25, 2019 at 03:26:17PM +0200, Roger Pau Monné wrote:
> > > > On Wed, Sep 25, 2019 at 02:29:41PM +0200, Marek Marczykowski-Górecki wrote:
> > > > > On Wed, Sep 25, 2019 at 11:41:50AM +0200, Roger Pau Monné wrote:
> > > > > > It would still be nice to get the missing bits (interrupt enabling),
> > > > > > or else this patch is kind of pointless, since it still doesn't allow
> > > > > > stubdomains to work correctly with passed through devices.
> > > > > 
> > > > > Well, that part, as discussed, doesn't need to be in Xen. For example
> > > > > the solution deployed in current Qubes stable version is based on
> > > > > pciback for this purpose.
> > > > 
> > > > Ack. Do you think it would make sense to submit that part to Linux
> > > > then?
> > > 
> > > How would an interface with toolstack (when to allow enabling MSI)
> > > should look like? Right now I have it as extra attribute in sysfs of
> > > pciback and libxl writes to it. Or rather should it be in xenstore?
> > 
> > I think xenstore would be more suitable for this. There are already
> > some flags passed to pciback there: msitranslate, power_mgmt and
> > permissive (see libxl_pci.c:63).
> 
> Hmm, I see permissive is also set in sysfs
> (libxl_pci.c:pci_add_dm_done). And I think that is used by pciback,
> based on inspection of its source code.
> In fact, I don't see anything in pciback parsing opts-%d xenstore entry
> at all. It looks like it's only used by the toolstack to reconstruct
> libxl_device_pci struct from xenstore.

Then please use sysfs, using whatever mechanism is used by other
options seems fine to me.

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  parent reply	other threads:[~2019-09-30  8:17 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-25  2:41 [Xen-devel] [PATCH v7 0/4] Fix PCI passthrough for HVM with stubdomain Marek Marczykowski-Górecki
2019-09-25  2:41 ` [Xen-devel] [PATCH v7 1/4] libxl: do not attach xen-pciback to HVM domain, if stubdomain is in use Marek Marczykowski-Górecki
2019-09-25  2:41 ` [Xen-devel] [PATCH v7 2/4] libxl: attach PCI device to qemu only after setting pciback/pcifront Marek Marczykowski-Górecki
2019-09-25  2:41 ` [Xen-devel] [PATCH v7 3/4] libxl: don't try to manipulate json config for stubdomain Marek Marczykowski-Górecki
2019-09-25  2:41 ` [Xen-devel] [PATCH v7 4/4] xen/x86: Allow stubdom access to irq created for msi Marek Marczykowski-Górecki
2019-09-25  9:41   ` Roger Pau Monné
2019-09-25 12:29     ` Marek Marczykowski-Górecki
2019-09-25 13:26       ` Roger Pau Monné
2019-09-26  4:16         ` Marek Marczykowski-Górecki
2019-09-26  7:10           ` Roger Pau Monné
2019-09-29  1:35             ` Marek Marczykowski-Górecki
2019-09-30  1:59               ` Marek Marczykowski-Górecki
2019-09-30  8:17               ` Roger Pau Monné [this message]
2019-09-25 12:45     ` Jan Beulich
2019-09-26  4:05   ` [Xen-devel] [PATCH v7.1 " Marek Marczykowski-Górecki
2019-09-27 12:27     ` Jan Beulich
2019-09-27 14:21 ` [Xen-devel] [PATCH v7 0/4] Fix PCI passthrough for HVM with stubdomain Jan Beulich
2019-09-27 14:36   ` Wei Liu
2019-09-28 14:18     ` Marek Marczykowski-Górecki

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=20190930081718.bij2lrh7fvavwtws@Air-de-Roger \
    --to=roger.pau@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=brian.woods@amd.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien.grall@arm.com \
    --cc=kevin.tian@intel.com \
    --cc=konrad.wilk@oracle.com \
    --cc=marmarek@invisiblethingslab.com \
    --cc=simon@invisiblethingslab.com \
    --cc=sstabellini@kernel.org \
    --cc=suravee.suthikulpanit@amd.com \
    --cc=tim@xen.org \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.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 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.