mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 07:47:50 +00:00
vfio-iommufd: Add detach_ioas support for emulated VFIO devices
This prepares for adding DETACH ioctl for emulated VFIO devices. Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Tested-by: Terrence Xu <terrence.xu@intel.com> Tested-by: Nicolin Chen <nicolinc@nvidia.com> Tested-by: Matthew Rosato <mjrosato@linux.ibm.com> Tested-by: Yanting Jiang <yanting.jiang@intel.com> Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com> Tested-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Signed-off-by: Yi Liu <yi.l.liu@intel.com> Link: https://lore.kernel.org/r/20230718135551.6592-16-yi.l.liu@intel.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
@@ -1377,6 +1377,7 @@ static const struct vfio_device_ops mbochs_dev_ops = {
|
||||
.bind_iommufd = vfio_iommufd_emulated_bind,
|
||||
.unbind_iommufd = vfio_iommufd_emulated_unbind,
|
||||
.attach_ioas = vfio_iommufd_emulated_attach_ioas,
|
||||
.detach_ioas = vfio_iommufd_emulated_detach_ioas,
|
||||
};
|
||||
|
||||
static struct mdev_driver mbochs_driver = {
|
||||
|
||||
@@ -666,6 +666,7 @@ static const struct vfio_device_ops mdpy_dev_ops = {
|
||||
.bind_iommufd = vfio_iommufd_emulated_bind,
|
||||
.unbind_iommufd = vfio_iommufd_emulated_unbind,
|
||||
.attach_ioas = vfio_iommufd_emulated_attach_ioas,
|
||||
.detach_ioas = vfio_iommufd_emulated_detach_ioas,
|
||||
};
|
||||
|
||||
static struct mdev_driver mdpy_driver = {
|
||||
|
||||
@@ -1272,6 +1272,7 @@ static const struct vfio_device_ops mtty_dev_ops = {
|
||||
.bind_iommufd = vfio_iommufd_emulated_bind,
|
||||
.unbind_iommufd = vfio_iommufd_emulated_unbind,
|
||||
.attach_ioas = vfio_iommufd_emulated_attach_ioas,
|
||||
.detach_ioas = vfio_iommufd_emulated_detach_ioas,
|
||||
};
|
||||
|
||||
static struct mdev_driver mtty_driver = {
|
||||
|
||||
Reference in New Issue
Block a user