]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio: add device IO ops vector
authorJohn Levon <john.levon@nutanix.com>
Wed, 7 May 2025 15:20:15 +0000 (16:20 +0100)
committerCédric Le Goater <clg@redhat.com>
Fri, 9 May 2025 10:42:28 +0000 (12:42 +0200)
commit38bf025d0dc80c1ae6e8f36093c5145c08b332d9
tree85c771572c9be99ba04d5fc5503d7e66d0140fc6
parent9458d9b4dc6a9d1c51772fc8a29a48ab47521430
vfio: add device IO ops vector

For vfio-user, device operations such as IRQ handling and region
read/writes are implemented in userspace over the control socket, not
ioctl() to the vfio kernel driver; add an ops vector to generalize this,
and implement vfio_device_io_ops_ioctl for interacting with the kernel
vfio driver.

Originally-by: John Johnson <john.g.johnson@oracle.com>
Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
Signed-off-by: Jagannathan Raman <jag.raman@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/20250507152020.1254632-11-john.levon@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/container-base.c
hw/vfio/device.c
hw/vfio/listener.c
hw/vfio/pci.c
include/hw/vfio/vfio-device.h