Re: [PATCH v2 1/2] iommu: iommu_aux_at(de)tach_device() extension

2020-07-09 Thread Lu Baolu
On 2020/7/7 9:39, Lu Baolu wrote: The hardware assistant vfio mediated device is a use case of iommu aux-domain. The interactions between vfio/mdev and iommu during mdev creation and passthr are: - Create a group for mdev with iommu_group_alloc(); - Add the device to the group with

Re: [PATCH v2 1/2] iommu: iommu_aux_at(de)tach_device() extension

2020-07-08 Thread Lu Baolu
Hi Alex, On 7/9/20 3:07 AM, Alex Williamson wrote: On Wed, 8 Jul 2020 10:53:12 +0800 Lu Baolu wrote: Hi Alex, Thanks a lot for your comments. Please check my reply inline. On 7/8/20 5:04 AM, Alex Williamson wrote: On Tue, 7 Jul 2020 09:39:56 +0800 Lu Baolu wrote: The hardware

Re: [PATCH v2 1/2] iommu: iommu_aux_at(de)tach_device() extension

2020-07-08 Thread Alex Williamson
On Wed, 8 Jul 2020 10:53:12 +0800 Lu Baolu wrote: > Hi Alex, > > Thanks a lot for your comments. Please check my reply inline. > > On 7/8/20 5:04 AM, Alex Williamson wrote: > > On Tue, 7 Jul 2020 09:39:56 +0800 > > Lu Baolu wrote: > > > >> The hardware assistant vfio mediated device is a

Re: [PATCH v2 1/2] iommu: iommu_aux_at(de)tach_device() extension

2020-07-07 Thread Lu Baolu
Hi Alex, Thanks a lot for your comments. Please check my reply inline. On 7/8/20 5:04 AM, Alex Williamson wrote: On Tue, 7 Jul 2020 09:39:56 +0800 Lu Baolu wrote: The hardware assistant vfio mediated device is a use case of iommu aux-domain. The interactions between vfio/mdev and iommu

Re: [PATCH v2 1/2] iommu: iommu_aux_at(de)tach_device() extension

2020-07-07 Thread Alex Williamson
On Tue, 7 Jul 2020 09:39:56 +0800 Lu Baolu wrote: > The hardware assistant vfio mediated device is a use case of iommu > aux-domain. The interactions between vfio/mdev and iommu during mdev > creation and passthr are: > > - Create a group for mdev with iommu_group_alloc(); > - Add the device

[PATCH v2 1/2] iommu: iommu_aux_at(de)tach_device() extension

2020-07-06 Thread Lu Baolu
The hardware assistant vfio mediated device is a use case of iommu aux-domain. The interactions between vfio/mdev and iommu during mdev creation and passthr are: - Create a group for mdev with iommu_group_alloc(); - Add the device to the group with group = iommu_group_alloc(); if