All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@eu.citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Wei Liu <wei.liu2@citrix.com>,
	xen-devel <xen-devel@lists.xenproject.org>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: xl/SR-IOV: disposition of VFs when PF disappears?
Date: Mon, 27 Oct 2014 12:57:46 +0000	[thread overview]
Message-ID: <1414414666.23883.13.camel@eu.citrix.com> (raw)
In-Reply-To: <544E4A4E020000780004267D@mail.emea.novell.com>

On Mon, 2014-10-27 at 12:36 +0000, Jan Beulich wrote:
> All,
> 
> Intel reports that the sequence
> 
> - xl pci-assignable-add <VF>
> - briefly run guest using that device [not sure whether that's really a
>   necessary step]
> - xl pci-assignable-add <PF of VF>
> 
> results in both VF and PF being listed as assignable (the fact that as a
> result the PF handed to a guest doesn't work is secondary here, as I
> think this is a driver issue). Is that really how it should be? Shouldn't
> instead all VFs get removed when the PF device (e.g. due to the
> PF driver getting unloaded, which is a necessary part of making it
> assignable) goes away? Or is it required for the admin to manually
> remove the assignable VFs prior to making the PF go away?

xl is just controlling/exposing the set of devices which are bound to
pciback here. (pci-assignable-list is literally a readdir loop over the
relevant sysfs dir).

I'm not sure if it should be up to (lib)xl, pciback or the core Linux
pci stuff to handle the creation/destruction of VF devices when the PF
driver is unbound/assigned. In fact I'm not even sure if VF lifetime is
in any way tied to the PF driver state.

I've added Konrad for a kernel-size pciback perspective.

Ian.

  reply	other threads:[~2014-10-27 12:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-27 12:36 xl/SR-IOV: disposition of VFs when PF disappears? Jan Beulich
2014-10-27 12:57 ` Ian Campbell [this message]
2014-10-27 13:07   ` Jan Beulich
2014-10-27 13:35   ` Konrad Rzeszutek Wilk
2014-10-27 17:53     ` Anirban Chakraborty
2014-10-27 17:57       ` Stefano Stabellini
2014-10-27 18:07       ` Konrad Rzeszutek Wilk
2014-10-27 19:53         ` Anirban Chakraborty
2014-10-28 10:25         ` Jan Beulich
2014-10-28 14:00           ` Konrad Rzeszutek Wilk
2014-10-28 15:18             ` Jan Beulich
2014-10-28 16:25               ` Jan Beulich
2014-10-28 16:30                 ` Jan Beulich
2014-10-28 16:56                 ` Konrad Rzeszutek Wilk
2014-10-29  7:45                   ` Jan Beulich
2014-10-27 13:03 ` Andrew Cooper
2014-10-27 13:12   ` Jan Beulich

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=1414414666.23883.13.camel@eu.citrix.com \
    --to=ian.campbell@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --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.