Module devices::virtio

source ·
Expand description

Implements virtio devices, queues, and transport mechanisms.

Re-exports§

Modules§

Structs§

Enums§

Constants§

Traits§

Functions§

  • Returns the set of reserved base features common to all virtio devices.
  • Copy virtio device configuration data from a subslice of src to a subslice of dst. Unlike std::slice::copy_from_slice(), this function copies as much as possible within the common subset of the two slices, truncating the requested range instead of panicking if the slices do not match in size.
  • Test utility function to create a descriptor chain in guest memory.
  • Creates a oneshot channel, returning the rx end and adding the tx end to the provided Vec. Useful for creating oneshots that signal a virtqueue future to stop processing and exit.