Enum vmm_vhost::message::BackendReq
source · #[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 BackendReq
s 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 moresource§impl Debug for BackendReq
impl Debug for BackendReq
source§impl From<BackendReq> for u32
impl From<BackendReq> for u32
source§fn from(req: BackendReq) -> u32
fn from(req: BackendReq) -> u32
source§impl Ord for BackendReq
impl Ord for BackendReq
source§fn cmp(&self, other: &BackendReq) -> Ordering
fn cmp(&self, other: &BackendReq) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for BackendReq
impl PartialEq for BackendReq
source§fn eq(&self, other: &BackendReq) -> bool
fn eq(&self, other: &BackendReq) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BackendReq
impl PartialOrd for BackendReq
source§fn partial_cmp(&self, other: &BackendReq) -> Option<Ordering>
fn partial_cmp(&self, other: &BackendReq) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more