Module vmm_vhost::message

source ·
Expand description

Define communication messages for the vhost-user protocol.

For message definition, please refer to the vhost-user spec.

Structs

Enums

  • Type of requests sending from backends to frontends.
  • Type of requests sent to the backend.
  • Error when converting an integer to an enum value.

Constants

  • The VhostUserMemory message has variable message size and variable number of attached file descriptors. Each user memory region entry in the message payload occupies 32 bytes, so setting maximum number of attached file descriptors based on the maximum message size. But rust only implements Default and AsMut traits for arrays with 0 - 32 entries, so further reduce the maximum number…
  • Starting position (inclusion) of the device configuration space in virtio devices.
  • Ending position (exclusion) of the device configuration space in virtio devices.
  • Virtio feature flag for the vhost-user protocol features.
  • Maximum number of vrings supported.

Traits

Type Definitions