Skip to contentSkip to conversation

xen/efi: Show error message for EFI_INVALID_PARAMETER error

PATCH In review Frediano Ziglio 2 participants 2 messages Jun 24, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/efi: Show error message for EFI_INVALID_PARAMETER error

Show string message instead of code.
This happened trying some different ways to boot Xen, specifically trying loading xen.efi using GRUB2 "linux" command.

---
 xen/common/efi/boot.c | 3 +++
 1 file changed, 3 insertions(+)
xen/common/efi/boot.c +3 -0
index fb3b120982..ded7cc129d 100644
@@ -329,6 +329,9 @@ static void __init PrintErrMesg(const CHAR16 *mesg, EFI_STATUS ErrCode)
     case EFI_BUFFER_TOO_SMALL:
         mesg = L"Buffer too small";
         break;
+    case EFI_INVALID_PARAMETER:
+        mesg = L"Invalid parameter";
+        break;
     default:
         PrintErr(L"ErrCode: ");
         DisplayUint(ErrCode, 0);
Signature · 1 line
2.43.0
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Frediano Ziglio

Show string message instead of code.
This happened trying some different ways to boot Xen, specifically trying loading xen.efi using GRUB2 "linux" command.

Quoted 21 lines
---
 xen/common/efi/boot.c | 3 +++
 1 file changed, 3 insertions(+)
xen/common/efi/boot.c +3 -0
index fb3b120982..ded7cc129d 100644
@@ -329,6 +329,9 @@ static void __init PrintErrMesg(const CHAR16 *mesg, EFI_STATUS ErrCode)
     case EFI_BUFFER_TOO_SMALL:
         mesg = L"Buffer too small";
         break;
+    case EFI_INVALID_PARAMETER:
+        mesg = L"Invalid parameter";
+        break;
     default:
         PrintErr(L"ErrCode: ");
         DisplayUint(ErrCode, 0);
Signature · 1 line
2.43.0
Signature · 3 lines
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab