Hardware

How to Enable IOMMU in BIOS (AMD and Intel) and Check It

To enable IOMMU, restart into your BIOS or UEFI setup and turn on Intel VT-d (Intel boards) or IOMMU (AMD boards), then save and exit. On Linux you may also need a kernel option such as intel_iommu=on, and you can confirm the result with dmesg | grep -e DMAR -e IOMMU.

IOMMU stands for Input/Output Memory Management Unit. It sits between devices and system memory and controls which memory each device may reach. You usually switch it on for GPU passthrough to a virtual machine, for Proxmox or KVM hosts, or because Windows reports that Kernel DMA Protection is off.

IOMMU is not the same as VT-x or AMD-V

People often mix up two different firmware switches. CPU virtualization (Intel VT-x, AMD-V or SVM) lets the processor run virtual machines. IOMMU (Intel VT-d, AMD IOMMU, also written AMD-Vi) deals with devices. Microsoft's Kernel DMA Protection page treats them as two separate Intel settings: Intel Virtualization Technology and Intel Virtualization Technology for I/O (VT-d). If you need the CPU setting, see Hardware Virtualization: How to Turn It On in BIOS/UEFI. This article covers the second one.

What the setting is called

PlatformTypical BIOS nameLinux dmesg tag
IntelIntel VT-d, Intel Virtualization Technology for Directed I/ODMAR
AMDIOMMU, AMD-ViAMD-Vi

Menu names and locations differ by motherboard and laptop maker. The option often sits under a CPU, Northbridge, Chipset or Advanced menu, so search the menus for the words IOMMU, VT-d and AMD-Vi. Some firmware has no such option at all, because the processor or the board does not support it.

How to enable IOMMU in BIOS/UEFI

  1. Restart the PC and open the firmware setup. On Windows you can use Settings, System, Recovery, Advanced startup, Restart now, then Troubleshoot, Advanced options, UEFI Settings. Otherwise use the key your manufacturer documents during power-on.
  2. Find the IOMMU or VT-d option and set it to Enabled.
  3. If the CPU virtualization option (VT-x, SVM) is off, enable that as well when you plan to run virtual machines.
  4. Save and exit. The PC restarts.

Prefer an explicit Enabled over Auto. The Proxmox wiki tells you to set the IOMMU or VT-d option to Enabled or equivalent and warns that "Auto" is often not the same thing. Change only the settings you need, because other firmware options can affect whether the system boots.

How to check IOMMU on Windows

Press Win + R, type msinfo32 and press Enter. Microsoft's guidance is that on a system that supports Kernel DMA Protection, the Kernel DMA Protection value is On. You can also open Windows Security, then Device security, Core isolation details, Memory access protection.

If Kernel DMA Protection is Off and Hyper-V - Virtualization Enabled in Firmware is No, Microsoft's steps are:

  • Reboot into UEFI settings.
  • Turn on Intel Virtualization Technology.
  • Turn on Intel Virtualization Technology for I/O (VT-d).
  • Reboot into Windows.

Two caveats from the same page. If the Hyper-V Windows feature is enabled, the Hyper-V entries are hidden and the bottom of the list shows "A hypervisor has been detected. Features required for Hyper-V will not be displayed", which Microsoft says means virtualization is enabled in firmware. And if Kernel DMA Protection stays Off after this, Microsoft says the system does not support it. Those steps are written for Intel; on AMD, enable the equivalent IOMMU option in your firmware.

How to enable IOMMU on Linux

After the firmware setting, check the kernel log first. Run:

sudo dmesg | grep -e DMAR -e IOMMU

The Proxmox wiki says there should be a line that looks like DMAR: IOMMU enabled, and that if nothing appears, something is wrong. It also lists AMD-Vi: Interrupt remapping enabled as a sign that interrupt remapping is supported. Example output on an Intel machine:

[    0.043210] DMAR: IOMMU enabled

If the log is empty, add a kernel option. The kernel documentation describes these:

  • intel_iommu=on enables the Intel IOMMU driver, and intel_iommu=off disables it.
  • amd_iommu=off means "do not initialize any AMD IOMMU found". The documented AMD options are values such as fullflush, pgtbl_v1 and pgtbl_v2, so there is no amd_iommu=on in the list I checked. If your AMD IOMMU is not showing up, check the firmware setting and that you have not passed amd_iommu=off.
  • iommu=pt on x86 uses passthrough mode by default, equivalent to iommu.passthrough=1, so devices that are not assigned to a guest bypass address translation.

