All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>,
	"Tian, Kevin" <kevin.tian@intel.com>
Cc: "wei.liu2@citrix.com" <wei.liu2@citrix.com>,
	"stefano.stabellini@eu.citrix.com"
	<stefano.stabellini@eu.citrix.com>, "tim@xen.org" <tim@xen.org>,
	"ian.jackson@eu.citrix.com" <ian.jackson@eu.citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	Jan Beulich <JBeulich@suse.com>,
	"Zhang, Yang Z" <yang.z.zhang@intel.com>,
	"Chen, Tiejun" <tiejun.chen@intel.com>
Subject: Re: (v2) Design proposal for RMRR fix
Date: Wed, 14 Jan 2015 12:23:05 +0000	[thread overview]
Message-ID: <54B65FA9.4030704@eu.citrix.com> (raw)
In-Reply-To: <1421237655.19103.242.camel@citrix.com>

On 01/14/2015 12:14 PM, Ian Campbell wrote:
> On Wed, 2015-01-14 at 06:52 +0000, Tian, Kevin wrote:
>>> From: Jan Beulich [mailto:JBeulich@suse.com]
>>> Sent: Wednesday, January 14, 2015 12:06 AM
>>>
>>>>>> On 13.01.15 at 17:00, <george.dunlap@eu.citrix.com> wrote:
>>>> Another option I was thinking about: Before assigning a device to a
>>>> guest, you have to unplug the device and assign it to pci-back (e.g.,
>>>> with xl pci-assignable-add).  In addition to something like rmmr=host,
>>>> we could add rmrr=assignable, which would add all of the RMRRs of all
>>>> devices currently listed as "assignable".  The idea would then be that
>>>> you first make all your devices assignable, then just start your guests,
>>>> and everything you've made assignable will be able to be assigned.
>>>
>>> Nice idea indeed, but I'm not sure about its practicability: It may
>>> not be desirable to make all devices eventually to be handed to a
>>> guest prior to starting any of the guests it may get handed to. In
>>> particular there may be reasons why the host needs the device
>>> while (or until after) creating the guests.
>>>
>>
>> and I'm not sure whether there's enough knowledge to judge whether 
>> a device is assignable since potential conflicts may be detected only
>> when the guest is launched.
> 
> I don't think George was intending to imply otherwise, assignable here
> just means "bound to xen-pciback", there may be other reasons why the
> device cannot be assigned in practice when you come to actually use it,
> i.e. RMRR conflicts which may only be discovered when a guest is started
> would be one such practical reason.

Yes -- xl has a concept called "pci-assignable".  Before you can add a
device to a guest, you have to call "xl pci-assignable-add [device
spec]".  You can also run "xl pci-assignable-list" to see which devices
are currently assignable.

Normally this is true even for statically-assigned devices: If you add
pci= [ "$bdi" ] to a config file, and $bdi hasn't been made assignable,
then the pci-attach in domain creation will fail and the domain will be
destroyed.  You can make the domain builder do this automatically with
the "seize=1" parameter; i.e., pci = [ "$bdf,seize=1" ].

My suggestion was that in addition to specifying the particular ranges,
and specifying rmrr=host, we could also specify "rmrr=assignable", which
would cause the domain builder to internally run
libxl_pci_assignable_list() and find the RMRRs for all devices on the list.

But as Ian says, that's a "nice to have", not a requirement.

 -George

  reply	other threads:[~2015-01-14 12:23 UTC|newest]

