Function crosvm::crosvm::sys::unix::device_helpers::create_virtio_vhost_net_device_from_tap
source · pub fn create_virtio_vhost_net_device_from_tap<T: TapT + 'static>(
protection_type: ProtectionType,
jail_config: &Option<JailConfig>,
vq_pairs: u16,
vcpu_count: usize,
vhost_net_device_path: &Path,
tap: T,
mac: Option<MacAddress>
) -> Result<VirtioDeviceStub>
Expand description
Returns a virtio-vhost network device created from a new TAP device.