exec: extract address_space_translate_iommu, fix page_mask corner case
commita411c84b561baa94b28165c52f21c33517ee8f59
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 3 Mar 2018 16:24:04 +0000 (3 17:24 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 May 2018 22:13:38 +0000 (9 00:13 +0200)
tree153323bf6b50b891fc9b54b858d069047a2d3377
parentad2804d9e47df2dab642a253502b5ceef233f450
exec: extract address_space_translate_iommu, fix page_mask corner case

This will be used to process IOMMUs in a MemoryRegionCache.  This
includes a small bugfix, in that the returned page_mask is now
correctly -1 if the IOMMU memory region maps the entire address
space directly.  Previously, address_space_get_iotlb_entry would
return ~TARGET_PAGE_MASK.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c