On 06/06/16 23:31, Paolo Bonzini wrote:
> 
> 
> On 02/06/2016 05:35, David Gibson wrote:
>> On Wed, Jun 01, 2016 at 06:57:37PM +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 MemoryRegionIOMMUOps and
>>>> a wrapper for it so IOMMU users (such as VFIO) can know the actual
>>>> page size(s) used by an IOMMU.
>>>>
>>>> As IOMMU MR represents a guest IOMMU, this uses TARGET_PAGE_SIZE
>>>> as fallback.
>>>>
>>>> This removes vfio_container_granularity() and uses new helper in
>>>> memory_region_iommu_replay() when replaying IOMMU mappings on added
>>>> IOMMU memory region.
>>>>
>>>> Signed-off-by: Alexey Kardashevskiy <a...@ozlabs.ru>
>>>> Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
>> Paolo,
>>
>> Looks like you were left off the CC for this one.
>>
>> I think this is ready to go - do you want to merge, comment or ack and
>> we'll take it either through my tree or Alex's?
> 
> It's okay for you to merge, but the callback should be called
> "get_page_size" or "get_replay_granularity".  The plural is weird.

I'll repost next time with get_page_size() then. Thanks.



-- 
Alexey

Reply via email to