> From: Tianyu Lan <ltyker...@gmail.com>
> Sent: Thursday, May 26, 2022 5:01 AM
> ...
> @@ -119,6 +124,10 @@ static void netvsc_subchan_work(struct work_struct
> *w)
>                       nvdev->max_chn = 1;
>                       nvdev->num_chn = 1;
>               }
> +
> +             /* Allocate boucne buffer.*/
> +             swiotlb_device_allocate(&hdev->device, nvdev->num_chn,
> +                             10 * IO_TLB_BLOCK_UNIT);
>       }

Looks like swiotlb_device_allocate() is not called if the netvsc device
has only 1 primary channel and no sub-schannel, e.g. in the case of
single-vCPU VM?
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to