]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/container: pass MemoryRegion to DMA operations
authorJohn Levon <john.levon@nutanix.com>
Wed, 21 May 2025 21:55:34 +0000 (22:55 +0100)
committerCédric Le Goater <clg@redhat.com>
Thu, 5 Jun 2025 08:40:38 +0000 (10:40 +0200)
commit44d0acf834b090c2717934983ac7678a602b2da5
tree750ff462653fb1fe95451944f8c113ab492e0f3e
parente3353d63e15d0b1109257d55e265a889e8c508f8
vfio/container: pass MemoryRegion to DMA operations

Pass through the MemoryRegion to DMA operation handlers of vfio
containers. The vfio-user container will need this later, to translate
the vaddr into an offset for the dma map vfio-user message; CPR will
also will need this.

Originally-by: John Johnson <john.g.johnson@oracle.com>
Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Steve Sistare <steven.sistare@oracle.com>
Link: https://lore.kernel.org/qemu-devel/20250521215534.2688540-1-john.levon@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/container-base.c
hw/vfio/container.c
hw/vfio/iommufd.c
hw/vfio/listener.c
include/hw/vfio/vfio-container-base.h