[PATCH v2 0/2] vfio: Fixes in iommufd vfio token handling

Raghavendra Rao Ananta posted 2 patches 3 months, 1 week ago
drivers/vfio/device_cdev.c                     | 2 +-
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
[PATCH v2 0/2] vfio: Fixes in iommufd vfio token handling
Posted by Raghavendra Rao Ananta 3 months, 1 week ago
Hello,

The series includes a couple of bug fixes that were accidentally
introduced as a part of VFIO's vf_token management for iommufd.

Patch-1: Fixes ksize arg while copying user struct in
vfio_df_ioctl_bind_iommufd.

Patch-2: Adds missing .match_token_uuid callback in
hisi_acc_vfio_pci_migrn_ops.

Thank you.
Raghavendra

Raghavendra Rao Ananta (2):
  vfio: Fix ksize arg while copying user struct in
    vfio_df_ioctl_bind_iommufd()
  hisi_acc_vfio_pci: Add .match_token_uuid callback in
    hisi_acc_vfio_pci_migrn_ops

 drivers/vfio/device_cdev.c                     | 2 +-
 drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)


base-commit: 3a8660878839faadb4f1a6dd72c3179c1df56787
-- 
2.51.1.930.gacf6e81ea2-goog
Re: [PATCH v2 0/2] vfio: Fixes in iommufd vfio token handling
Posted by Alex Williamson 3 months ago
On Fri, 31 Oct 2025 17:06:01 +0000
Raghavendra Rao Ananta <rananta@google.com> wrote:

> Hello,
> 
> The series includes a couple of bug fixes that were accidentally
> introduced as a part of VFIO's vf_token management for iommufd.
> 
> Patch-1: Fixes ksize arg while copying user struct in
> vfio_df_ioctl_bind_iommufd.
> 
> Patch-2: Adds missing .match_token_uuid callback in
> hisi_acc_vfio_pci_migrn_ops.
> 
> Thank you.
> Raghavendra
> 
> Raghavendra Rao Ananta (2):
>   vfio: Fix ksize arg while copying user struct in
>     vfio_df_ioctl_bind_iommufd()
>   hisi_acc_vfio_pci: Add .match_token_uuid callback in
>     hisi_acc_vfio_pci_migrn_ops
> 
>  drivers/vfio/device_cdev.c                     | 2 +-
>  drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 1 +
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> 
> base-commit: 3a8660878839faadb4f1a6dd72c3179c1df56787

Applied to vfio next branch for v6.19.  Thanks,

Alex