37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
|
|
From 017272249cc362055dc5b31cdc16b2265df39e5c Mon Sep 17 00:00:00 2001
|
||
|
|
From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= <clg@redhat.com>
|
||
|
|
Date: Tue, 19 Dec 2023 07:58:24 +0100
|
||
|
|
Subject: [PATCH] vfio/spapr: Only compile sPAPR IOMMU support when needed
|
||
|
|
MIME-Version: 1.0
|
||
|
|
Content-Type: text/plain; charset=UTF-8
|
||
|
|
Content-Transfer-Encoding: 8bit
|
||
|
|
|
||
|
|
sPAPR IOMMU support is only needed for pseries machines. Compile out
|
||
|
|
support when CONFIG_PSERIES is not set. This saves ~7K of text.
|
||
|
|
|
||
|
|
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
|
||
|
|
Tested-by: Eric Farman <farman@linux.ibm.com>
|
||
|
|
Signed-off-by: Cédric Le Goater <clg@redhat.com>
|
||
|
|
---
|
||
|
|
hw/vfio/meson.build | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/hw/vfio/meson.build b/hw/vfio/meson.build
|
||
|
|
index bd5cc4ca79..bda2688983 100644
|
||
|
|
--- a/hw/vfio/meson.build
|
||
|
|
+++ b/hw/vfio/meson.build
|
||
|
|
@@ -4,9 +4,9 @@ vfio_ss.add(files(
|
||
|
|
'common.c',
|
||
|
|
'container-base.c',
|
||
|
|
'container.c',
|
||
|
|
- 'spapr.c',
|
||
|
|
'migration.c',
|
||
|
|
))
|
||
|
|
+vfio_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr.c'))
|
||
|
|
vfio_ss.add(when: 'CONFIG_IOMMUFD', if_true: files(
|
||
|
|
'iommufd.c',
|
||
|
|
))
|
||
|
|
--
|
||
|
|
2.41.0.windows.1
|
||
|
|
|