All of lore.kernel.org
 help / color / mirror / Atom feed
From: Don Slutz <don.slutz@gmail.com>
To: Wei Liu <wei.liu2@citrix.com>, Don Slutz <dslutz@verizon.com>
Cc: Keir Fraser <keir@xen.org>,
	Ian Campbell <ian.campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	xen-devel@lists.xen.org, Jan Beulich <jbeulich@suse.com>
Subject: Re: [PATCH 3/4] Allow vif= to specify PCI address for each nic
Date: Mon, 15 Jun 2015 13:45:26 -0400	[thread overview]
Message-ID: <557F0F36.6050202@Gmail.com> (raw)
In-Reply-To: <20150615155445.GE10177@zion.uk.xensource.com>

On 06/15/15 11:54, Wei Liu wrote:
> On Mon, Jun 15, 2015 at 10:15:51AM -0400, Don Slutz wrote:
>> This allows more then 32 nics.
>>
> 
> How does this patch help? What prevents you from having more than 32
> nics?
> 

Without a way to put the emulated nics onto a PCI to PCI Bridge, you are
limited to 1 PCI bus (the host one).

A PCI bus has a max of 32 PCI devices.

So, since the host bus has some PCI devices that are not nics, the limit
is smaller then 32.


>> This can help with Windows finding nics at boot time.
>>
>> This allows changing config file:
>>
>>     builder = "hvm"
>>     device_model_args_hvm = [
>>      "-device",
>>      "pci-bridge,chassis_nr=2,msi=on,id=pciBridge5.0,multifunction=on,addr=0x15.0",
>>      "-device",
>>      "vmxnet3,id=nic3,netdev=net3,mac=00:0c:29:86:44:be,bus=pciBridge5.0,addr=0x4.0x0",
>>      "-netdev",
>>      "type=tap,id=net3,ifname=vif.3-emu,script=/etc/qemu-ifup,downscript=no",
>>     ]
>>     vif = [
>>     ]
>>
>> to:
>>
>>     builder = "hvm"
>>     device_model_args_hvm = [
>>      "-device",
>>      "pci-bridge,chassis_nr=2,msi=on,id=pciBridge5.0,multifunction=on,addr=0x15.0",
>>     ]
>>     vif = [
>>      "model=vmxnet3,bridge=xenbr0,mac=00:0c:29:86:44:a0,bus=pciBridge5.0,addr=0x4.0x0",
>>     ]
>>
>> which enables usage of xen-netback.
>>
> 
> In any case, exposing HVM-only options to top-level vif configuration
> space doesn't look right.


There are already HVM-only options in vifs:

### type

This keyword is valid for HVM guests only.
...
### model

This keyword is valid for HVM guest devices with `type=ioemu` only.
...

> Why do you want to set bus and addr? The
> rationale should be stated in commit message.


That is why I said:

>> This can help with Windows finding nics at boot time.

Windows boot code is not as flexible as Linux.  Most versions of Windows
like to blue screen if the hardware changes enough.

nics as not as important as disks, but some Windows configurations wants
to do network access during boot.  If you are lucky they do not blue
screen if the nic moves.

> 
>> Signed-off-by: Don Slutz <dslutz@verizon.com>
>> CC: Don Slutz <dslutz@verizon.com>
>> ---
>>  docs/misc/xl-network-configuration.markdown | 14 ++++++++++++++
>>  tools/libxl/libxl_dm.c                      | 23 ++++++++++++++++++++---
>>  tools/libxl/libxl_types.idl                 |  2 ++
>>  tools/libxl/xl_cmdimpl.c                    |  4 ++++
>>  4 files changed, 40 insertions(+), 3 deletions(-)
>>
>> diff --git a/docs/misc/xl-network-configuration.markdown b/docs/misc/xl-network-configuration.markdown
>> index 3c439d4..6a7f6db 100644
>> --- a/docs/misc/xl-network-configuration.markdown
>> +++ b/docs/misc/xl-network-configuration.markdown
>> @@ -60,6 +60,20 @@ strategy. Otherwise in general you should prefer to generate a random
>>  MAC and set the locally administered bit since this allows for more
>>  bits of randomness than using the Xen OUI.
>>  
>> +### bus
>> +
>> +Specifies the name of the network bridge which this VIF should be
>> +added to. The default is `xenbr0`. The bridge must be configured using
>> +your distribution's network configuration tools. See the [wiki][net]
>> +for guidance and examples.
>> +
>> +### addr
>> +
>> +Specifies the name of the network bridge which this VIF should be
>> +added to. The default is `xenbr0`. The bridge must be configured using
>> +your distribution's network configuration tools. See the [wiki][net]
>> +for guidance and examples.
>> +
> 
> The above two paragraphs don't make sense to me. Is that copy-n-paste
> error?
> 

Sigh, yes.  Will fix.

   -Don Slutz

> Wei.
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
> 

  reply	other threads:[~2015-06-15 17:45 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-15 14:15 [PATCH 0/4] Add PCI to PCI bridge support to Xen Don Slutz
2015-06-15 14:15 ` [PATCH 1/4] hvmloader: Fixup pci_write* macros Don Slutz
2015-06-15 14:19   ` Andrew Cooper
2015-06-15 14:30     ` Don Slutz
2015-06-15 14:35       ` Andrew Cooper
2015-06-15 15:23         ` Jan Beulich
2015-06-15 16:09           ` Mihai Donțu
2015-06-15 17:14             ` Andrew Cooper
2015-06-16  7:39               ` Jan Beulich
2015-06-16  7:36             ` Jan Beulich
2015-06-15 14:36       ` Jan Beulich
2015-06-15 14:32     ` Jan Beulich
2015-06-15 14:15 ` [PATCH 2/4] hvmloader: Add support for PCI to PCI bridge Don Slutz
2015-06-15 14:26   ` Andrew Cooper
2015-06-15 14:56     ` Lars Kurth
2015-06-15 14:58     ` George Dunlap
2015-06-15 17:24       ` Don Slutz
2015-06-15 15:56     ` Don Slutz
2015-06-15 14:15 ` [PATCH 3/4] Allow vif= to specify PCI address for each nic Don Slutz
2015-06-15 15:54   ` Wei Liu
2015-06-15 17:45     ` Don Slutz [this message]
2015-06-16 10:32       ` Wei Liu
2015-06-16 15:23         ` Don Slutz
2015-06-16 16:14           ` Wei Liu
2015-06-16 19:02             ` Don Slutz
2015-06-16 20:08               ` Wei Liu
2015-06-15 14:15 ` [PATCH 4/4] Allow disk= to specify their emulated bus address Don Slutz

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=557F0F36.6050202@Gmail.com \
    --to=don.slutz@gmail.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=dslutz@verizon.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=keir@xen.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@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 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.