• O
    iommu/core: Add fault reporting mechanism · 4f3f8d9d
    Ohad Ben-Cohen 提交于
    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: NOhad Ben-Cohen <ohad@wizery.com>
    Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
    4f3f8d9d
iommu.h 5.1 KB