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

Commonize some initialization code shared by the legacy and iommufd vfio
implementations.

Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: John Levon <john.levon@nutanix.com>
Link: https://lore.kernel.org/qemu-devel/20250507152020.1254632-2-john.levon@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/container.c
hw/vfio/device.c
hw/vfio/iommufd.c
include/hw/vfio/vfio-device.h