public inbox for virtualization@lists.linux-foundation.org
 help / color / mirror / Atom feed
* [PATCH V2 0/3] vDPA: API for reporting IOVA range
@ 2020-08-21  9:28 Jason Wang
  2020-08-21  9:28 ` [PATCH V2 1/3] vdpa: introduce config op to get valid iova range Jason Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Jason Wang @ 2020-08-21  9:28 UTC (permalink / raw)
  To: mst, virtualization, linux-kernel
  Cc: shahafs, lulu, saugatm, mhabets, vmireyno, gdawar, eperezma,
	hanand, zhangweining, eli, lingshan.zhu, rob.miller

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 to properly allocate
  IOVA
- 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

Please review.

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

Thanks

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(+)

-- 
2.18.1

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

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

end of thread, other threads:[~2020-08-31  8:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-21  9:28 [PATCH V2 0/3] vDPA: API for reporting IOVA range Jason Wang
2020-08-21  9:28 ` [PATCH V2 1/3] vdpa: introduce config op to get valid iova range Jason Wang
2020-08-21  9:28 ` [PATCH V2 2/3] vhost: vdpa: report " Jason Wang
     [not found]   ` <20200823064035.GB147797@mtl-vdi-166.wap.labs.mlnx>
2020-08-31  8:38     ` Jason Wang
2020-08-21  9:28 ` [PATCH V2 3/3] vdpa_sim: implement get_iova_range() Jason Wang
2020-08-21 10:33   ` kernel test robot
2020-08-21 12:20   ` kernel test robot
2020-08-21 12:20   ` [RFC PATCH] vdpa_sim: vdpasim_get_iova_range() can be static kernel test robot
2020-08-21 12:51   ` [PATCH V2 3/3] vdpa_sim: implement get_iova_range() kernel test robot
2020-08-21 12:59   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox