]> git.ipfire.org Git - thirdparty/qemu.git/commit
intel_iommu: Minimal handling of privileged ATS request
authorCLEMENT MATHIEU--DRIF <clement.mathieu--drif@eviden.com>
Wed, 29 Oct 2025 10:51:45 +0000 (10:51 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 5 Feb 2026 08:18:40 +0000 (03:18 -0500)
commit0acb2b193b01665300a1ab5007a144fdaa6e340d
tree856c022e77e245bb1e221b01d14cc00a98657342
parente08a72d2179a6f0da2509d49082105f16ded580f
intel_iommu: Minimal handling of privileged ATS request

The purpose of this commit is not to support privileged requests but
to prevent devices from doing things they wouldn't be able to do
with real hardware.

We simply block privileged requests when the SRS ecap is not set
and abort when the ecap is present.

For now, its not worth implementing support for privileged requests
because the kernel does not support it.
(https://lore.kernel.org/linux-iommu/20230411064815.31456-11-baolu.lu@linux.intel.com/)
However, we may consider working on it depending on how the development
goes in the kernel.

Signed-off-by: Clement Mathieu--Drif <clement.mathieu--drif@eviden.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20251029105137.1097933-7-clement.mathieu--drif@eviden.com>
hw/i386/intel_iommu.c