Trait vmm_vhost::frontend_server::Frontend
source · pub trait Frontend {
// Provided methods
fn handle_config_change(&mut self) -> Result<()> { ... }
fn shmem_map(
&mut self,
_req: &VhostUserShmemMapMsg,
_fd: &dyn AsRawDescriptor,
) -> Result<()> { ... }
fn shmem_unmap(&mut self, _req: &VhostUserShmemUnmapMsg) -> Result<()> { ... }
fn gpu_map(
&mut self,
_req: &VhostUserGpuMapMsg,
_descriptor: &dyn AsRawDescriptor,
) -> Result<()> { ... }
fn external_map(&mut self, _req: &VhostUserExternalMapMsg) -> Result<()> { ... }
}
Expand description
Trait for vhost-user frontends to respond to requests from the backend.
Each method corresponds to a vhost-user protocol method. See the specification for details.
Provided Methods§
sourcefn handle_config_change(&mut self) -> Result<()>
fn handle_config_change(&mut self) -> Result<()>
Handle device configuration change notifications.
sourcefn shmem_map(
&mut self,
_req: &VhostUserShmemMapMsg,
_fd: &dyn AsRawDescriptor,
) -> Result<()>
fn shmem_map( &mut self, _req: &VhostUserShmemMapMsg, _fd: &dyn AsRawDescriptor, ) -> Result<()>
Handle shared memory region mapping requests.
sourcefn shmem_unmap(&mut self, _req: &VhostUserShmemUnmapMsg) -> Result<()>
fn shmem_unmap(&mut self, _req: &VhostUserShmemUnmapMsg) -> Result<()>
Handle shared memory region unmapping requests.
sourcefn gpu_map(
&mut self,
_req: &VhostUserGpuMapMsg,
_descriptor: &dyn AsRawDescriptor,
) -> Result<()>
fn gpu_map( &mut self, _req: &VhostUserGpuMapMsg, _descriptor: &dyn AsRawDescriptor, ) -> Result<()>
Handle GPU shared memory region mapping requests.
sourcefn external_map(&mut self, _req: &VhostUserExternalMapMsg) -> Result<()>
fn external_map(&mut self, _req: &VhostUserExternalMapMsg) -> Result<()>
Handle external memory region mapping requests.