Re: [Qemu-devel] [PATCH qemu v15 10/17] memory: Add reporting of supported page sizes

2016-04-05 Thread David Gibson
On Mon, Apr 04, 2016 at 07:33:39PM +1000, Alexey Kardashevskiy wrote: > Every IOMMU has some granularity which MemoryRegionIOMMUOps::translate > uses when translating, however this information is not available outside > the translate context for various checks. > > This adds a get_page_sizes callb

[Qemu-devel] [PATCH qemu v15 10/17] memory: Add reporting of supported page sizes

2016-04-04 Thread Alexey Kardashevskiy
Every IOMMU has some granularity which MemoryRegionIOMMUOps::translate uses when translating, however this information is not available outside the translate context for various checks. This adds a get_page_sizes callback to MemoryRegionIOMMUOps and a wrapper for it so IOMMU users (such as VFIO) c