[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Multi-Function PCI passthrough not implemented?



2013/9/18 Jan Beulich <JBeulich@xxxxxxxx>:
>>>> On 18.09.13 at 16:03, "Wu, Feng" <feng.wu@xxxxxxxxx> wrote:
>> Seems the current implementation of xl only supports "*" notation, the
>> following
>> notations mentioned at
>> http://wiki.xen.org/wiki/Bus:Device.Function_(BDF)_Notation
>> are not supported:
>>
>> 0000:00:1d.0-2
>> 0000:00:1d.0,3,5,7
>> 0000:00:1d.2=0-0=2
>> 0000:00:1d.0=3,3=2,5=1,7=0
>
> Altering function numbers, especially to or from zero, is clearly not
> generally valid: There are devices where the multi-function bits is
> set only for function zero, and hence any other function being made
> (virtual) function zero would result in all other functions not being
> found during the guest OSes bus scan.

I am pretty sure I had it working in KVM with the following config:

<interface type='hostdev'>
      <source>
        <address type='pci' domain='0x0000' bus='0x06' slot='0x10'
function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0' multifunction='on'/>
    </interface>
    <interface type='hostdev'>
      <source>
        <address type='pci' domain='0x0000' bus='0x06' slot='0x10'
function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x1'/>
    </interface>
    <interface type='hostdev'>
      <source>
        <address type='pci' domain='0x0000' bus='0x06' slot='0x10'
function='0x2'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06'
function='0x0' multifunction='on'/>
    </interface>
    <interface type='hostdev'>
      <source>
        <address type='pci' domain='0x0000' bus='0x06' slot='0x10'
function='0x3'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06'
function='0x1'/>
 </interface>

So this was working with SR-IOV devices.
But maybe you're right, and it could fail with other PCI devices.

>
> Jan
>

Antonin

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.