AMD IOMMU v2 Page Tables Getting Wired Up For Linux 6.1

Written by Michael Larabel in AMD on 11 October 2022 at 06:00 AM EDT. 9 Comments
AMD --
For more than a year AMD engineers have been working on IOMMU v2 page table support and with the in-development Linux 6.1 kernel the initial patches are finally being merged.

The AMD IOMMU v2 page table support is wired up to implement support for the DMA API using the generic I/O page table framework. This work was summed up in the earlier patch series:
One of the target usecases is to support nested IO page tables where the guest uses the guest IO page table (v2) for translating GVA to GPA, and the hypervisor uses the host I/O page table (v1) for translating GPA to SPA. This is a pre-requisite for supporting the new HW-assisted vIOMMU presented at the KVM Forum 2020.

The KVM Forum 2020 presentation and the motivation for this Linux kernel work by AMD was around the AMD vIOMMU for hardware-assisted IOMMU virtualization available since EPYC 7002 "Rome" processors.




Those AMD IOMMU v2 page table patches are now set for Linux 6.1 as stepping towards the hardware-assisted IOMMU virtualization on EPYC but not yet over the finish line for the mainline kernel. It's long overdue with the hardware support being around since Rome, but at least they are finally nearing the point with having all the bits mainlined. The AMD code was sent in as part of the IOMMU updates for Linux 6.1 including some Intel VT-d code improvements, Apple DART support for M1 Pro and M1 MAX SoCs, and other changes.
Related News
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week