Commit 2f73efd7 authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

ANDROID: iommu/arm-smmu-v3-kvm: Add support for reporting IOMMU faults to clients



IOMMU clients can register callbacks to be invoked when an IOMMU fault
occurs. The IOMMU driver that detects the fault can report faults to
an IOMMU client driver via the report_iommu_fault() function. Therefore,
add support in the SMMU driver to do so.

This is based on the upstream implementation of event handling in the
SMMUv3 driver in Linux kernel version 6.15-rc5, except it is trimmed
down to only fetch the fields necessary for the report_iommu_fault()
function.

Bug: 369229886
Bug: 437825935
Change-Id: I9ac0f8b478305450ccff5be8b56981d2deb6ebe4
Signed-off-by: default avatarIsaac J. Manjarres <isaacmanjarres@google.com>
Signed-off-by: default avatarDaniel Mentz <danielmentz@google.com>
parent 1b664ac9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment