[PATCH V3] multiboot2: Implement the new module load and preferences tag

2020-07-14 Thread Zide Chen
control the modules load addresses, which is independent to whether the kernel relocatable tag is present or not. Signed-off-by: Zide Chen --- grub-core/loader/multiboot.c | 35 ++- grub-core/loader/multiboot_mbi2.c | 24 + include/grub/multiboot2.h

[MULTIBOOT2 SPEC PATCH V3] multiboot2: Add module load and preference tag

2020-05-13 Thread Zide Chen
version to 2.1, and add 2020 to copyright. Signed-off-by: Zide Chen --- configure.ac | 2 +- doc/multiboot.texi | 57 +- doc/multiboot2.h | 12 ++ 3 files changed, 69 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac

[MULTIBOOT2 SPEC PATCH V2] multiboot2: Add module load and preference tag

2020-05-07 Thread Zide Chen
-by: Zide Chen --- doc/multiboot.texi | 41 + doc/multiboot2.h | 11 +++ 2 files changed, 52 insertions(+) diff --git a/doc/multiboot.texi b/doc/multiboot.texi index df8a0d056e76..758ef7fd1e2d 100644 --- a/doc/multiboot.texi +++ b/doc

[PATCH V2] multiboot2: Implement the new module_relocatable_tag

2020-04-24 Thread Zide Chen
control the modules load addresses, which is independent to whether the kernel relocatable tag is present or not. V2: declare size as grub_ssize_t to resolve Werror=sign-compare compiling issue. Signed-off-by: Zide Chen --- grub-core/loader/multiboot.c | 26 ++ grub-core

[PATCH] multiboot2: Implement the new module_relocatable_tag

2020-04-16 Thread Zide Chen
control the modules load addresses, which is independent to whether the kernel relocatable tag is present or not. Signed-off-by: Zide Chen --- grub-core/loader/multiboot.c | 22 -- grub-core/loader/multiboot_mbi2.c | 23 +++ include/grub/multiboot2.h

[PATCH] multiboot2: Add module relocatable tag to support modules relocation

2020-04-16 Thread Zide Chen
Also change the name from "relocatable header tag" to "kernel relocatable tag" to make it less confusing. These two tags are independent from each other. Signed-off-by: Zide Chen --- doc/multiboot.texi | 51 +- doc/multiboot2.h

[PATCH V4] multiboot2: Implement quirk-modules-after-kernel

2020-04-07 Thread Zide Chen
on was 0x0. With this patch, the lowest module load address is set to 1MB even if this quirk is not enabled. Tested on KBL NUC loading ACRN Hypervisor. v3: update commit messages v4: don't round up lowest_addr for Multiboot2 Signed-off-by: Zide Chen --- grub-core/loader/i386/multiboot_mbi

[PATCH V3] multiboot2: Implement quirk-modules-after-kernel

2020-04-06 Thread Zide Chen
ate commit messages Signed-off-by: Zide Chen --- grub-core/loader/i386/multiboot_mbi.c | 1 - grub-core/loader/multiboot.c | 23 --- grub-core/loader/multiboot_elfxx.c| 7 --- grub-core/loader/multiboot_mbi2.c | 2 ++ include/grub/multiboot.h

[PATCH] multiboot2: enable quirk-modules-after-kernel

2020-04-03 Thread Zide Chen
ng code in multiboot_elfxx.c is able to calculate the highest_load for mutiboot2 already. At the end, the adjusted GRUB_MULTIBOOT(highest_load) is used as the lowest address to allocate memory for loading modules. Signed-off-by: Zide Chen --- grub-core/loader/i386/multiboot_mbi.c | 1 - grub-core/loader/m

[PATCH] multiboot2: enable quirk-modules-after-kernel

2020-03-26 Thread Zide Chen
In multiboot2, currently there is no way to control where to load the modules. In case of user wants to reserve low address for specific usage, this quirk is useful. Signed-off-by: Zide Chen --- grub-core/loader/i386/multiboot_mbi.c | 1 - grub-core/loader/multiboot.c | 23