aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-11 09:57:40 +0100
committerCédric Le Goater <clg@redhat.com>2025-03-11 17:01:15 +0100
commit5731baee6c3ca1fbd23ce9dfe1a825aafd473e7f (patch)
tree3179db94989e9d27294071d4f3f7beb4ce43fe96
parent80ce7bb5cf0157fa835ecaabeaed90fc282830c9 (diff)
downloadqemu-5731baee6c3ca1fbd23ce9dfe1a825aafd473e7f.zip
qemu-5731baee6c3ca1fbd23ce9dfe1a825aafd473e7f.tar.gz
qemu-5731baee6c3ca1fbd23ce9dfe1a825aafd473e7f.tar.bz2
hw/vfio: Compile some common objects once
Some files don't rely on any target-specific knowledge and can be compiled once: - helpers.c - container-base.c - migration.c (removing unnecessary "exec/ram_addr.h") - migration-multifd.c - cpr.c Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Message-Id: <20250308230917.18907-4-philmd@linaro.org> Link: https://lore.kernel.org/qemu-devel/20250311085743.21724-6-philmd@linaro.org Signed-off-by: Cédric Le Goater <clg@redhat.com>
-rw-r--r--hw/vfio/meson.build13
-rw-r--r--hw/vfio/migration.c1
2 files changed, 8 insertions, 6 deletions
diff --git a/hw/vfio/meson.build b/hw/vfio/meson.build
index 260d65f..8e376cf 100644
--- a/hw/vfio/meson.build
+++ b/hw/vfio/meson.build
@@ -1,12 +1,7 @@
vfio_ss = ss.source_set()
vfio_ss.add(files(
- 'helpers.c',
'common.c',
- 'container-base.c',
'container.c',
- 'migration.c',
- 'migration-multifd.c',
- 'cpr.c',
))
vfio_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr.c'))
vfio_ss.add(when: 'CONFIG_IOMMUFD', if_true: files(
@@ -25,3 +20,11 @@ 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', if_true: files(
+ 'helpers.c',
+ 'container-base.c',
+ 'migration.c',
+ 'migration-multifd.c',
+ 'cpr.c',
+))
diff --git a/hw/vfio/migration.c b/hw/vfio/migration.c
index 416643d..fbff46c 100644
--- a/hw/vfio/migration.c
+++ b/hw/vfio/migration.c
@@ -27,7 +27,6 @@
#include "qapi/error.h"
#include "qapi/qapi-events-vfio.h"
#include "exec/ramlist.h"
-#include "exec/ram_addr.h"
#include "pci.h"
#include "trace.h"
#include "hw/hw.h"