From 4b31776b6e2c4b9be10277c51d1c6f65512b3293 Mon Sep 17 00:00:00 2001 From: Jens Wiklander Date: Fri, 20 Sep 2024 15:56:27 +0200 Subject: [PATCH] core: arm: add CFG_NS_VIRTUALIZATION boot log Add a log entry when CFG_NS_VIRTUALIZATION is enabled, for example: D/TC:0 0 boot_init_primary_late:1028 NS-Virtualization enabled, supporting 2 guests Signed-off-by: Jens Wiklander Reviewed-by: Jerome Forissier Reviewed-by: Etienne Carriere --- core/arch/arm/kernel/boot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/arch/arm/kernel/boot.c b/core/arch/arm/kernel/boot.c index 7d5758094c9..52899add58c 100644 --- a/core/arch/arm/kernel/boot.c +++ b/core/arch/arm/kernel/boot.c @@ -1022,6 +1022,10 @@ void __weak boot_init_primary_late(unsigned long fdt __unused, #ifdef CFG_CORE_ASLR DMSG("Executing at offset %#lx with virtual load address %#"PRIxVA, (unsigned long)boot_mmu_config.map_offset, VCORE_START_VA); +#endif +#ifdef CFG_NS_VIRTUALIZATION + DMSG("NS-virtualization enabled, supporting %u guests", + CFG_VIRT_GUEST_COUNT); #endif if (IS_ENABLED(CFG_MEMTAG)) DMSG("Memory tagging %s",