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

2021-12-13 Thread Juergen Gross
On 13.12.21 22:19, Samuel Thibault wrote: Juergen Gross, le lun. 13 déc. 2021 15:56:21 +0100, a ecrit: On 12.12.21 01:05, Samuel Thibault wrote: Hello, Juergen Gross, le lun. 06 déc. 2021 08:23:29 +0100, a ecrit: - align the entries to page boundaries +/* Adjust map entries to page bou

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

2021-12-13 Thread Samuel Thibault
Juergen Gross, le lun. 13 déc. 2021 15:56:21 +0100, a ecrit: > On 12.12.21 01:05, Samuel Thibault wrote: > > Hello, > > > > Juergen Gross, le lun. 06 déc. 2021 08:23:29 +0100, a ecrit: > > > - align the entries to page boundaries > > > > > +/* Adjust map entries to page boundaries. */ > > > +

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

2021-12-13 Thread Juergen Gross
On 12.12.21 01:05, Samuel Thibault wrote: Hello, Juergen Gross, le lun. 06 déc. 2021 08:23:29 +0100, a ecrit: - align the entries to page boundaries +/* Adjust map entries to page boundaries. */ +for ( i = 0; i < e820_entries; i++ ) +{ +end = (e820_map[i].addr + e820_map[

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

2021-12-11 Thread Samuel Thibault
Hello, Juergen Gross, le lun. 06 déc. 2021 08:23:29 +0100, a ecrit: > - align the entries to page boundaries > +/* Adjust map entries to page boundaries. */ > +for ( i = 0; i < e820_entries; i++ ) > +{ > +end = (e820_map[i].addr + e820_map[i].size + PAGE_SIZE - 1) & > PAGE_MA

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

2021-12-05 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 --- e820.c | 56 ++