pcie SR-IOV driver howto

risonwung asked:

I am trying to know how linux PCIE NIC SR-IOV work.
I am using a Unbuntu with Intel 82599 NIC as a host. Under NIC driver directory(ixgbe) in linux Kernel, there is a file named "ixgbe_sriov.c".
I know this file may drive to make some VFs which respectively show some PCIE devices to user.
My questions is "if i install another ubuntu as a guest OS on my host,what kind of NIC driver does the guest OS use? Still the 82599 ixbge driver?“
Anybody know it?


My answer:

When you pass through a SR-IOV virtual function to your guest OS, it sees the same type of NIC as on the host and uses the same driver.

You can read the Red Hat Enterprise Linux documentation on SR-IOV for complete details on how to set up SR-IOV with KVM. About 99% of this is the same regardless of Linux distribution.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.