[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 16/21] vfio/ccw: Allow the selection of a given iommu back
|
From: |
Eric Farman |
|
Subject: |
Re: [PATCH v6 16/21] vfio/ccw: Allow the selection of a given iommu backend |
|
Date: |
Wed, 15 Nov 2023 13:45:39 -0500 |
|
User-agent: |
Evolution 3.48.4 (3.48.4-1.fc38) |
On Tue, 2023-11-14 at 18:09 +0800, Zhenzhong Duan wrote:
> Now we support two types of iommu backends, let's add the capability
> to select one of them. This depends on whether an iommufd object has
> been linked with the vfio-ccw device:
>
> If the user wants to use the legacy backend, it shall not
> link the vfio-ccw device with any iommufd object:
>
> -device vfio-ccw,sysfsdev=/sys/bus/mdev/devices/XXX
>
> This is called the legacy mode/backend.
>
> If the user wants to use the iommufd backend (/dev/iommu) it
> shall pass an iommufd object id in the vfio-ccw device options:
>
> -object iommufd,id=iommufd0
> -device vfio-ccw,sysfsdev=/sys/bus/mdev/devices/XXX,iommufd=iommufd0
>
> Suggested-by: Alex Williamson <alex.williamson@redhat.com>
> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
> Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
> ---
> hw/vfio/ccw.c | 6 ++++++
> 1 file changed, 6 insertions(+)
Reviewed-by: Eric Farman <farman@linux.ibm.com>
- Re: [PATCH v6 12/21] vfio/platform: Allow the selection of a given iommu backend, (continued)
- [PATCH v6 13/21] vfio/platform: Make vfio cdev pre-openable by passing a file handle, Zhenzhong Duan, 2023/11/14
- [PATCH v6 14/21] vfio/ap: Allow the selection of a given iommu backend, Zhenzhong Duan, 2023/11/14
- [PATCH v6 15/21] vfio/ap: Make vfio cdev pre-openable by passing a file handle, Zhenzhong Duan, 2023/11/14
- [PATCH v6 16/21] vfio/ccw: Allow the selection of a given iommu backend, Zhenzhong Duan, 2023/11/14
- [PATCH v6 17/21] vfio/ccw: Make vfio cdev pre-openable by passing a file handle, Zhenzhong Duan, 2023/11/14
- [PATCH v6 18/21] vfio: Make VFIOContainerBase poiner parameter const in VFIOIOMMUOps callbacks, Zhenzhong Duan, 2023/11/14
- [PATCH v6 19/21] hw/arm: Activate IOMMUFD for virt machines, Zhenzhong Duan, 2023/11/14
- [PATCH v6 20/21] kconfig: Activate IOMMUFD for s390x machines, Zhenzhong Duan, 2023/11/14