Skip to content

Commit 5731bae

Browse files
philmdlegoater
authored andcommitted
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é <[email protected]> Reviewed-by: Pierrick Bouvier <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]> Reviewed-by: Eric Auger <[email protected]> Message-Id: <[email protected]> Link: https://lore.kernel.org/qemu-devel/[email protected] Signed-off-by: Cédric Le Goater <[email protected]>
1 parent 80ce7bb commit 5731bae

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

hw/vfio/meson.build

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
vfio_ss = ss.source_set()
22
vfio_ss.add(files(
3-
'helpers.c',
43
'common.c',
5-
'container-base.c',
64
'container.c',
7-
'migration.c',
8-
'migration-multifd.c',
9-
'cpr.c',
105
))
116
vfio_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr.c'))
127
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'))
2520
vfio_ss.add(when: 'CONFIG_VFIO_IGD', if_true: files('igd.c'))
2621

2722
specific_ss.add_all(when: 'CONFIG_VFIO', if_true: vfio_ss)
23+
24+
system_ss.add(when: 'CONFIG_VFIO', if_true: files(
25+
'helpers.c',
26+
'container-base.c',
27+
'migration.c',
28+
'migration-multifd.c',
29+
'cpr.c',
30+
))

hw/vfio/migration.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include "qapi/error.h"
2828
#include "qapi/qapi-events-vfio.h"
2929
#include "exec/ramlist.h"
30-
#include "exec/ram_addr.h"
3130
#include "pci.h"
3231
#include "trace.h"
3332
#include "hw/hw.h"

0 commit comments

Comments
 (0)