Expand description
DMA target for PCI devices.
DmaTarget bundles a device’s [GuestMemory] (for DMA reads/writes)
and MsiTarget (for MSI interrupt delivery) into a single type.
In hardware, both DMA and MSI are bus-mastered transactions identified
by the device’s Requester ID (RID). This type ensures the two always
carry a consistent device identity. For SR-IOV devices, calling
DmaTarget::with_rid_offset derives both DMA and MSI targets for a
specific VF in a single operation — you can’t accidentally end up
with mismatched identities.
Structs§
- DmaTarget
- Everything a PCI device needs for bus-mastered transactions: DMA memory access and MSI interrupt delivery.
Enums§
- DmaPassthrough
- How a device’s DMA relates to host passthrough (VFIO assignment).
Traits§
- DmaTarget
Iommu - A trait for IOMMU backends that produce per-device guest memory.