Single root I/O virtualization (SR-IOV) allows
a single PCIe physical device under a single root port to appear
to be multiple separate physical devices to the hypervisor or guest.
To enable SR-IOV on a KVM guest, define a pool of virtual function
(VF) devices associated with a physical NIC and automatically assign
VF devices from the pool to PCI IDs.
For SR-IOV with Intel
10GB network interfaces (ixgbe driver), the driver version must
be 4.2.5 or later to support multiple queues for each NIC interface.
See the Compatibility Matrix for PacketMMAP and DPDK driver support by
Define a network for a pool of VFs.
Generate an XML file with text similar to
the following example. Change the value of
corresponding to your SR-IOV
device’s physical function.
When the guest starts,
a VF is automatically assigned to the guest.
Add the multicast MAC address to the host.
When SR-IOV is enabled, multicast traffic is filtered by
the PF. This filtering causes applications that rely on multicast,
such as OSPF, to fail. To prevent this filtering, you must manually
add the multicast MAC address to the host using the following command:
#ip maddress add <multicast-mac> dev <interface-name>