acrn-hypervisor/hypervisor/include
Zhou, Wu 1bc25ed198 HV: refine the ve820 tab for pre-VMs
This patch moves the ssram area in ve820 tab, and reunites the
hpa1_low_part1/2 areas. The ve820 building code is refined.

before:
|<---low_1M--->|
|<---hpa1_low_part1--->|
|<---SSRAM--->|
|<---hpa1_low_part2--->|
|<---GPU_OpRegion--->|
|<---ACPI DATA--->|
|<---ACPI NVS--->|
---2G---

after:
|<---low_1M--->|
|<---hpa_low--->|
|<---SSRAM--->|
|<---GPU_OpRegion--->|
|<---ACPI DATA--->|
|<---ACPI NVS--->|
---2G---

The SSRAM area's address is described in the ACPI's RTCT/PTCT
table. To simplify the SSRAM implementation, SSRAM area was
identical mapped to GPA, and resulted in the divition of hpa_low.
Then the ve820 building logic became too complicated.

Now we managed to edit the guest's RTCT/PTCT table by offline
tools in the former patch, so we can move the guest's SSRAM
area, and reunite the hpa_low areas again.

After doing this, this patch rewrites the ve820 building code
in a much simpler way.

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>
2021-11-08 13:13:14 +08:00
..
arch/x86/asm HV: refine the ve820 tab for pre-VMs 2021-11-08 13:13:14 +08:00
common HV: move the ve820 GPU OpRegion address 2021-11-08 13:13:14 +08:00
debug hv: debug: Add hv console callback to VM-exit event 2021-07-22 10:08:23 +08:00
dm HV: move the ve820 GPU OpRegion address 2021-11-08 13:13:14 +08:00
hw HV: treewide: fix violations of coding guideline C-TY-02 2021-11-04 18:15:47 +08:00
lib HV: treewide: fix violations of coding guideline C-PP-04 2021-11-04 18:15:47 +08:00
public HV: treewide: fix violations of coding guideline C-TY-12 2021-11-04 18:15:47 +08:00