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)
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>

No differences found