Module devices::virtio::media

source ·
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 an Arc, allowing it to be shared.
  • Implements the required traits to operate a [VirtioMediaDevice] under crosvm.
  • EventQueue 🔒
    Structure supporting the implementation of VirtioMediaEventQueue for sending events to the driver.
  • Newtype to implement VirtioMediaGuestMemoryMapper on GuestMemory.
  • 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 on Rc<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§