]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio-user: implement VFIO_USER_DMA_MAP/UNMAP
authorJohn Levon <levon@movementarian.org>
Wed, 25 Jun 2025 19:30:05 +0000 (20:30 +0100)
committerCédric Le Goater <clg@redhat.com>
Thu, 26 Jun 2025 06:55:38 +0000 (08:55 +0200)
commit18e899e63dd9d05e567c081023ad7fc5b2c5dc9a
tree3ae2f6b165b49a9669ed9f8d727255d1c2af5542
parent019232358124e4f4b929e40fa23253de60eec73e
vfio-user: implement VFIO_USER_DMA_MAP/UNMAP

When the vfio-user container gets mapping updates, share them with the
vfio-user by sending a message; this can include the region fd, allowing
the server to directly mmap() the region as needed.

For performance, we only wait for the message responses when we're doing
with a series of updates via the listener_commit() callback.

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>
Link: https://lore.kernel.org/qemu-devel/20250625193012.2316242-14-john.levon@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio-user/container.c
hw/vfio-user/protocol.h
hw/vfio-user/proxy.c
hw/vfio-user/proxy.h
hw/vfio-user/trace-events