Re: [PATCH V3] swiotlb: Split up single swiotlb lock

From: Tianyu Lan
Date: Fri Jul 08 2022 - 12:23:12 EST


On 7/8/2022 1:07 AM, Christoph Hellwig wrote:
Thanks, this looks much better. I think there is a small problem
with how default_nareas is set - we need to use 0 as the default
so that an explicit command line value of 1 works. Als have you
checked the interaction with swiotlb_adjust_size in detail?

Yes, the patch was tested in the Hyper-V SEV VM which always calls
swiotlb_adjust_size() to adjust bounce buffer size according to memory
size. It will round up bounce buffer size to the next power of 2 if the memory size is not power of 2.