From 48c070c88e9571c2f909a4a593579685ed57067f Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Tue, 27 Jul 2021 14:14:08 +0800 Subject: [PATCH] config_tools: adjust the end of TPM log area The log area of TPM is typically placed as part of the ACPI data region in e820. This patch follows this convention by adjusting how the virtual TPM log area base address is allocated. Tracked-On: #6320 Signed-off-by: Junjie Mao --- misc/config_tools/static_allocators/gpa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/config_tools/static_allocators/gpa.py b/misc/config_tools/static_allocators/gpa.py index 69b01a5c7..200b466f7 100644 --- a/misc/config_tools/static_allocators/gpa.py +++ b/misc/config_tools/static_allocators/gpa.py @@ -355,7 +355,7 @@ def allocate_log_area(board_etree, scenario_etree, allocation_etree): if common.get_node("//capability[@id='log_area']", board_etree) is not None: # VIRT_ACPI_DATA_ADDR - log_area_end_address = 0x7FF00000 + log_area_end_address = 0x7FFF0000 log_area_start_address = log_area_end_address - LOG_AREA_MIN_LEN allocation_vm_node = common.get_node(f"/acrn-config/vm[@id = '0']", allocation_etree) if allocation_vm_node is None: @@ -376,7 +376,7 @@ def allocate_log_area(board_etree, scenario_etree, allocation_etree): +--------------------------------------------------+ <--Start of VM low pci hole | | Offset 0x80000000 ... ... - | TPM2 log area at 0x7FEC0000 | + | TPM2 log area at 0x7FFB0000 | ... ... | | +--------------------------------------------------+ <--Offset 0