From: Michał Żygowski Date: Thu, 23 May 2024 22:11:59 +0000 (+0200) Subject: xen/arch/x86/slaunch.c: Map the TPM event log after TXT regions X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8620b7fb7b2680e1392eb8b8b02d97322306af1e;p=people%2Fandrewcoop%2Fxen.git xen/arch/x86/slaunch.c: Map the TPM event log after TXT regions 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 --- diff --git a/xen/arch/x86/slaunch.c b/xen/arch/x86/slaunch.c index 3a6e2f19a8..e618181a60 100644 --- a/xen/arch/x86/slaunch.c +++ b/xen/arch/x86/slaunch.c @@ -72,8 +72,8 @@ void __init map_slaunch_mem_regions(void) } find_evt_log(__va(slaunch_slrt), &evt_log_addr, &evt_log_size); - map_l2((unsigned long)evt_log_addr, evt_log_size); - + if ( evt_log_addr != NULL ) + map_l2((unsigned long)evt_log_addr, evt_log_size); } void __init protect_slaunch_mem_regions(void)