ironpass3:~/sles11_sp2_gm # xm pci-list-assignable-devices
0000:08:00.1
0000:08:00.2
0000:08:00.3
0000:08:00.4
ironpass3:~/sles11_sp2_gm # xm create sles11_sp2_gm.xenconfig
Using config file "./sles11_sp2_gm.xenconfig".
Started domain sles11_sp2_gm (id=5)
ironpass3:~/sles11_sp2_gm # uname -a
Linux ironpass3 3.0.93-0.8-xen #1 SMP Tue Aug 27 08:44:18 UTC 2013 (70ed288) x86_64 x86_64 x86_64 GNU/Linux
ironpass3:~/sles11_sp2_gm #
ironpass3:~/sles11_sp2_gm #
ironpass3:~/sles11_sp2_gm # grep pci sles11_sp2_gm.xenconfig
#pci = [ '0000:08:00.1=0@0a', '0000:08:00.2=0@0b', '0000:08:00.3=0@0c', '0000:08:00.4=0@0d' ]
pci = [ '0000:08:00.1=0,2=1,3=2,4=3@0a' ]
xen_platform_pci=0
ironpass3:~/sles11_sp2_gm #
ironpass3:~/sles11_sp2_gm #
ironpass3:~/sles11_sp2_gm # lspci -nn -s 08:00
08:00.0 Co-processor [0b40]: Intel Corporation Device [8086:0434] (rev 10)
08:00.1 Ethernet controller [0200]: Intel Corporation DH8900CC Series Gigabit Network Connection [8086:0438] (rev 10)
08:00.2 Ethernet controller [0200]: Intel Corporation DH8900CC Series Gigabit Network Connection [8086:0438] (rev 10)
08:00.3 Ethernet controller [0200]: Intel Corporation DH8900CC Series Gigabit Network Connection [8086:0438] (rev 10)
08:00.4 Ethernet controller [0200]: Intel Corporation DH8900CC Series Gigabit Network Connection [8086:0438] (rev 10)
08:00.5 Co-processor [0b40]: Intel Corporation Device [8086:043e] (rev 10)
ironpass3:~/sles11_sp2_gm #
ironpass3:~/sles11_sp2_gm # xm console sles11_sp2_gm
linux-34o4:~ # lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC [Natoma] [8086:1237] (rev 02)
00:01.0 ISA bridge [0601]: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] [8086:7000]
00:01.1 IDE interface [0101]: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] [8086:7010]
00:01.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 01)
00:02.0 VGA compatible controller [0300]: Cirrus Logic GD 5446 [1013:00b8]
00:0a.0 Ethernet controller [0200]: Intel Corporation DH8900CC Series Gigabit Network Connection [8086:0438] (rev 10)
00:0a.1 Ethernet controller [0200]: Intel Corporation DH8900CC Series Gigabit Network Connection [8086:0438] (rev 10)
00:0a.2 Ethernet controller [0200]: Intel Corporation DH8900CC Series Gigabit Network Connection [8086:0438] (rev 10)
00:0a.3 Ethernet controller [0200]: Intel Corporation DH8900CC Series Gigabit Network Connection [8086:0438] (rev 10)
linux-34o4:~ #
create ^
title it xl does not support specifying virtual function for passthrough device
thanks
The code is a bit confusing, but that does appear to be the case. libxl
On Thu, 2013-10-31 at 14:29 -0700, Saurabh Mishra wrote:
> In XM toolchain, we use to put pci = [ '0000:07:11.6=0@1a' ] but looks
> like in XL toolchain there is no way to specify function in the guest.
seems to have some degree of support but I can't see any code in xl (or
the libxlu helper library function which parses the PCI options) that
would support the =N@M syntax.
Given the lack of xl support there's a good chance that the libxl
support is relatively untested.
Do you happen to know (or can you easily do the experiment to find out)
> Kindly let me know.
>
>
> XM - pci = [ '0000:07:11.6=0@1a' ]
> XL - pci = [ '0000:07:11.6@1a' ]
>
>
> In the guest VM we see that PCI device is getting 0 function in both
> the cases however, it may not work the same way in the future.
what happens with '0000:07:11.6@1a' on xm? Does the guest see function 0
or function 6? If it is 0 then I think we can safely say xl will not
change, but if it is 6 we'll have to have a think...
Ian.