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§

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 Aliases§