主权项 |
1. A method for Single Root I/O Virtualization (SR-IOV) pass-thru for network packet processing via a virtualized environment of a device, the method comprising:
(a) establishing, on a device, a virtualized environment comprising a plurality of virtual machines, each virtual machine of the plurality of virtual machines having a virtual network interface for receiving and transmitting network packets; (b) creating, via a driver for a physical network interface of the device, a plurality of virtual devices corresponding to the physical network interface, the physical network interface comprising a Single Root I/O Virtualization (SR-IOV) enabled device, each virtual device of the plurality of virtual devices appearing as a Peripheral Component Interconnect (PCI) device to the virtualized environment; (c) assigning a virtual device of the plurality of virtual devices to each virtual machine of the plurality of virtual machines, each virtual machine comprising a driver to communicate to the virtual device; and (d) receiving and transmitting, by the virtual machine using the virtual device assigned to the virtual machine, network packets via the physical network interface of the device. |