HV: remove CONFIG_CONSTANT_ACPI from Kconfig

The MACRO of CONFIG_CONSTANT_ACPI will be defined per scenario usage,
so move it from Kconfig to vm_configurations.h;

Tracked-On: #2291

Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Victor Sun 2019-05-06 19:19:15 +08:00 committed by wenlingz
parent e2d723d4fa
commit ad3658ee17
4 changed files with 7 additions and 11 deletions

View File

@ -235,15 +235,6 @@ config SOS_RAM_SIZE
A 64-bit integer indicating the size of the User OS RAM (MMIO not
included). Now we assume each UOS uses same amount of RAM size.
config CONSTANT_ACPI
bool "The platform ACPI info is constant"
default n
help
Whether constant ACPI tables shall be used. If selected, the built-in
ACPI tables, usually generated on target platforms by an offline tool,
will be used. If not a fixup subroutine will be invoked to update the
built-in tables after parsing the real ACPI tables at runtime.
config DMAR_PARSE_ENABLED
bool "Enable ACPI DMA Remapping tables parsing"
default y

View File

@ -340,8 +340,8 @@ void *get_dmar_table(void)
*
* The second type of table, the ACPI Data Table, could be parsed here.
*
* When ACRN go production, the platform ACPI data should be fixed. The
* Kconfig of CONSTANT_ACPI will be set to yes, then this code is not needed.
* When ACRN go FuSa, the platform ACPI data should be fixed. The MACRO of
* CONFIG_CONSTANT_ACPI will be defined, then this code is not needed.
*/
#define ACPI_SIG_FACS 0x53434146U /* "FACS" */

View File

@ -7,6 +7,8 @@
#ifndef ACPI_H
#define ACPI_H
#include <vm_configurations.h>
struct ioapic_info;
uint16_t parse_madt(uint32_t lapic_id_array[CONFIG_MAX_PCPU_NUM]);
uint16_t parse_madt_ioapic(struct ioapic_info *ioapic_id_array);

View File

@ -9,6 +9,9 @@
#include <pci_devices.h>
/* Use constant ACPI info which defined in platform_acpi_info.h instead of parsing it. */
#define CONFIG_CONSTANT_ACPI
/* Bits mask of guest flags that can be programmed by device model. Other bits are set by hypervisor only */
#define DM_OWNED_GUEST_FLAG_MASK 0UL