Expand description
Support for virtio-media devices in crosvm.
This module provides implementation for the virtio-media traits required to make virtio-media devices operate under crosvm. Sub-modules then integrate these devices with crosvm.
Modulesยง
- An adapter from the virtio-media protocol to the video devices originally used with virtio-video.
 
Structsยง
- ArcedMemoryMapper ๐A
SharedMemoryMapperbehind anArc, allowing it to be shared. - Implements the required traits to operate a [
VirtioMediaDevice] under crosvm. - EventQueue ๐Structure supporting the implementation of
VirtioMediaEventQueuefor sending events to the driver. - GuestMemoryMapper ๐Newtype to implement
VirtioMediaGuestMemoryMapperonGuestMemory. - GuestMemoryMapping ๐Direct linear mapping of sparse guest memory.
 - Copy of sparse guest memory that is written back upon destruction.
 - HostMemoryMapper ๐Provides the ability to map host memory into the guest physical address space. Used to implement
VirtioMediaHostMemoryMapper. - WaitContextPoller ๐Newtype to implement
SessionPolleronRc<WaitContext<Token>>. - Worker ๐Worker to operate a virtio-media device inside a worker thread.
 
Enumsยง
- GuestMemoryChunk ๐A chunk of guest memory which can be either directly mapped, or copied into a shadow buffer.
 - Token ๐
 
Constantsยง
- HOST_MAPPER_RANGE ๐
 
Functionsยง
- Create a decoder adapter device.
 - Create a simple media capture device.
 - Create a proxy device for a host V4L2 device.