2014年8月25日 发布
ethernet device driver and firmware information:
ethtool -i eth0
(yum install ethtool or apt-get install ethtool)
Setting up PCI pass-through
You can configure a networking device to use PCI pass-through.
Before you start, verify that your host supports either Intel VT-d or AMD IOMMU. Then, verify that this support is enabled in both the machine BIOS and the Linux kernel.
To set up PCI pass-through, complete the following steps:
Identify the ID and other slot information that is associated with the PCI device by typing the following command:
lspci -nn
Your output might include a line like the following line, which identifies the network adapter:
15:00.0 Ethernet controller [0200]: Intel Corporation 82599EB 10-Gigabit Network \
Connection [8086:10fb] (rev 01)
Unbind the device from the host by using the echo command. For example:
echo "8086 10fb" > /sys/bus/pci/drivers/pci-stub/new_id
echo 0000:15:00.0 > /sys/bus/pci/devices/0000:15:00.0/driver/unbind
echo 0000:15:00.0 > /sys/bus/pci/drivers/pci-stub/bind
Shut down the guest operating system.
Assign the device to the guest operating system by using the pcidevice qemu-kvm option. For example:
-pcidevice host=15:00.0
Start the guest operating system.
Test the networking device to verify that it supports PCI pass-through.
Parent topic: Best practice: Use PCI pass-through to enhance network performance
Related concepts:
PCI pass-through
Related tasks:
Adding pass-through devices to guests with libvirt
[iyunv@vm01 mlnx-en-2.2-1.0.1]# sh install.sh
Installing mlnx_en for Linux
Starting installation at Tue Aug 26 18:18:40 KST 2014...
Verifying dependencies
Building mlnx_en binary RPMs
Installing RPMs
Installing mstflint
In order for newly installed mlx4 modules to load,
previous modules must first be unloaded.
Do you wish to reload the driver now? (y/n) [y] y
Reloading mlx4 modules
Installation finished successfully.