]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio: add per-region fd support
authorJohn Levon <john.levon@nutanix.com>
Sat, 7 Jun 2025 00:10:35 +0000 (17:10 -0700)
committerCédric Le Goater <clg@redhat.com>
Wed, 11 Jun 2025 12:01:58 +0000 (14:01 +0200)
commit59adfc6f1843538d78373296fd05a57ced1f3ecb
treecb85c9426c9c9923c39a2bad0f93ccc35ee5390d
parent7163c0bca72ae70a5be2d455c5348255a6016f04
vfio: add per-region fd support

For vfio-user, each region has its own fd rather than sharing
vbasedev's. Add the necessary plumbing to support this, and use the
correct fd in vfio_region_mmap().

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/20250607001056.335310-4-john.levon@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/device.c
hw/vfio/region.c
include/hw/vfio/vfio-device.h