[vbox-dev] ixgbe VF device passthrough into guest

Liu, Yong yong.liu at intel.com
Thu Feb 5 06:55:57 GMT 2015


Hi all,
I want to do ixgbe VF device passthrough by VirtualBox and just met one issue. 
After attached VF device and started guest, the assigned pci device can be found in guest. 
The detail steps and log listed below. Is there anybody can help me on that? Thanks a lot.

Boot host with iommu enabled.
Create VF device.
	echo 1 > /sys/bus/pci/devices/0000\:0a\:00.0/sriov_numvfs
Attached VF device to guest.
	VBoxManage modifyvm "fedora20" --pciattach 0a:10.0 at 01:05.0
Start guest.
	VBoxManage startvm "fedora20"	

Host log shown that VF device has been bound to pci-stub and iommu enabled.

[root at test  ~]# dmesg
[  142.728246] vboxpci: vboxPciOsDevInit: dev=a80
[  142.728356] vboxpci: detected device: 8086:10ed at 0a:10.0, driver ixgbevf
[  142.740370] pci-stub 0000:0a:10.0: claimed by stub
[  142.740523] vboxpci: vboxPciOsDevInit: dev=a80 pdev=ffff880828ecb000
[  142.740536] pci-stub 0000:0a:10.0: enabling device (0000 -> 0002)
[  142.740657] a80: linux vboxPciOsDevGetRegionInfo: reg=0
[  142.740660] got mmio region: d0c00000:16384
[  142.740666] a80: linux vboxPciOsDevGetRegionInfo: reg=2
[  142.740669] a80: linux vboxPciOsDevGetRegionInfo: reg=3
[  142.740671] got mmio region: d0b00000:16384
[  142.740675] a80: linux vboxPciOsDevGetRegionInfo: reg=5
[  142.740678] a80: linux vboxPciOsDevGetRegionInfo: reg=6
[  144.356651] created IOMMU domain ffff8808273241c0
[  144.389967] power state: 0
[  144.491065] vboxpci: iommu_attach_device() success


After login into guest and dump all pci device. I can't seen my assigned VF device.

00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:18.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2)
00:19.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:1f.2 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02)
00:1f.4 USB controller: Apple Inc. KeyLargo/Intrepid USB
00:1f.5 USB controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller

Best Regards,
Liuyong(Marvin)





More information about the vbox-dev mailing list