|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v5 05/44] x86/boot: introduce struct boot_module
On 10/7/24 14:29, Jason Andryuk wrote: On 2024-10-06 17:49, Daniel P. Smith wrote:This will introduce a new struct boot_module to provide a rich staterepresentation around modules provided by the boot loader. Support is for 64 boot modules, one held in reserve for Xen, and up to 63 can be provided by theboot loader. The array of struct boot_modules will be accessible via a reference held in struct boot_info. A temporary `mod` parameter is included in struct boot_module to ease thetransition from using Multiboot v1 structures over to struct boot_module. Once the transition is complete, the parameter will be dropped from the structure.Signed-off-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx> --- xen/arch/x86/include/asm/bootinfo.h | 14 ++++++++++++-- xen/arch/x86/setup.c | 9 +++++++++ 2 files changed, 21 insertions(+), 2 deletions(-)diff --git a/xen/arch/x86/include/asm/bootinfo.h b/xen/arch/x86/include/asm/bootinfo.hindex 87d311ac1399..d19473d8941e 100644 --- a/xen/arch/x86/include/asm/bootinfo.h +++ b/xen/arch/x86/include/asm/bootinfo.h @@ -8,20 +8,30 @@ #ifndef __XEN_X86_BOOTINFO_H__ #define __XEN_X86_BOOTINFO_H__ +#include <xen/multiboot.h> #include <xen/types.h>+/* Max number of boot modules a bootloader can provide in addition to Xen */ Ack. const char *loader; const char *cmdline; paddr_t memmap_addr; size_t memmap_length; + + unsigned int nr_modules; + struct boot_module mods[MAX_NR_BOOTMODS + 1]; };Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx> Thank you. v/r, dps
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |