Re: [PATCH v1 3/3] swiotlb: Split up single swiotlb lock

2022-06-29 Thread Chao Gao
On Tue, Jun 28, 2022 at 03:01:34PM +0800, Chao Gao wrote: >From: Andi Kleen > >Traditionally swiotlb was not performance critical because it was only >used for slow devices. But in some setups, like TDX confidential >guests, all IO has to go through swiotlb. Currently swiotlb only has a >single lo

[PATCH v1 3/3] swiotlb: Split up single swiotlb lock

2022-06-28 Thread Chao Gao
From: Andi Kleen Traditionally swiotlb was not performance critical because it was only used for slow devices. But in some setups, like TDX confidential guests, all IO has to go through swiotlb. Currently swiotlb only has a single lock. Under high IO load with multiple CPUs this can lead to signi