aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Le Goater <clg@redhat.com>2025-03-26 08:51:08 +0100
committerCédric Le Goater <clg@redhat.com>2025-04-25 09:01:37 +0200
commita997b506e715d96549869e2d0fca28a1a9f110dc (patch)
tree565429395da0b60779bc91b0bf02873fb4925e9f
parentc3fbdba15a8b3d80c1f5e6026e636030b3692437 (diff)
downloadqemu-a997b506e715d96549869e2d0fca28a1a9f110dc.zip
qemu-a997b506e715d96549869e2d0fca28a1a9f110dc.tar.gz
qemu-a997b506e715d96549869e2d0fca28a1a9f110dc.tar.bz2
vfio: Move vfio_device_list into device.c
'vfio_device_list' is VFIODevice related. Move its definitions into "device.c". Reviewed-by: John Levon <john.levon@nutanix.com> Link: https://lore.kernel.org/qemu-devel/20250318095415.670319-23-clg@redhat.com Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Link: https://lore.kernel.org/qemu-devel/20250326075122.1299361-24-clg@redhat.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
-rw-r--r--hw/vfio/common.c3
-rw-r--r--hw/vfio/device.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index 84a9a37..4e7d8e8 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -46,9 +46,6 @@
#include "vfio-migration-internal.h"
#include "vfio-helpers.h"
-VFIODeviceList vfio_device_list =
- QLIST_HEAD_INITIALIZER(vfio_device_list);
-
/*
* Device state interfaces
*/
diff --git a/hw/vfio/device.c b/hw/vfio/device.c
index 21c6824..25fdba1 100644
--- a/hw/vfio/device.c
+++ b/hw/vfio/device.c
@@ -31,6 +31,9 @@
#include "monitor/monitor.h"
#include "vfio-helpers.h"
+VFIODeviceList vfio_device_list =
+ QLIST_HEAD_INITIALIZER(vfio_device_list);
+
/*
* Common VFIO interrupt disable
*/