[PATCH] iommu/vt-d: Use bitmap_zalloc() when applicable

2021-10-23 Thread Christophe JAILLET
'iommu->domain_ids' is a bitmap. So use 'bitmap_zalloc()' to simplify code and improve the semantic. Also change the corresponding 'kfree()' into 'bitmap_free()' to keep consistency. Signed-off-by: Christophe JAILLET --- drivers/iommu/intel/iommu.c | 9 - 1 file changed, 4

Re: [PATCH v3 4/6] iommu: Move IOMMU pagesize check to attach_device

2021-10-23 Thread Sven Peter via iommu
On Fri, Oct 22, 2021, at 15:39, Robin Murphy wrote: > On 2021-10-22 09:06, Marc Zyngier wrote: >> On Fri, 22 Oct 2021 03:52:38 +0100, >> Lu Baolu wrote: >>> >>> On 10/21/21 4:10 PM, Marc Zyngier wrote: On Thu, 21 Oct 2021 03:22:30 +0100, Lu Baolu wrote: > > On 10/20/21 10:22

Re: [PATCH v2] iommu: intel: do deep dma-unmapping, to avoid kernel-flooding.

2021-10-23 Thread Ajay Garg
Another piece of information : The observations are same, if the current pci-device (sd/mmc controller) is detached, and another pci-device (sound controller) is attached to the guest. So, it looks that we can rule out any (pci-)device-specific issue. For brevity, here are the details of the