]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vfio-iommufd: Support pasid [at|de]tach for physical VFIO devices
authorYi Liu <yi.l.liu@intel.com>
Fri, 21 Mar 2025 18:01:40 +0000 (11:01 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 25 Mar 2025 13:18:31 +0000 (10:18 -0300)
commit290641346d0d1eaf400c4f968d5b2cd91f483733
tree50613b76a6059ad78089309033164e11724a467c
parent7fe6b987166b901efc5c6fce5fe853c9ebb835be
vfio-iommufd: Support pasid [at|de]tach for physical VFIO devices

This adds pasid_at|de]tach_ioas ops for attaching hwpt to pasid of a
device and the helpers for it. For now, only vfio-pci supports pasid
attach/detach.

Link: https://patch.msgid.link/r/20250321180143.8468-3-yi.l.liu@intel.com
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/vfio/iommufd.c
drivers/vfio/pci/vfio_pci.c
include/linux/vfio.h