All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3 0/3] vDPA: API for reporting IOVA range
@ 2020-10-23  2:24 ` Jason Wang
  0 siblings, 0 replies; 16+ messages in thread
From: Jason Wang @ 2020-10-23  2:24 UTC (permalink / raw)
  To: mst, virtualization, linux-kernel
  Cc: rob.miller, lingshan.zhu, eperezma, lulu, shahafs, hanand,
	mhabets, gdawar, saugatm, vmireyno, zhangweining, eli,
	Jason Wang

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 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             | 40 ++++++++++++++++++++++++++++++++
 include/linux/vdpa.h             | 15 ++++++++++++
 include/uapi/linux/vhost.h       |  4 ++++
 include/uapi/linux/vhost_types.h |  9 +++++++
 5 files changed, 80 insertions(+)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-10-25 10:02 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-23  2:24 [PATCH V3 0/3] vDPA: API for reporting IOVA range Jason Wang
2020-10-23  2:24 ` Jason Wang
2020-10-23  2:24 ` [PATCH V3 1/3] vdpa: introduce config op to get valid iova range Jason Wang
2020-10-23  2:24   ` Jason Wang
2020-10-23  2:24 ` [PATCH V3 2/3] vhost: vdpa: report " Jason Wang
2020-10-23  2:24   ` Jason Wang
2020-10-23  5:28   ` kernel test robot
2020-10-23  5:28     ` kernel test robot
2020-10-23  5:28     ` kernel test robot
2020-10-23  8:46     ` Jason Wang
2020-10-23  8:46       ` Jason Wang
2020-10-23  8:46       ` Jason Wang
2020-10-25  9:32   ` Eli Cohen
2020-10-25 10:01     ` Eli Cohen
2020-10-23  2:24 ` [PATCH V3 3/3] vdpa_sim: implement get_iova_range() Jason Wang
2020-10-23  2:24   ` Jason Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.