Re: [PATCH v4 2/5] iommu: Add iommu_at(de)tach_subdev_group()

2020-09-13 Thread Lu Baolu
Hi Alex, On 9/11/20 6:05 AM, Alex Williamson wrote: On Tue, 1 Sep 2020 11:34:19 +0800 Lu Baolu wrote: This adds two new APIs for the use cases like vfio/mdev where subdevices derived from physical devices are created and put in an iommu_group. The new IOMMU API interfaces mimic the vfio_mdev

Re: [PATCH v4 2/5] iommu: Add iommu_at(de)tach_subdev_group()

2020-09-10 Thread Alex Williamson
On Tue, 1 Sep 2020 11:34:19 +0800 Lu Baolu wrote: > This adds two new APIs for the use cases like vfio/mdev where subdevices > derived from physical devices are created and put in an iommu_group. The > new IOMMU API interfaces mimic the vfio_mdev_at(de)tach_domain() directly, > testing whether t

[PATCH v4 2/5] iommu: Add iommu_at(de)tach_subdev_group()

2020-08-31 Thread Lu Baolu
This adds two new APIs for the use cases like vfio/mdev where subdevices derived from physical devices are created and put in an iommu_group. The new IOMMU API interfaces mimic the vfio_mdev_at(de)tach_domain() directly, testing whether the resulting device supports IOMMU_DEV_FEAT_AUX and using an