mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
HV: Fix the problems in ve820 acpi area
The length of the ACPI data entry in ve820 tab was 960K, while the ACPI file is 1MB. It causes the ACPI file copy failed due to reserved ACPI regions in ve820 table is not enough when loading pre-launched VMs. This patch changes ACPI data area to 1MB to fix the problem. And the ACPI data length was missed when calculating ENTRY_HPA1_LOW_PART2 length. Fixed here too. Also adds some refinement to the hard-coded ACPI base/addr definations Tracked-On: #6674 Signed-off-by: Zhou, Wu <wu.zhou@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com> Reviewed-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
@@ -17,8 +17,11 @@
|
||||
* table which at GPA 0x7fe00080;
|
||||
* The module file should be generated by acrn-config tool;
|
||||
*/
|
||||
#define VIRT_ACPI_DATA_ADDR 0x7fe00000UL
|
||||
#define VIRT_ACPI_NVS_ADDR 0x7ff00000UL
|
||||
#define VIRT_ACPI_DATA_LEN MEM_1M
|
||||
#define VIRT_ACPI_NVS_LEN MEM_1M
|
||||
/* Currently ACPI NVS start addr is presumed to be consecutive with ACPI DATA area right below 0x80000000 */
|
||||
#define VIRT_ACPI_NVS_ADDR (0x80000000UL - VIRT_ACPI_NVS_LEN)
|
||||
#define VIRT_ACPI_DATA_ADDR (VIRT_ACPI_NVS_ADDR - VIRT_ACPI_DATA_LEN)
|
||||
#define VIRT_RSDP_ADDR 0x000f2400UL
|
||||
#define VIRT_XSDT_ADDR 0x7fe00080UL
|
||||
|
||||
|
Reference in New Issue
Block a user