Better Intel IOMMU Debugging Is On The Way, ARM IOMMU Working On Faster Performance

Written by Michael Larabel in Virtualization on 27 October 2018 at 06:41 AM EDT. 2 Comments
VIRTUALIZATION
Better/easier debugging for Intel VT-d IOMMU is on the way to help iron out any lingering issues with virtualization for directed I/O.

The Intel IOMMU driver code is picking up DebugFS support for exposing more data useful to developers when this support is enabled. Via /sys/kernel/debug/intel_iommu/, the IOMMU registers, internal context, and individual table entries are exposed for assisting developers in debugging any issues. The INTEL_IOMMU_DEBUG kernel config switch is added for controlling this behavior and on most platforms reading the kernel debugfs data requires root anyhow for not exposing potentially sensitive data.

These internal Intel IOMMU data structures previously weren't exposed nicely to user-space but now will be with Linux 4.20~5.0. This DebugFS support was introduced by the IOMMU PR.

Also worth noting is that this kernel is bringing faster ARM IOMMU performance. The ARM-SMMU driver now uses generic deferred flushing and faster IOVA allocation code. Those ARM IOMMU changes are exposed to bring a "major performance improvement."

Exciting times as always in kernel space.
Related News
About The Author
Michael Larabel

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