Skip to content

vDPA: API for reporting IOVA range

Jason Wang lkml virtualization 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 2 repliesIn review
  2. v33 patches 3 repliesSuperseded
  3. v23 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches20 repliesSuperseded

Changes in v4 from the cover letter

- really silent build warnings

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vdpa: introduce config op to get valid iova rangeinclude/linux/vdpa.h+15 -01 reply
2/3vhost: vdpa: report iova rangedrivers/vhost/vdpa.c include/uapi/linux/vhost.h include/uapi/linux/vhost_types.h+54 -00 replies
3/3vdpa_sim: implement get_iova_range()drivers/vdpa/vdpa_sim/vdpa_sim.c+12 -01 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchEli Cohen
1/3R-b
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH V4 0/3] vDPA: API for reporting IOVA range

Hi All:

This series introduces API for reporing IOVA range. This is a must for userspace to work correclty:

- for the process that uses vhost-vDPA directly, the IOVA must be allocated from this range.
- for VM(qemu), when vIOMMU is not enabled, fail early if GPA is out of range
- for VM(qemu), when vIOMMU is enabled, determine a valid guest address width and then guest IOVA allocator can behave correctly.

Please review.

Changes from V3:

- really silent build warnings

Changes from V2:

- silent build warnings

Changes from V1:

- do not mandate get_iova_range() for device with its own DMA translation logic and assume a [0, ULLONG_MAX] range
- mandate IOVA range only for IOMMU that forcing aperture
- forbid the map which is out of the IOVA range in vhost-vDPA

Jason Wang (3):
vdpa: introduce config op to get valid iova range
vhost: vdpa: report iova range
vdpa_sim: implement get_iova_range()

 drivers/vdpa/vdpa_sim/vdpa_sim.c | 12 ++++++++++
 drivers/vhost/vdpa.c             | 41 ++++++++++++++++++++++++++++++++
 include/linux/vdpa.h             | 15 ++++++++++++
 include/uapi/linux/vhost.h       |  4 ++++
 include/uapi/linux/vhost_types.h |  9 +++++++
 5 files changed, 81 insertions(+)
Signature · 1 line
2.20.1