> Add tests that a dmabuf keeps IOMMU_MMIO in a domain that is filled
> from an already mapped area: a second domain added to the IOAS after
> the dmabuf has been mapped, and the domain of another IOAS the dmabuf
> is copied into.
> 
> The mock page table has no memory type bits, so a mapping made with
> IOMMU_MMIO cannot be told apart from one made with IOMMU_CACHE. Wrap the
> mock's generic_pt map_range and unmap_range ops to record, per domain,
> the pages mapped with IOMMU_MMIO, and add IOMMU_TEST_OP_MD_CHECK_MMIO to
> check that a range is recorded. The check rejects ranges that wrap or
> do not fit in unsigned long.

I'm not keen on this, the special mock amd domain is just for mock
usage, we should probably just add a mmio bit if we want to do this
test.

-- 
Jason

Reply via email to