Use this when passing physical devices to VMs safely.
Passthrough Security
Passthrough security: assigning physical devices to VMs relies on the IOMMU to isolate DMA. Only pass through trusted devices, keep firmware updated and remember that the VM then controls real hardware.
1. Passthrough gives VMs direct hardware access — DMA risk.
2. Require IOMMU with interrupt remapping.
3. Only for trusted VMs.
4. Device firmware can be an attack vector.
5. Reset devices between uses.
device → IOMMU → VM (DMA restricted)
Context & applicabilityCommon mistakes · platform/version boundaries
- Passing devices without IOMMU, letting the VM DMA into host memory.
- Using ACS override on multi-tenant hosts.
- Passing storage controllers that also hold host disks.
- Not resetting devices between VMs (data from the previous VM may remain in device memory).
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
- IOMMU enabled (
dmesg | grep -i iommu), with interrupt remapping. - Devices in their own IOMMU group (
find /sys/kernel/iommu_groups/ -type l). - Firmware of passthrough devices updated.
- Only trusted VMs get passthrough devices.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- The IOMMU isolates device DMA.
- Pass through only trusted devices.
- Keep device firmware updated.
dmesg | grep -i -e DMAR -e 'interrupt remapping'— IOMMU safety- Passthrough device inventory — which VMs
- Firmware of passed devices — trust
ReferenceWhy it matters1 section · depth on demand
Risks and controls
A passed-through device can DMA into memory; the IOMMU (VT-d/AMD-Vi) must be enabled to confine it to the VM. Devices in the same IOMMU group must go to the same VM. Firmware on passthrough devices (GPUs, NICs) is outside the hypervisor's control, so keep it updated and use trusted hardware. Passthrough VMs cannot be live-migrated easily.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Device passthrough (PCI passthrough, SR-IOV, USB passthrough) gives a VM direct access to physical hardware for performance or special devices. It bypasses parts of the hypervisor's isolation, so a compromised VM with passthrough has more direct access to hardware and DMA.
Security measures:
- Use passthrough only where required, and document why.
- Ensure IOMMU (VT-d/AMD-Vi) is enabled so devices cannot DMA into other memory.
- Keep device firmware updated.
- Avoid passing through devices shared with other trust zones.
- Note that passthrough often disables live migration and some snapshots, affecting availability and backup plans.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtualization Security → Passthrough Security. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/125/final · confidence 94%