Re: [Qemu-devel] [PATCH] exec: Respect as_tranlsate_internal length clamp

2015-03-18 Thread Paolo Bonzini
On 17/03/2015 06:35, Peter Crosthwaite wrote: > address_space_translate_internal will clamp the *plen length argument > based on the size of the memory region being queried. The iommu walker > logic in addresss_space_translate was ignoring this by discarding the > post fn call value of *plen. Fix

[Qemu-devel] [PATCH] exec: Respect as_tranlsate_internal length clamp

2015-03-16 Thread Peter Crosthwaite
address_space_translate_internal will clamp the *plen length argument based on the size of the memory region being queried. The iommu walker logic in addresss_space_translate was ignoring this by discarding the post fn call value of *plen. Fix by just always using *plen as the length argument throu