Thread overview: 139+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-26 11:23 (v2) Design proposal for RMRR fix Tian, Kevin
2015-01-08  0:43 ` Tian, Kevin
2015-01-08 12:32 ` Tim Deegan
2015-01-09  0:53   ` Tian, Kevin
2015-01-09 12:00     ` Andrew Cooper
2015-01-08 12:49 ` George Dunlap
2015-01-08 12:54   ` George Dunlap
2015-01-08 13:00     ` Jan Beulich
2015-01-08 15:15       ` George Dunlap
2015-01-08 15:21         ` Jan Beulich
2015-01-09  2:43     ` Tian, Kevin
2015-01-12 11:25       ` George Dunlap
2015-01-12 13:56         ` Pasi Kärkkäinen
2015-01-12 14:23           ` George Dunlap
2015-01-08 12:58   ` Jan Beulich
2015-01-09  2:29     ` Tian, Kevin
2015-01-09  9:24       ` Jan Beulich
2015-01-09 10:03         ` Tian, Kevin
2015-01-09  2:42   ` Tian, Kevin
2015-01-08 13:54 ` Jan Beulich
2015-01-08 15:59   ` George Dunlap
2015-01-08 16:10     ` Jan Beulich
2015-01-08 18:02       ` George Dunlap
2015-01-08 18:12         ` Pasi Kärkkäinen
2015-01-09  3:12         ` Tian, Kevin
2015-01-09  8:58         ` Jan Beulich
2015-01-09 20:27         ` Konrad Rzeszutek Wilk
2015-01-12  9:44           ` Tian, Kevin
2015-01-12 12:12           ` Ian Campbell
2015-01-14 20:06             ` Konrad Rzeszutek Wilk
2015-01-09  2:49     ` Tian, Kevin
2015-01-09  2:27   ` Tian, Kevin
2015-01-09  9:21     ` Jan Beulich
2015-01-09 10:10       ` Tian, Kevin
2015-01-09 10:35         ` Jan Beulich
2015-01-12  8:46           ` Tian, Kevin
2015-01-12  9:32             ` Jan Beulich
2015-01-12  9:41               ` Tian, Kevin
2015-01-12  9:50                 ` Jan Beulich
2015-01-12  9:56                   ` Tian, Kevin
2015-01-12 10:08                     ` Jan Beulich
2015-01-12 10:12                       ` Tian, Kevin
2015-01-12 10:22                         ` Jan Beulich
2015-01-12 11:22                           ` Tian, Kevin
2015-01-12 11:37                             ` Jan Beulich
2015-01-12 11:41                               ` Tian, Kevin
2015-01-12 12:03                                 ` Jan Beulich
2015-01-12 12:16                                   ` Tian, Kevin
2015-01-12 12:46                                     ` Jan Beulich
2015-01-12 12:13                             ` George Dunlap
2015-01-12 12:23                               ` Ian Campbell
2015-01-12 12:28                               ` Tian, Kevin
2015-01-12 14:19                                 ` George Dunlap
2015-01-13 11:03                                   ` Tian, Kevin
2015-01-13 11:56                                     ` Jan Beulich
2015-01-13 12:03                                       ` Tian, Kevin
2015-01-13 15:52                                         ` Jan Beulich
2015-01-13 15:58                                           ` George Dunlap
2015-01-14  8:06                                             ` Tian, Kevin
2015-01-14  9:00                                               ` Jan Beulich
2015-01-14  9:43                                                 ` Tian, Kevin
2015-01-14 10:24                                                   ` Jan Beulich
2015-01-14 12:01                                                     ` George Dunlap
2015-01-14 12:11                                                       ` Tian, Kevin
2015-01-14 14:32                                                       ` Jan Beulich
2015-01-14 14:37                                                         ` George Dunlap
2015-01-14 14:47                                                           ` Jan Beulich
2015-01-14 18:29                                                             ` George Dunlap
2015-01-15  8:37                                                               ` Jan Beulich
2015-01-15  9:36                                                                 ` Tian, Kevin
2015-01-15 10:06                                                                   ` Jan Beulich
2015-01-18  8:36                                                                     ` Tian, Kevin
2015-01-19  8:42                                                                       ` Jan Beulich
2015-01-15 11:45                                                                   ` George Dunlap
2015-01-18  8:58                                                                     ` Tian, Kevin
2015-01-19  9:32                                                                       ` Jan Beulich
2015-01-19 11:24                                                                         ` Tian, Kevin
2015-01-19 11:33                                                                           ` Tim Deegan
2015-01-19 11:41                                                                             ` Jan Beulich
2015-01-19 12:23                                                                               ` Tim Deegan
2015-01-19 13:00                                                                                 ` George Dunlap
2015-01-20  0:52                                                                                   ` Tian, Kevin
2015-01-20  8:43                                                                                     ` Jan Beulich
2015-01-20  8:56                                                                                       ` Tian, Kevin
2015-01-20 12:56                                                                                     ` George Dunlap
2015-01-21  2:43                                                                                       ` Tian, Kevin
2015-01-19 13:52                                                                                 ` Jan Beulich
2015-01-19 15:29                                                                                   ` Tim Deegan
2015-01-20  0:45                                                                                   ` Tian, Kevin
2015-01-20  7:29                                                                                     ` Jan Beulich
2015-01-20  8:59                                                                                       ` Tian, Kevin
2015-01-20  9:10                                                                                         ` Jan Beulich
2015-01-20 10:38                                                                                           ` Ian Campbell
2015-01-20 10:48                                                                                             ` Jan Beulich
2015-01-21  2:30                                                                                               ` Tian, Kevin
2015-01-21 10:18                                                                                                 ` Jan Beulich
2015-01-19 10:21                                                                       ` George Dunlap
2015-01-19 11:08                                                                         ` Ian Campbell
2015-01-14 12:03                                                     ` Tian, Kevin
2015-01-14 14:34                                                       ` Jan Beulich
2015-01-14 12:12                                                     ` George Dunlap
2015-01-14 14:36                                                       ` Jan Beulich
2015-01-14 12:16                                                   ` George Dunlap
2015-01-14 14:39                                                     ` Jan Beulich
2015-01-14 18:16                                                       ` George Dunlap
2015-01-14 12:21                                                   ` Ian Campbell
2015-01-14 12:17                                               ` Ian Campbell
2015-01-14 15:07                                                 ` Jan Beulich
2015-01-14 15:18                                                   ` Ian Campbell
2015-01-14 15:39                                                     ` George Dunlap
2015-01-14 15:43                                                       ` Ian Campbell
2015-01-14 18:14                                                         ` George Dunlap
2015-01-15 10:05                                                           ` Ian Campbell
2015-01-15 11:58                                                             ` George Dunlap
2015-01-14 16:26                                                       ` Jan Beulich
2015-01-15  8:40                                                   ` Tian, Kevin
2015-01-14 12:29                                               ` George Dunlap
2015-01-14 14:42                                                 ` Jan Beulich
2015-01-14 18:22                                                   ` George Dunlap
2015-01-15  8:18                                                     ` Tian, Kevin
2015-01-13 13:45                                     ` George Dunlap
2015-01-13 15:47                                       ` Jan Beulich
2015-01-13 16:00                                         ` George Dunlap
2015-01-13 16:06                                           ` Jan Beulich
2015-01-14  6:52                                             ` Tian, Kevin
2015-01-14 12:14                                               ` Ian Campbell
2015-01-14 12:23                                                 ` George Dunlap [this message]
2015-01-15  8:12                                                   ` Tian, Kevin
2015-01-13 16:45                                     ` Konrad Rzeszutek Wilk
2015-01-14  8:13                                       ` Tian, Kevin
2015-01-14  9:02                                         ` Jan Beulich
2015-01-14  9:44                                           ` Tian, Kevin
2015-01-14 10:25                                             ` Jan Beulich
2015-01-14 20:42                                         ` Konrad Rzeszutek Wilk
2015-01-15  8:09                                           ` Tian, Kevin
2015-01-16 17:17                                             ` Konrad Rzeszutek Wilk
2015-01-15  8:43                                           ` Jan Beulich
2015-01-14 12:47                                       ` George Dunlap
2015-01-12 12:30                               ` Tian, Kevin

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=54B65FA9.4030704@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=kevin.tian@intel.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tiejun.chen@intel.com \
    --cc=tim@xen.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    --cc=yang.z.zhang@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 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.