Hello, folks!

I have KVM VM with bypassed PCI-E 82599 two port NIC.

Driver version: 4.0.3 at Debian Jessie 3.16 kernel.

lspci -v|grep Eth
00:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8100/8101L/8139 PCI Fast Ethernet Adapter (rev 20)
00:05.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit
SFI/SFP+ Network Connection (rev 01)
Subsystem: Intel Corporation Ethernet Server Adapter X520-2
00:06.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit
SFI/SFP+ Network Connection (rev 01)
Subsystem: Intel Corporation Ethernet Server Adapter X520-2

And I want to use VF inside this KVM VM.

And I doing following:
rmmod ixgbe ixgbevf
modprobe ixgbe max_vfs=2,2
modprobe ixgbevf

But after this operation I haven't saw virtual functions in lspci output:
lspci -tv
-[0000:00]-+-00.0  Intel Corporation 440FX - 82441FX PMC [Natoma]
           +-01.0  Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
           +-01.1  Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
           +-01.3  Intel Corporation 82371AB/EB/MB PIIX4 ACPI
           +-02.0  Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139
PCI Fast Ethernet Adapter
           +-03.0  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1
           +-03.1  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2
           +-03.2  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3
           +-03.7  Intel Corporation 82801I (ICH9 Family) USB2 EHCI
Controller #1
           +-04.0  Red Hat, Inc Virtio memory balloon
           +-05.0  Intel Corporation 82599ES 10-Gigabit SFI/SFP+
Network Connection
           +-06.0  Intel Corporation 82599ES 10-Gigabit SFI/SFP+
Network Connection
           \-07.0  Cirrus Logic GD 5446

And haven't saw any additional interfaces:

ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
mode DEFAULT group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP mode DEFAULT group default qlen 1000
    link/ether 52:54:00:ec:be:23 brd ff:ff:ff:ff:ff:ff
19: eth6: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode
DEFAULT group default qlen 1000
    link/ether 90:e2:ba:83:3f:24 brd ff:ff:ff:ff:ff:ff
20: eth5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
mode DEFAULT group default qlen 1000
    link/ether 90:e2:ba:83:3f:25 brd ff:ff:ff:ff:ff:ff


I saw this error in dmesg:

[848550.356391] ixgbe 0000:00:06.0: Enabling SR-IOV VFs using the
max_vfs module parameter is deprecated.
[848550.356398] ixgbe 0000:00:06.0: Please use the pci sysfs interface
instead. Ex:
[848550.356403] ixgbe 0000:00:06.0: echo '2' >
/sys/bus/pci/devices/0000:00:06.0/sriov_numvfs
[848705.672383] ixgbe 0000:00:06.0 (unregistered net_device): Failed
to enable PCI sriov: -38 <------- COULD BE IMPORTANT

And try another approach:
rmmod ixgbe ixgbevf

modprobe ixgbe
echo '2' > /sys/bus/pci/devices/0000:00:06.0/sriov_numvfs
echo '2' > /sys/bus/pci/devices/0000:00:05.0/sriov_numvfs

And it's not working at all:
echo '2' > /sys/bus/pci/devices/0000:00:06.0/sriov_numvfs
-bash: /sys/bus/pci/devices/0000:00:06.0/sriov_numvfs: Permission denied

Is it possible to use VF inside KVM VM?

-- 
Sincerely yours, Pavel Odintsov

------------------------------------------------------------------------------
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel&#174; Ethernet, visit 
http://communities.intel.com/community/wired

Reply via email to