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ยง
- decoder_
adapter - An adapter from the virtio-media protocol to the video devices originally used with virtio-video.
Structsยง
- Arced
Memory ๐Mapper - A
SharedMemoryMapperbehind anArc, allowing it to be shared. - Crosvm
Virtio ๐Media Device - Implements the required traits to operate a [
VirtioMediaDevice] under crosvm. - Event
Queue ๐ - Structure supporting the implementation of
VirtioMediaEventQueuefor sending events to the driver. - Guest
Memory ๐Mapper - Newtype to implement
VirtioMediaGuestMemoryMapperonGuestMemory. - Guest
Memory ๐Mapping - Direct linear mapping of sparse guest memory.
- Guest
Memory ๐Shadow Mapping - Copy of sparse guest memory that is written back upon destruction.
- Host
Memory ๐Mapper - Provides the ability to map host memory into the guest physical address space. Used to
implement
VirtioMediaHostMemoryMapper. - Wait
Context ๐Poller - Newtype to implement
SessionPolleronRc<WaitContext<Token>>. - Worker ๐
- Worker to operate a virtio-media device inside a worker thread.
Enumsยง
- Guest
Memory ๐Chunk - A chunk of guest memory which can be either directly mapped, or copied into a shadow buffer.
- Token ๐
Constantsยง
- HOST_
MAPPER_ ๐RANGE
Functionsยง
- create_
virtio_ media_ decoder_ adapter_ device - Create a decoder adapter device.
- create_
virtio_ media_ simple_ capture_ device - Create a simple media capture device.
- create_
virtio_ media_ v4l2_ proxy_ device - Create a proxy device for a host V4L2 device.