Re: [Qemu-devel] [RFC PATCH qemu v3 1/4] memory: Add reporting of supported page sizes

2015-07-15 Thread Alexey Kardashevskiy
On 07/16/2015 04:26 AM, Alex Williamson wrote: On Tue, 2015-07-14 at 22:21 +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.

Re: [Qemu-devel] [RFC PATCH qemu v3 1/4] memory: Add reporting of supported page sizes

2015-07-15 Thread Alex Williamson
On Tue, 2015-07-14 at 22:21 +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 callback to

[Qemu-devel] [RFC PATCH qemu v3 1/4] memory: Add reporting of supported page sizes

2015-07-14 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