Re: [PATCH v2 02/10] mini-os: sort and sanitize e820 memory map

2021-12-20 Thread Juergen Gross
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

Re: [PATCH v2 02/10] mini-os: sort and sanitize e820 memory map

2021-12-20 Thread Samuel Thibault
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

[PATCH v2 02/10] mini-os: sort and sanitize e820 memory map

2021-12-20 Thread Juergen Gross
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