Skip to content
  • Peter Maydell's avatar
    1f871c5e
    exec.c: Handle IOMMUs in address_space_translate_for_iotlb() · 1f871c5e
    Peter Maydell authored
    
    
    Currently we don't support board configurations that put an IOMMU
    in the path of the CPU's memory transactions, and instead just
    assert() if the memory region fonud in address_space_translate_for_iotlb()
    is an IOMMUMemoryRegion.
    
    Remove this limitation by having the function handle IOMMUs.
    This is mostly straightforward, but we must make sure we have
    a notifier registered for every IOMMU that a transaction has
    passed through, so that we can flush the TLB appropriately
    when any of the IOMMUs change their mappings.
    
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Reviewed-by: default avatarAlex Bennée <alex.bennee@linaro.org>
    Message-id: 20180604152941.20374-5-peter.maydell@linaro.org
    1f871c5e
    exec.c: Handle IOMMUs in address_space_translate_for_iotlb()
    Peter Maydell authored
    
    
    Currently we don't support board configurations that put an IOMMU
    in the path of the CPU's memory transactions, and instead just
    assert() if the memory region fonud in address_space_translate_for_iotlb()
    is an IOMMUMemoryRegion.
    
    Remove this limitation by having the function handle IOMMUs.
    This is mostly straightforward, but we must make sure we have
    a notifier registered for every IOMMU that a transaction has
    passed through, so that we can flush the TLB appropriately
    when any of the IOMMUs change their mappings.
    
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Reviewed-by: default avatarAlex Bennée <alex.bennee@linaro.org>
    Message-id: 20180604152941.20374-5-peter.maydell@linaro.org
Loading