#lspci -d :2088 a0:00.0 Infiniband controller: Oracle/SUN Device 2088 (rev 03)
其中 2088 是供应商 ID。
# find /sys/devices | egrep "a0:00.0" | head -1 /sys/devices/pci0000:80/0000:80:03.0/0000:a0:00.0
# cd /sys/devices/pci0000:80/0000:80:03.0/0000:a0:00.0
# echo 4 > sriov_numvfs
其中 4 是 VF 的样例数量。
# cd /sys/bus/pci/drivers/pci-stub/
# echo "108e 2089" > /sys/bus/pci/drivers/pci-stub/new_id
每次重新引导服务器后,均需重复步骤 3 到步骤 6。