vfio: Make emulated devices prepared for vfio device cdev
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest6 patches 10 repliesIn review
- v25 patches 5 repliesSuperseded
- v15 patches 40 repliesSuperseded
Changes in v3 from the cover letter
- Use iommufd_get_ioas() for ioas get, hence patch 01 is added to modify the input parameter of iommufd_get_ioas(). (Jason)
- Add r-b from Jason and Kevin
- Add t-b from Terrence Xu
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | iommu/iommufd: Pass iommufd_ctx pointer in iommufd_get_ioas()drivers/ drivers/ drivers/ +1 more | +13 | 2 replies | |
| 2/6 | iommufd: Create access in vfio_iommufd_emulated_bind()drivers/ drivers/ drivers/ +1 more | +53 | 3 replies | |
| 3/6 | vfio-iommufd: No need to record iommufd_ctx in vfio_devicedrivers/ include/ | +1 | 0 replies | |
| 4/6 | vfio-iommufd: Make vfio_iommufd_emulated_bind() return iommufd_access IDdrivers/ drivers/ drivers/ +1 more | +7 | 0 replies | |
| 5/6 | vfio/mdev: Uses the vfio emulated iommufd ops set in the mdev sample driversdrivers/ samples/ samples/ +1 more | +15 | 0 replies | |
| 6/6 | vfio: Check the presence for iommufd callbacks in __vfio_register_dev()drivers/ drivers/ | +3 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Kevin Tian | Jason Gunthorpe | Terrence Xu | Nicolin Chen | Alex Williamson | Yanting Jiang |
|---|---|---|---|---|---|---|
| Series | T-b | A-b | T-b | |||
| 1/6 | R-b | R-b | ||||
| 2/6 | R-b | R-b | T-b | |||
| 3/6 | R-b | R-b | T-b | |||
| 4/6 | R-b | R-b | T-b | |||
| 5/6 | R-b | R-b | T-b | |||
| 6/6 | R-b | R-b | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.
Cover letter [Intel-gfx] [PATCH v3 0/6] vfio: Make emulated devices prepared for vfio device cdev
The .bind_iommufd op of vfio emulated devices are either empty or does nothing. This is different with the vfio physical devices, to add vfio device cdev, need to make them act the same.
This series first makes the .bind_iommufd op of vfio emulated devices to create iommufd_access, this introduces a new iommufd API. Then let the driver that does not provide .bind_iommufd op to use the vfio emulated iommufd op set. This makes all vfio device drivers have consistent iommufd operations, which is good for adding new device uAPIs in the device cdev series.
Change log:
v3:
- Use iommufd_get_ioas() for ioas get, hence patch 01 is added to modify the input parameter of iommufd_get_ioas(). (Jason)
- Add r-b from Jason and Kevin
- Add t-b from Terrence Xu
v2: https://lore.kernel.org/kvm/[email protected]/
- Add r-b from Kevin and Jason
- Refine patch 01 per comments from Jason and Kevin
v1: https://lore.kernel.org/kvm/[email protected]/
Thanks,
Yi Liu
Nicolin Chen (1):
iommufd: Create access in vfio_iommufd_emulated_bind()
Yi Liu (5):
iommu/iommufd: Pass iommufd_ctx pointer in iommufd_get_ioas()
vfio-iommufd: No need to record iommufd_ctx in vfio_device
vfio-iommufd: Make vfio_iommufd_emulated_bind() return iommufd_access
ID
vfio/mdev: Uses the vfio emulated iommufd ops set in the mdev sample
drivers
vfio: Check the presence for iommufd callbacks in
__vfio_register_dev()
drivers/iommu/iommufd/device.c | 55 +++++++++++++++---------- drivers/iommu/iommufd/ioas.c | 14 +++---- drivers/iommu/iommufd/iommufd_private.h | 4 +- drivers/iommu/iommufd/selftest.c | 14 ++++--- drivers/iommu/iommufd/vfio_compat.c | 2 +- drivers/vfio/iommufd.c | 37 ++++++++--------- drivers/vfio/vfio_main.c | 5 ++- include/linux/iommufd.h | 5 ++- include/linux/vfio.h | 1 - samples/vfio-mdev/mbochs.c | 3 ++ samples/vfio-mdev/mdpy.c | 3 ++ samples/vfio-mdev/mtty.c | 3 ++ 12 files changed, 85 insertions(+), 61 deletions(-)
Signature · 1 line
2.34.1