Skip to content

RFC vhost-vdpa: add support for iommufd

Cindy Lu lkml netdev oe-kbuild-all virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 36 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8vhost/iommufd: Add the functions support iommufddrivers/vhost/iommufd.c drivers/vhost/vhost.h+199 -00 replies
2/8Kconfig: Add the new file vhost/iommufddrivers/vhost/Kconfig drivers/vhost/Makefile+2 -02 replies
3/8vhost: Add 3 new uapi to support iommufddrivers/vhost/vdpa.c include/uapi/linux/vhost.h+237 -08 replies
4/8vdpa: Add new vdpa_config_ops to support iommufdinclude/linux/vdpa.h+37 -11 reply
5/8vdpa_sim :Add support for iommufddrivers/vdpa/vdpa_sim/vdpa_sim.c+8 -00 replies
6/8vdpa: change the map/unmap process to support iommufddrivers/vhost/vdpa.c+38 -52 replies
7/8vp_vdpa::Add support for iommufddrivers/vdpa/virtio_pci/vp_vdpa.c+4 -01 reply
8/8iommu: expose the function iommu_device_use_default_domaindrivers/iommu/iommu.c+2 -05 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC v1 0/8] vhost-vdpa: add support for iommufd

Hi All
This code provides the iommufd support for vdpa device
This code fixes the bugs from the last version and also add the asid support. rebase on kernel v6,6-rc3
Test passed in the physical device (vp_vdpa), but there are still some problems in the emulated device (vdpa_sim_net), I will continue working on it

The kernel code is
https://gitlab.com/lulu6/vhost/-/tree/iommufdRFC_v1

Cindy Lu (8):
vhost/iommufd: Add the functions support iommufd
Kconfig: Add the new file vhost/iommufd
vhost: Add 3 new uapi to support iommufd
vdpa: Add new vdpa_config_ops to support iommufd vdpa_sim :Add support for iommufd
vdpa: change the map/unmap process to support iommufd vp_vdpa::Add support for iommufd
iommu: expose the function iommu_device_use_default_domain

 drivers/iommu/iommu.c             |   2 +
 drivers/vdpa/vdpa_sim/vdpa_sim.c  |   8 ++
 drivers/vdpa/virtio_pci/vp_vdpa.c |   4 +
 drivers/vhost/Kconfig             |   1 +
 drivers/vhost/Makefile            |   1 +
 drivers/vhost/iommufd.c           | 178 +++++++++++++++++++++++++
 drivers/vhost/vdpa.c              | 210 +++++++++++++++++++++++++++++-
 drivers/vhost/vhost.h             |  21 +++
 include/linux/vdpa.h              |  38 +++++-
 include/uapi/linux/vhost.h        |  66 ++++++++++
 10 files changed, 525 insertions(+), 4 deletions(-)
 create mode 100644 drivers/vhost/iommufd.c
Signature · 1 line
2.34.3