mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-06 17:21:22 +00:00
HV: move dmar info definition to board.c
The DMAR info is board specific so move the structure definition to board.c. As a configruation file, the whole board.c could be generated by acrn-config tool for each board. Please note we only provide DMAR info MACROs for nuc7i7dnb board. For other boards, ACPI_PARSE_ENABLED must be set to y in Kconfig to let hypervisor parse DMAR info, or use acrn-config tool to generate DMAR info MACROs if user won't enable ACPI parse code for FuSa consideration. The patch also moves the function of get_dmar_info() to vtd.c, so dmar_info.c could be removed. Tracked-On: #3977 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -6,6 +6,14 @@
|
||||
|
||||
#include <board.h>
|
||||
#include <msr.h>
|
||||
#include <vtd.h>
|
||||
|
||||
#ifndef CONFIG_ACPI_PARSE_ENABLED
|
||||
#error "DMAR info is not available, please set ACPI_PARSE_ENABLED to y in Kconfig. \
|
||||
Or use acrn-config tool to generate platform DMAR info."
|
||||
#endif
|
||||
|
||||
struct dmar_info plat_dmar_info;
|
||||
|
||||
struct platform_clos_info platform_clos_array[4] = {
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user