[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <05db807e-887a-4502-8de1-ec9910f66b60@zytor.com>
Date: Wed, 3 Dec 2025 13:27:40 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: Ingo Molnar <mingo@...nel.org>, James Le Cuirot <chewi@...too.org>
Cc: x86@...nel.org, linux-kernel@...r.kernel.org,
Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>,
Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Ard Biesheuvel <ardb@...nel.org>
Subject: Re: [PATCH] x86: fix oops caused by old EFI info on kexec boot
On 2025-12-03 12:59, H. Peter Anvin wrote:
>>
>> Yeah, so this looks like a good fix - but please let's
>> introduce some sort of enum for the bootloader IDs
>> in arch/x86/include/uapi/asm/bootparam.h, I had to search
>> way too long to figure out what 0xD is and where it
>> was defined :-)
>>
>> Also, please introduce a "x86_bootloader_is_kexec()" kind
>> of helper inline function as well.
>>
>
> An enum and an accessor, please, that decodes the extended ID if necessary.
>
Maybe something like this (untested.)
-hpa
View attachment "0001-x86-boot-add-enumeration-and-accessors-for-boot-load.patch" of type "text/x-patch" (2802 bytes)
Powered by blists - more mailing lists