Re: [PATCH V3 13/13] HV/Storvsc: Add Isolation VM support for storvsc driver

From: hch@xxxxxx
Date: Tue Aug 24 2021 - 04:46:59 EST


On Sat, Aug 21, 2021 at 02:04:11AM +0800, Tianyu Lan wrote:
> After dma_map_sg(), we still need to go through scatter list again to
> populate payload->rrange.pfn_array. We may just go through the scatter list
> just once if dma_map_sg() accepts a callback and run it during go
> through scatter list.

Iterating a cache hot array is way faster than doing lots of indirect
calls.