|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] xen/efi: Use PrintErrMsg() rather than printk() in efi_exit_boot()
Hi Jan, On 08/02/2022 11:10, Jan Beulich wrote: On 08.02.2022 11:52, Julien Grall wrote: I have reproduced with the following diff: diff --git a/xen/common/efi/boot.c b/xen/common/efi/boot.c index 8d65e9ce16ea..032e5ddf0c67 100644 --- a/xen/common/efi/boot.c +++ b/xen/common/efi/boot.c@@ -1089,6 +1089,8 @@ static void __init efi_exit_boot(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *Syste
if ( EFI_ERROR(status) )
PrintErrMesg(L"Cannot exit boot services", status);
+ printk("Test\n");
+
#ifdef CONFIG_EFI_SET_VIRTUAL_ADDRESS_MAP
for ( i = 0; i < efi_memmap_size; i += efi_mdesc_size )
{
And got:
Using modules provided by bootloader in FDT
Xen 4.17-unstable (c/s Mon Feb 7 21:14:25 2022 +0000
git:4ecd67a592-dirty) EFI loader
Synchronous Exception at 0x000000000026BAF8 This is pointing to:42sh> addr2line -e xen-syms 0x000000000026BAF8 /home/julien/works/upstream/xen/xen/arch/arm/early_printk.c:21If I disable early printk it seems to work. Hmmm... I think this might be related to the issue I posted a few years ago [1]. That's also to try to figure whether x86 would also be affected. It looks like my x86 setup is not boot using xen.efi. I will need to configure it for more testing. Fair point. I think you are right. From "UEFI Specification, Version 2.9" page 226, StdErr should be set to NULL after ExitBootServices() succeeded. Insterestingly, the EFI firmware I had was still happy to print afterwards.Anyway, my long term plan for UEFI on Arm is to separate the EFI stub from Xen itself (similar to what Linux did). One of the main reason is to keep to interface between the two clean and it helps to enforce what is used by who. Therefore, I think I would prefer to move the printk() to Xen (maybe runtime.c?). I will have a look as part of the work to support runtime services on Arm. So I will park this patch for now. Cheers,[1] https://patches.linaro.org/project/Xen/patch/20171221145521.29526-1-julien.grall@xxxxxxxxxx/ -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |