|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] x86: Preinitialise all modules to be of kind BOOTMOD_UNKNOWN
commit 4f48bd785122ceedc619876df745ae60b2445623
Author: Alejandro Vallejo <agarciav@xxxxxxx>
AuthorDate: Mon Jun 16 10:14:37 2025 +0200
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Mon Jun 16 10:14:37 2025 +0200
x86: Preinitialise all modules to be of kind BOOTMOD_UNKNOWN
A later patch removes boot_module and replaces its uses with bootmodule.
The equivalent field for "type" doesn't have BOOTMOD_UNKNOWN as a zero
value, so it must be explicitly set in the static xen_boot_info.
Not a functional change.
Signed-off-by: Alejandro Vallejo <agarciav@xxxxxxx>
Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
xen/arch/x86/setup.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
index d47b99f1b2..f32efa7c60 100644
--- a/xen/arch/x86/setup.c
+++ b/xen/arch/x86/setup.c
@@ -298,6 +298,12 @@ struct boot_info __initdata xen_boot_info = {
.loader = "unknown",
.cmdline = "",
.domains = { [0 ... MAX_NR_BOOTDOMS - 1] = { .domid = DOMID_INVALID } },
+ /*
+ * There's a MAX_NR_BOOTMODS-th entry in the array. It's not off by one.
+ *
+ * The extra entry exists to be able to add the Xen image as a module.
+ */
+ .mods = { [0 ... MAX_NR_BOOTMODS] = { .type = BOOTMOD_UNKNOWN } },
};
static struct boot_info *__init multiboot_fill_boot_info(
--
generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |