Expand description
Architecture-neutral IOMMU backend interface (discovery + activation). Architecture-neutral IOMMU backend interface.
The hardware-specific programming (root/context tables, invalidation,
fault registers) lives behind Backend. The generic layer only decides
which backend is authoritative and whether it may be activated.
P0 ships the discovery skeleton: the x86_64 backend reports what the DMAR
describes but keeps Backend::is_ready false until the actual table
programming has been validated. Consequently
hardware::iommu::activate() still returns false and no device is ever
silently placed behind an untested translation unit.
Re-exportsยง
use crate::hardware::iommu::DmaProt;๐use crate::hardware::iommu::DomainId;๐use crate::hardware::iommu::MappingKind;๐use crate::hardware::iommu::Sbdf;๐
Structsยง
- Discovery
- Summary produced by firmware discovery.
- MsiAllocation
- One MSI message allocated through interrupt remapping.
- NoIommu
- Backend used when no IOMMU exists (or none is usable).
Enumsยง
- Iommu
Error - Errors returned by an IOMMU backend.
Staticsยง
- NO_
IOMMU ๐
Traitsยง
- Backend
- A hardware translation backend.
Functionsยง
- activate
- Try to activate translation through the authoritative backend.
- allocate_
msi - Allocate an MSI message through interrupt remapping.
- backend
- Return the authoritative backend.
- discovery
- Return the discovery summary recorded by
init. - free_
msi - Release an IRTE cookie.
- init
- Discover the platform IOMMU and cache the result.
- interrupt_
remapping_ active - True when MSI interrupt remapping is active (not merely advertised).
- is_
available - True when a backend is present and validated for activation.
- map_
domain - Install one mapping in the authoritative backend.
- unmap_
domain - Remove one mapping from the authoritative backend.