qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v13 0/2] vhost-vdpa: add support for vIOMMU
@ 2023-02-08  2:57 Cindy Lu
  2023-02-08  2:57 ` [PATCH v13 1/2] vhost: expose function vhost_dev_has_iommu() Cindy Lu
  2023-02-08  2:57 ` [PATCH v13 2/2] vhost-vdpa: add support for vIOMMU Cindy Lu
  0 siblings, 2 replies; 6+ messages in thread
From: Cindy Lu @ 2023-02-08  2:57 UTC (permalink / raw)
  To: lulu, jasowang, mst; +Cc: qemu-devel

These patches are to support vIOMMU in vdpa device

changes in V3
1. Move function vfio_get_xlat_addr to memory.c
2. Use the existing memory listener, while the MR is
iommu MR then call the function iommu_region_add/
iommu_region_del

changes in V4
1.make the comments in vfio_get_xlat_addr more general

changes in V5
1. Address the comments in the last version
2. Add a new arg in the function vfio_get_xlat_addr, which shows whether
the memory is backed by a discard manager. So the device can have its
own warning.

changes in V6
move the error_report for the unpopulated discard back to
memeory_get_xlat_addr

changes in V7
organize the error massage to avoid the duplicate information

changes in V8
Organize the code follow the comments in the last version

changes in V9
Organize the code follow the comments

changes in V10
Address the comments

changes in V11
Address the comments
fix the crash found in test

changes in V12
Address the comments, squash patch 1 into the next patch
improve the code style issue

changes in V13
fail to start if IOMMU and svq enable at same time
improve the code style issue

Cindy Lu (2):
  vhost: expose function vhost_dev_has_iommu()
  vhost-vdpa: add support for vIOMMU

 hw/virtio/vhost-vdpa.c         | 173 ++++++++++++++++++++++++++++++---
 hw/virtio/vhost.c              |   2 +-
 include/hw/virtio/vhost-vdpa.h |  11 +++
 include/hw/virtio/vhost.h      |   1 +
 4 files changed, 175 insertions(+), 12 deletions(-)

-- 
2.34.3



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

end of thread, other threads:[~2023-03-15  5:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-08  2:57 [PATCH v13 0/2] vhost-vdpa: add support for vIOMMU Cindy Lu
2023-02-08  2:57 ` [PATCH v13 1/2] vhost: expose function vhost_dev_has_iommu() Cindy Lu
2023-03-06  3:07   ` Jason Wang
2023-02-08  2:57 ` [PATCH v13 2/2] vhost-vdpa: add support for vIOMMU Cindy Lu
2023-03-06  3:36   ` Jason Wang
2023-03-15  5:38     ` Cindy Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).