Skip to content

Commit

Permalink
xen/arch/x86/slaunch.c: Map the TPM event log after TXT regions
Browse files Browse the repository at this point in the history
Map the TPM event log after the TXT regions are mapped to avoid
an early page fault when booting with slaunch.

Signed-off-by: Michał Żygowski <[email protected]>
  • Loading branch information
miczyg1 committed May 23, 2024
1 parent e19e079 commit 0b53c6a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xen/arch/x86/slaunch.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ void __init map_slaunch_mem_regions(void)

map_l2(TPM_TIS_BASE, TPM_TIS_SIZE);

find_evt_log(__va(slaunch_slrt), &evt_log_addr, &evt_log_size);
map_l2((unsigned long)evt_log_addr, evt_log_size);

/* Vendor-specific part. */
if ( boot_cpu_data.x86_vendor == X86_VENDOR_INTEL )
{
Expand All @@ -73,6 +70,10 @@ void __init map_slaunch_mem_regions(void)
{
map_l2(get_slb_start(), SKINIT_SLB_SIZE);
}

find_evt_log(__va(slaunch_slrt), &evt_log_addr, &evt_log_size);
map_l2((unsigned long)evt_log_addr, evt_log_size);

}

void __init protect_slaunch_mem_regions(void)
Expand Down

0 comments on commit 0b53c6a

Please sign in to comment.