]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio: Move vfio_kvm_device_fd() into helpers.c
authorCédric Le Goater <clg@redhat.com>
Wed, 26 Mar 2025 07:51:07 +0000 (08:51 +0100)
committerCédric Le Goater <clg@redhat.com>
Fri, 25 Apr 2025 07:01:37 +0000 (09:01 +0200)
commitc3fbdba15a8b3d80c1f5e6026e636030b3692437
treeeb2a8ed39a263935b35eed21a8e433f8450e4e04
parent8140d45b108c2b48960bbfb0a215f586f2d1d9e5
vfio: Move vfio_kvm_device_fd() into helpers.c

The vfio_kvm_device_add/del_fd() routines opening the VFIO pseudo
device are defined in "helpers.c". Move 'vfio_kvm_device_fd'
definition there and its declaration into "vfio-helpers.h" to reduce
exposure of VFIO internals in "hw/vfio/vfio-common.h".

Reviewed-by: John Levon <john.levon@nutanix.com>
Link: https://lore.kernel.org/qemu-devel/20250318095415.670319-22-clg@redhat.com
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Link: https://lore.kernel.org/qemu-devel/20250326075122.1299361-23-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/common.c
hw/vfio/helpers.c
hw/vfio/spapr.c
hw/vfio/vfio-helpers.h
include/hw/vfio/vfio-common.h