mbox series

[v7,0/2] vhost-vdpa: add support for vIOMMU

Message ID 20221030164539.1374058-1-lulu@redhat.com (mailing list archive)
Headers show
Series vhost-vdpa: add support for vIOMMU | expand

Message

Cindy Lu Oct. 30, 2022, 4:45 p.m. UTC
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 unpopulated_discard back to
memeory_get_xlat_addr

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

Cindy Lu (2):
  vfio: move function vfio_get_xlat_addr() to memory.c
  vhost-vdpa: add support for vIOMMU

 hw/vfio/common.c               | 107 ++++++++--------------------
 hw/virtio/vhost-vdpa.c         | 123 ++++++++++++++++++++++++++++++---
 include/exec/memory.h          |   4 ++
 include/hw/virtio/vhost-vdpa.h |  10 +++
 softmmu/memory.c               |  72 +++++++++++++++++++
 5 files changed, 226 insertions(+), 90 deletions(-)