On 21.12.21 00:17, Samuel Thibault wrote:
Juergen Gross, le lun. 20 déc. 2021 17:07:08 +0100, a ecrit:
+static void e820_sanitize(void)
+{
+int i;
+unsigned long end, start;
+
+/* Sanitize memory map in current form. */
+e820_process_entries();
+
+/* Adjust map entries to pag
Juergen Gross, le lun. 20 déc. 2021 17:07:08 +0100, a ecrit:
> +static void e820_sanitize(void)
> +{
> +int i;
> +unsigned long end, start;
> +
> +/* Sanitize memory map in current form. */
> +e820_process_entries();
> +
> +/* Adjust map entries to page boundaries. */
> +for
Do some processing of the E820 memory map obtained from the hypervisor:
- align the entries to page boundaries
- sort the entries by their start address
- merge adjacent entries of same type
This is relevant for PVH mode only.
Signed-off-by: Juergen Gross
---
V2:
- correct page boundary roundin