• Ohad Ben-Cohen's avatar
    iommu/core: Add fault reporting mechanism · 4f3f8d9d
    Ohad Ben-Cohen authored
    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: default avatarOhad Ben-Cohen <ohad@wizery.com>
    Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
    4f3f8d9d
iommu.c 3.15 KB