[PATCH v4 0/2] vhost-vdpa: add support for vIOMMU

Cindy Lu posted 2 patches 1 year, 6 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20221027074032.1101939-1-lulu@redhat.com
Maintainers: Alex Williamson <alex.williamson@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Peter Xu <peterx@redhat.com>, David Hildenbrand <david@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>
There is a newer version of this series
hw/vfio/common.c               |  92 +----------------------
hw/virtio/vhost-vdpa.c         | 131 ++++++++++++++++++++++++++++++---
include/exec/memory.h          |   4 +
include/hw/virtio/vhost-vdpa.h |  10 +++
softmmu/memory.c               |  84 +++++++++++++++++++++
5 files changed, 222 insertions(+), 99 deletions(-)
[PATCH v4 0/2] vhost-vdpa: add support for vIOMMU
Posted by Cindy Lu 1 year, 6 months ago
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

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

 hw/vfio/common.c               |  92 +----------------------
 hw/virtio/vhost-vdpa.c         | 131 ++++++++++++++++++++++++++++++---
 include/exec/memory.h          |   4 +
 include/hw/virtio/vhost-vdpa.h |  10 +++
 softmmu/memory.c               |  84 +++++++++++++++++++++
 5 files changed, 222 insertions(+), 99 deletions(-)

-- 
2.34.3
Re: [PATCH v4 0/2] vhost-vdpa: add support for vIOMMU
Posted by Michael S. Tsirkin 1 year, 6 months ago
On Thu, Oct 27, 2022 at 03:40:30PM +0800, Cindy Lu wrote:
> 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

I expect there will be v5 addressing Alex's comments.

> Cindy Lu (2):
>   vfio: move the function vfio_get_xlat_addr() to memory.c
>   vhost-vdpa: add support for vIOMMU
> 
>  hw/vfio/common.c               |  92 +----------------------
>  hw/virtio/vhost-vdpa.c         | 131 ++++++++++++++++++++++++++++++---
>  include/exec/memory.h          |   4 +
>  include/hw/virtio/vhost-vdpa.h |  10 +++
>  softmmu/memory.c               |  84 +++++++++++++++++++++
>  5 files changed, 222 insertions(+), 99 deletions(-)
> 
> -- 
> 2.34.3
Re: [PATCH v4 0/2] vhost-vdpa: add support for vIOMMU
Posted by Cindy Lu 1 year, 6 months ago
On Sat, 29 Oct 2022 at 15:57, Michael S. Tsirkin <mst@redhat.com> wrote:
>
> On Thu, Oct 27, 2022 at 03:40:30PM +0800, Cindy Lu wrote:
> > 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
>
> I expect there will be v5 addressing Alex's comments.
>
sure, Thanks Micheal, I will post it soon
Thanks
Cindy
> > Cindy Lu (2):
> >   vfio: move the function vfio_get_xlat_addr() to memory.c
> >   vhost-vdpa: add support for vIOMMU
> >
> >  hw/vfio/common.c               |  92 +----------------------
> >  hw/virtio/vhost-vdpa.c         | 131 ++++++++++++++++++++++++++++++---
> >  include/exec/memory.h          |   4 +
> >  include/hw/virtio/vhost-vdpa.h |  10 +++
> >  softmmu/memory.c               |  84 +++++++++++++++++++++
> >  5 files changed, 222 insertions(+), 99 deletions(-)
> >
> > --
> > 2.34.3
>