machina_virtio_device

Function from_start_info

Source
pub fn from_start_info(
    info: StartInfo,
) -> Result<(DeviceBuilder<NotifyEvent>, GuestMem), DeviceError>
Expand description

Construct a DeviceBuilder and GuestMem from the provided StartInfo

Consumes all the handles out of the StartInfo and will return a GuestMem as well as a DeviceBuilder that has already been initialized with any traps and notifications sources provided in the StartInfo.