#[repr(u32)]pub enum BackendReq {
Show 13 variants
IOTLB_MSG = 1,
CONFIG_CHANGE_MSG = 2,
VRING_HOST_NOTIFIER_MSG = 3,
VRING_CALL = 4,
VRING_ERR = 5,
SHMEM_MAP = 1_000,
SHMEM_UNMAP = 1_001,
DEPRECATED__FS_MAP = 1_002,
DEPRECATED__FS_UNMAP = 1_003,
DEPRECATED__FS_SYNC = 1_004,
DEPRECATED__FS_IO = 1_005,
GPU_MAP = 1_006,
EXTERNAL_MAP = 1_007,
}Expand description
Type of requests sending from backends to frontends.
These are called “backend-end message types” in the spec, so we call them BackendReq here
even though it is somewhat confusing that the FrontendClient sends BackendReqs to a
FrontendServer.
Variants§
IOTLB_MSG = 1
Send IOTLB messages with struct vhost_iotlb_msg as payload.
CONFIG_CHANGE_MSG = 2
Notify that the virtio device’s configuration space has changed.
VRING_HOST_NOTIFIER_MSG = 3
Set host notifier for a specified queue.
VRING_CALL = 4
Indicate that a buffer was used from the vring.
VRING_ERR = 5
Indicate that an error occurred on the specific vring.
SHMEM_MAP = 1_000
Indicates a request to map a fd into a shared memory region.
SHMEM_UNMAP = 1_001
Indicates a request to unmap part of a shared memory region.
DEPRECATED__FS_MAP = 1_002
Virtio-fs draft: map file content into the window.
DEPRECATED__FS_UNMAP = 1_003
Virtio-fs draft: unmap file content from the window.
DEPRECATED__FS_SYNC = 1_004
Virtio-fs draft: sync file content.
DEPRECATED__FS_IO = 1_005
Virtio-fs draft: perform a read/write from an fd directly to GPA.
GPU_MAP = 1_006
Indicates a request to map GPU memory into a shared memory region.
EXTERNAL_MAP = 1_007
Indicates a request to map external memory into a shared memory region.
Implementations§
Trait Implementations§
Source§impl Clone for BackendReq
impl Clone for BackendReq
Source§fn clone(&self) -> BackendReq
fn clone(&self) -> BackendReq
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more