Add the option to your boot loader's kernel command line. With GRUB, that is the GRUB_CMDLINE_LINUX_DEFAULT line in /etc/default/grub. Example for an Intel machine:

GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt"

Then regenerate the boot configuration the way your distribution does it (on Debian and Ubuntu that is sudo update-grub) and reboot. Other boot loaders, such as systemd-boot, keep the command line in a different file; the Proxmox wiki points to its own documentation on editing the command line for that case. Run the dmesg check again after the reboot.

Check the IOMMU groups

For GPU passthrough, being enabled is not enough. Devices are placed in IOMMU groups, and a group is the smallest unit you can hand to a virtual machine. You can list the groups with this command, a standard way to read them from sysfs:

find /sys/kernel/iommu_groups/ -type l

If the directory is empty, the IOMMU is not active. If a GPU shares a group with unrelated devices, passthrough gets harder. Some guides use the pcie_acs_override=downstream kernel option for that case, which the Proxmox wiki shows as a boot option. It reduces isolation between devices, so treat it as a last resort.

If it still does not work

  • No IOMMU or VT-d option in the BIOS. Check the processor and motherboard specifications. Some CPUs and cheaper boards do not support it. A BIOS update from the board maker can add or fix options, so read its release notes first.
  • The option is set to Auto. Change it to Enabled, as the Proxmox wiki advises.
  • Nothing in dmesg after the reboot. Confirm the kernel option really reached the running kernel with cat /proc/cmdline. If it is missing, the boot loader configuration was not regenerated.
  • Windows says Kernel DMA Protection is Off. Microsoft says some systems simply do not support it, and that it requires UEFI firmware support.
  • Running inside a virtual machine. The host must expose virtualization features to the guest. Check the host's nested virtualization settings.

Is it safe to turn on?

Enabling IOMMU is normally harmless and is a security feature on Windows: Microsoft describes it as protection against drive-by DMA attacks through Thunderbolt, USB4 and similar ports. Microsoft also notes that Kernel DMA Protection does not cover 1394/FireWire, PCMCIA, CardBus or ExpressCard, and does not protect during boot. The only costs I can point to from primary sources are compatibility ones: a driver that does not support DMA remapping can be blocked from starting until a user signs in, and on Linux the passthrough option exists for people who want to limit translation overhead for devices that do not need it.

Frequently asked questions

What is IOMMU called in BIOS on Intel and AMD?
On Intel boards the setting is usually called Intel VT-d, Intel Virtualization Technology for Directed I/O. On AMD boards it is usually called IOMMU or AMD-Vi. Names vary by motherboard maker, so search the menus for IOMMU, VT-d or AMD-Vi. Microsoft's Kernel DMA Protection page names Intel Virtualization Technology for I/O (VT-d) as the Intel setting.
Is IOMMU the same as VT-x or AMD-V?
No. VT-x and AMD-V (SVM) let the CPU run virtual machines. IOMMU, which is VT-d on Intel, remaps and isolates memory access by devices such as graphics cards and Thunderbolt peripherals. Microsoft's Kernel DMA Protection page lists them as two separate Intel settings that both need to be on.
How do I check whether IOMMU is enabled on Linux?
Run dmesg | grep -e DMAR -e IOMMU. The Proxmox wiki says a line such as 'DMAR: IOMMU enabled' should appear, and that if nothing appears, something is wrong. On AMD systems, look for AMD-Vi lines. You may need sudo to read the kernel log.
Does enabling IOMMU slow my PC down?
I could not find a primary source that gives a general figure, so I won't quote one. The Linux kernel documentation does offer iommu=pt (passthrough mode) as an option, and it describes tboot as able to harm performance of some high-throughput devices such as 40GBit network cards. If you notice a slowdown, test with and without the setting.
Do I need IOMMU on Windows?
Only for specific features. Windows uses the IOMMU for Kernel DMA Protection, which blocks external devices from DMA unless their drivers support DMA remapping. Microsoft says that protection requires virtualization to be enabled in firmware, and that it turns itself on automatically on systems that support it.

Sources