Skip to content

Commit

Permalink
HV: move dmar parse code to acpi parser folder
Browse files Browse the repository at this point in the history
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 <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
  • Loading branch information
jsun26intel authored and acrnsi committed May 14, 2019
1 parent 3979869 commit 565f3cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 6 additions & 1 deletion hypervisor/Makefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -156,9 +156,14 @@ ifneq (,$(wildcard scenarios/$(SCENARIO_NAME)/pt_dev.c))
C_SRCS += scenarios/$(SCENARIO_NAME)/pt_dev.c C_SRCS += scenarios/$(SCENARIO_NAME)/pt_dev.c
endif 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/acpi.c
C_SRCS += boot/dmar_info.c C_SRCS += boot/dmar_info.c
C_SRCS += boot/dmar_parse.c
C_SRCS += boot/cmdline.c C_SRCS += boot/cmdline.c
C_SRCS += boot/guest/vboot_wrapper.c C_SRCS += boot/guest/vboot_wrapper.c
C_SRCS += boot/guest/deprivilege_boot.c C_SRCS += boot/guest/deprivilege_boot.c
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */


#ifdef CONFIG_DMAR_PARSE_ENABLED
#include <types.h> #include <types.h>
#include <logmsg.h> #include <logmsg.h>
#include <host_pm.h> #include <host_pm.h>
Expand Down Expand Up @@ -296,5 +295,3 @@ int32_t parse_dmar_table(struct dmar_info *plat_dmar_info)


return 0; return 0;
} }

#endif

0 comments on commit 565f3cb

Please sign in to comment.