Structs

A one-shot configuration structure for implementing VirtioDeviceBuilder. We cannot do it on DiskOption directly because disk devices can be passed an optional control tube.

Enums

Type of virtio device.

Traits

A trait for spawning virtio device instances and jails from their configuration structure.

Functions

Generic method for creating a network device. create_device is a closure that takes the virtio features and number of queue pairs as parameters, and is responsible for creating the device itself.

Returns a network device created from a new TAP interface configured with host_ip, netmask, and mac_address.

Returns a network device from a file descriptor to a configured TAP interface.

Returns a network device created by opening the persistent, configured TAP interface tap_name.

Setup for devices with virtio-iommu

Type Definitions