mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00

Gather all VFIORegion related declarations and definitions into their own files to reduce exposure of VFIO internals in "hw/vfio/vfio-common.h". They were introduced for 'vfio-platform' support in commitsdb0da029a1
("vfio: Generalize region support") anda664477db8
("hw/vfio/pci: Introduce VFIORegion"). To be noted that the 'vfio-platform' devices have been deprecated and will be removed in QEMU 10.2. Until then, make the declarations available externally for 'sysbus-fdt.c'. Cc: Eric Auger <eric.auger@redhat.com> Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Link: https://lore.kernel.org/qemu-devel/20250326075122.1299361-12-clg@redhat.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
33 lines
1,014 B
Meson
33 lines
1,014 B
Meson
vfio_ss = ss.source_set()
|
|
vfio_ss.add(files(
|
|
'common.c',
|
|
'container.c',
|
|
))
|
|
vfio_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr.c'))
|
|
vfio_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files(
|
|
'pci-quirks.c',
|
|
'pci.c',
|
|
))
|
|
vfio_ss.add(when: 'CONFIG_VFIO_CCW', if_true: files('ccw.c'))
|
|
vfio_ss.add(when: 'CONFIG_VFIO_PLATFORM', if_true: files('platform.c'))
|
|
vfio_ss.add(when: 'CONFIG_VFIO_AP', if_true: files('ap.c'))
|
|
vfio_ss.add(when: 'CONFIG_VFIO_IGD', if_true: files('igd.c'))
|
|
|
|
specific_ss.add_all(when: 'CONFIG_VFIO', if_true: vfio_ss)
|
|
|
|
system_ss.add(when: 'CONFIG_VFIO_XGMAC', if_true: files('calxeda-xgmac.c'))
|
|
system_ss.add(when: 'CONFIG_VFIO_AMD_XGBE', if_true: files('amd-xgbe.c'))
|
|
system_ss.add(when: 'CONFIG_VFIO', if_true: files(
|
|
'helpers.c',
|
|
'container-base.c',
|
|
'migration.c',
|
|
'migration-multifd.c',
|
|
'cpr.c',
|
|
'region.c',
|
|
))
|
|
system_ss.add(when: ['CONFIG_VFIO', 'CONFIG_IOMMUFD'], if_true: files(
|
|
'iommufd.c',
|
|
))
|
|
system_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files(
|
|
'display.c',
|
|
))
|