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
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. */
> > > +
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[
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
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 ++