iommu/core: Add fault reporting mechanism
authorOhad Ben-Cohen <ohad@wizery.com>
Tue, 13 Sep 2011 19:25:23 +0000 (15:25 -0400)
committerJoerg Roedel <joerg.roedel@amd.com>
Wed, 14 Sep 2011 13:35:36 +0000 (15:35 +0200)
commit4f3f8d9db359bbc780d482849f2a9c8b12f910b6
tree4875209af7bc93421e9f7541ff0182c5aa5d97c3
parent5e1b612cb16f446996398bd23b6cd59ea0206938
iommu/core: Add fault reporting mechanism

Add iommu fault report mechanism to the IOMMU API, so implementations
could report about mmu faults (translation errors, hardware errors,
etc..).

Fault reports can be used in several ways:
- mere logging
- reset the device that accessed the faulting address (may be necessary
  in case the device is a remote processor for example)
- implement dynamic PTE/TLB loading

A dedicated iommu_set_fault_handler() API has been added to allow
users, who are interested to receive such reports, to provide
their handler.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/iommu.c
include/linux/iommu.h
This page took 0.025284 seconds and 5 git commands to generate.