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.
Structs§
- A
SharedMemoryMapper
behind anArc
, allowing it to be shared. - Implements the required traits to operate a [
VirtioMediaDevice
] under crosvm. - Structure supporting the implementation of
VirtioMediaEventQueue
for sending events to the driver. - Newtype to implement
VirtioMediaGuestMemoryMapper
onGuestMemory
. - Direct linear mapping of sparse guest memory.
- Copy of sparse guest memory that is written back upon destruction.
- Provides the ability to map host memory into the guest physical address space. Used to implement
VirtioMediaHostMemoryMapper
. - Newtype to implement
SessionPoller
onRc<WaitContext<Token>>
. - Worker 🔒Worker to operate a virtio-media device inside a worker thread.
Enums§
- A chunk of guest memory which can be either directly mapped, or copied into a shadow buffer.
- Token 🔒
Constants§
Functions§
- Create a simple media capture device.
- Create a proxy device for a host V4L2 device.