[PATCH v3] x86: Prioritize low memory size from Multiboot

2022-02-10 Thread Tu Dinh Ngoc
to the old BDA method. Signed-off-by: Tu Dinh Ngoc --- Changes in v3: - Prioritize using Multiboot's memory information.. Fall back to using BDA in case MBI does not supply memory info. Changes in v2: - Detect if Multiboot claims there's more than 640 KB of low memory (happens with

[PATCH v2] x86: Use low memory size directly from Multiboot

2022-02-09 Thread Tu Dinh Ngoc
Previously, Xen used information from the BDA to detect the amount of available low memory. This does not work on some scenarios such as Coreboot, or when booting from Kexec on a UEFI system without CSM. Use the information directly supplied by Multiboot boot information instead. --- xen/arch/x86

[PATCH 0/2] x86: Use Multiboot framebuffer

2022-02-09 Thread Tu Dinh Ngoc
Xen does not currently use the Multiboot framebuffer. This means there is no graphics when booting Xen with Kexec. This patchset parses and uses the Multiboot framebuffer information during boot. Tu Dinh Ngoc (2): x86: Parse Multiboot2 framebuffer information x86: Set up framebuffer given by

[PATCH 2/2] x86: Set up framebuffer given by Multiboot2

2022-02-09 Thread Tu Dinh Ngoc
Previously, we do not make use of the framebuffer given by Multiboot. This means graphics will not work in some scenarios such as booting from Kexec. Enable the Multiboot framebuffer if it exists and not overridden by EFI probe. --- xen/arch/x86/setup.c | 45 ++

[PATCH 1/2] x86: Parse Multiboot2 framebuffer information

2022-02-09 Thread Tu Dinh Ngoc
Multiboot2 exposes framebuffer data in its boot information tags. Xen requests this information from the bootloader, but does not make use of it. Parse this information for later use. --- xen/arch/x86/boot/reloc.c| 22 ++ xen/include/xen/multiboot.h | 17 +