]> git.proxmox.com Git - mirror_qemu.git/commit
vfio/common: Introduce a global VFIODevice list
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Mon, 9 Oct 2023 09:09:16 +0000 (11:09 +0200)
committerCédric Le Goater <clg@redhat.com>
Wed, 18 Oct 2023 08:10:49 +0000 (10:10 +0200)
commit3d779abafe9fff4fdbbc6c8dd2a6f6f901d98870
tree711814cfb0020a76746999d5280b188090330b75
parent0bddd88027679d3c34b7c754a13c7af002adbd99
vfio/common: Introduce a global VFIODevice list

Some functions iterate over all the VFIODevices. This is currently
achieved by iterating over all groups/devices. Let's
introduce a global list of VFIODevices simplifying that scan.

This will also be useful while migrating to IOMMUFD by hiding the
group specificity.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Suggested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/common.c
include/hw/vfio/vfio-common.h