aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2025-07-14 16:08:25 +0000
committerAlex Williamson <[email protected]>2025-08-05 21:41:14 +0000
commit86624ba3b522b6512def25534341da93356c8da4 (patch)
tree79092057ba1b34bc2ebd802a3d14b3280336138c /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentvfio/mlx5: fix possible overflow in tracking max message size (diff)
downloadkernel-86624ba3b522b6512def25534341da93356c8da4.tar.gz
kernel-86624ba3b522b6512def25534341da93356c8da4.zip
vfio/pci: Do vf_token checks for VFIO_DEVICE_BIND_IOMMUFD
This was missed during the initial implementation. The VFIO PCI encodes the vf_token inside the device name when opening the device from the group FD, something like: "0000:04:10.0 vf_token=bd8d9d2b-5a5f-4f5a-a211-f591514ba1f3" This is used to control access to a VF unless there is co-ordination with the owner of the PF. Since we no longer have a device name in the cdev path, pass the token directly through VFIO_DEVICE_BIND_IOMMUFD using an optional field indicated by VFIO_DEVICE_BIND_FLAG_TOKEN. Fixes: 5fcc26969a16 ("vfio: Add VFIO_DEVICE_BIND_IOMMUFD") Tested-by: Shameer Kolothum <[email protected]> Reviewed-by: Yi Liu <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions