mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
HV: add acpi module support for pre-launched VM
Previously we use a pre-defined structure as vACPI table for pre-launched VM, the structure is initialized by HV code. Now change the method to use a pre-loaded multiboot module instead. The module file will be generated by acrn-config tool and loaded to GPA 0x7ff00000, a hardcoded RSDP table at GPA 0x000f2400 will point to the XSDT table which at GPA 0x7ff00080; Tracked-On: #5266 Signed-off-by: Victor Sun <victor.sun@intel.com> Signed-off-by: Shuang Zheng <shuang.zheng@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -53,8 +53,16 @@
|
||||
#define ACPI_ASL_COMPILER_ID "INTL"
|
||||
#define ACPI_ASL_COMPILER_VERSION 0x20190802U
|
||||
|
||||
/* Use a pre-loaded multiboot module as pre-launched VM ACPI table.
|
||||
* The module file size is fixed to 1MB and loaded to GPA 0x7ff00000.
|
||||
* A hardcoded RSDP table at GPA 0x000f2400 will point to the XSDT
|
||||
* table which at GPA 0x7ff00080;
|
||||
* The module file should be generated by acrn-config tool;
|
||||
*/
|
||||
#define VIRT_ACPI_DATA_ADDR 0x7ff00000UL
|
||||
#define VIRT_ACPI_NVS_ADDR 0x7fff0000UL
|
||||
#define VIRT_RSDP_ADDR 0x000f2400UL
|
||||
#define VIRT_XSDT_ADDR 0x7ff00080UL
|
||||
|
||||
/* virtual PCI MMCFG address base for pre/post-launched VM. */
|
||||
#define VIRT_PCI_MMCFG_BASE 0xE0000000UL
|
||||
@@ -77,5 +85,6 @@ struct acpi_table_info {
|
||||
};
|
||||
|
||||
void build_vacpi(struct acrn_vm *vm);
|
||||
void build_vrsdp(struct acrn_vm *vm);
|
||||
|
||||
#endif /* VACPI_H */
|
||||
|
Reference in New Issue
Block a user