mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
HV: move the ve820 GPU OpRegion address
The ve820 table' hpa1_low area is divided into two parts, which is making the code too complicated and causing problems. Moving the entries that divides the hpa1_low could make things easier. This patch moves the GPU OpRegion to the tail area of 2G, consecutive to the acpi data/nvs area. before: |<---low_1M--->| |<---hpa1_low_part1--->| |<---SSRAM--->| |<---GPU_OpRegion--->| |<---hpa1_low_part2--->| |<---ACPI DATA--->| |<---ACPI NVS--->| ---2G--- after: |<---low_1M--->| |<---hpa1_low_part1--->| |<---SSRAM--->| |<---hpa1_low_part2--->| |<---GPU_OpRegion--->| |<---ACPI DATA--->| |<---ACPI NVS--->| ---2G--- Tracked-On: #6674 Signed-off-by: Zhou, Wu <wu.zhou@intel.com> Reviewed-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#include <ptdev.h>
|
||||
|
||||
#define ENTRY_HPA1_LOW_PART1 2U
|
||||
#define ENTRY_HPA1_LOW_PART2 5U
|
||||
#define ENTRY_HPA1_LOW_PART2 4U
|
||||
#define ENTRY_HPA1_HI 9U
|
||||
|
||||
static struct e820_entry service_vm_e820[E820_MAX_ENTRIES];
|
||||
@@ -199,16 +199,16 @@ static const struct e820_entry pre_ve820_template[E820_MAX_ENTRIES] = {
|
||||
.length = PRE_RTVM_SW_SRAM_MAX_SIZE,
|
||||
.type = E820_TYPE_RESERVED
|
||||
},
|
||||
{ /* part2 of lowmem of hpa1*/
|
||||
.baseaddr = PRE_RTVM_SW_SRAM_BASE_GPA + PRE_RTVM_SW_SRAM_MAX_SIZE,
|
||||
.length = GPU_OPREGION_GPA - (PRE_RTVM_SW_SRAM_BASE_GPA + PRE_RTVM_SW_SRAM_MAX_SIZE),
|
||||
.type = E820_TYPE_RAM
|
||||
},
|
||||
{ /* GPU OpRegion for pre-launched VM */
|
||||
.baseaddr = GPU_OPREGION_GPA,
|
||||
.length = GPU_OPREGION_SIZE,
|
||||
.type = E820_TYPE_RESERVED
|
||||
},
|
||||
{ /* part2 of lowmem of hpa1*/
|
||||
.baseaddr = GPU_OPREGION_GPA + GPU_OPREGION_SIZE,
|
||||
.length = VIRT_ACPI_DATA_ADDR - (GPU_OPREGION_GPA + GPU_OPREGION_SIZE),
|
||||
.type = E820_TYPE_RAM
|
||||
},
|
||||
{ /* ACPI Reclaim */
|
||||
.baseaddr = VIRT_ACPI_DATA_ADDR,/* consecutive from 0x7fe00000UL */
|
||||
.length = VIRT_ACPI_DATA_LEN,
|
||||
|
Reference in New Issue
Block a user