From 565f3cb72c8fa8bdebe463c5c002546f92bf3fb6 Mon Sep 17 00:00:00 2001 From: Victor Sun Date: Fri, 10 May 2019 23:36:09 +0800 Subject: [PATCH] HV: move dmar parse code to acpi parser folder The acpi parse code would not go FuSa cert, move acpi parser related code to a separate folder is helpful on FuSa isolation. This patch moves dmar parse code; Tracked-On: #3107 Signed-off-by: Victor Sun Acked-by: Eddie Dong --- hypervisor/Makefile | 7 ++++++- hypervisor/{boot => acpi_parser}/dmar_parse.c | 3 --- 2 files changed, 6 insertions(+), 4 deletions(-) rename hypervisor/{boot => acpi_parser}/dmar_parse.c (99%) diff --git a/hypervisor/Makefile b/hypervisor/Makefile index a1c8fabf5..7508d80df 100644 --- a/hypervisor/Makefile +++ b/hypervisor/Makefile @@ -156,9 +156,14 @@ ifneq (,$(wildcard scenarios/$(SCENARIO_NAME)/pt_dev.c)) C_SRCS += scenarios/$(SCENARIO_NAME)/pt_dev.c endif +# ACPI parsing component +# This part should be isolated from FuSa Cert +ifeq ($(CONFIG_DMAR_PARSE_ENABLED),y) +C_SRCS += acpi_parser/dmar_parse.c +endif + C_SRCS += boot/acpi.c C_SRCS += boot/dmar_info.c -C_SRCS += boot/dmar_parse.c C_SRCS += boot/cmdline.c C_SRCS += boot/guest/vboot_wrapper.c C_SRCS += boot/guest/deprivilege_boot.c diff --git a/hypervisor/boot/dmar_parse.c b/hypervisor/acpi_parser/dmar_parse.c similarity index 99% rename from hypervisor/boot/dmar_parse.c rename to hypervisor/acpi_parser/dmar_parse.c index 0329df155..2902c9971 100644 --- a/hypervisor/boot/dmar_parse.c +++ b/hypervisor/acpi_parser/dmar_parse.c @@ -4,7 +4,6 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#ifdef CONFIG_DMAR_PARSE_ENABLED #include #include #include @@ -296,5 +295,3 @@ int32_t parse_dmar_table(struct dmar_info *plat_dmar_info) return 0; } - -#endif