Re: [Qemu-devel] [PATCH 2/4] exec: small changes to flatview_do_translate

2018-05-03 Thread Peter Xu
On Tue, Apr 17, 2018 at 04:08:00PM +0200, Paolo Bonzini wrote: > Prepare for extracting the IOMMU part to a separate function. Mostly > cosmetic; the only semantic change is that, if there is more than one > cascaded IOMMU and the second one fails to translate, *plen_out is now > adjusted accordin

[Qemu-devel] [PATCH 2/4] exec: small changes to flatview_do_translate

2018-04-17 Thread Paolo Bonzini
Prepare for extracting the IOMMU part to a separate function. Mostly cosmetic; the only semantic change is that, if there is more than one cascaded IOMMU and the second one fails to translate, *plen_out is now adjusted according to the page mask of the first IOMMU. Signed-off-by: Paolo Bonzini -