Re: [PATCH 06/10] mini-os: add memory map service functions

2021-12-11 Thread Samuel Thibault
Juergen Gross, le lun. 06 déc. 2021 08:23:33 +0100, a ecrit: > +void e820_put_reserved_pfns(unsigned long start_pfn, int pages) > +{ > +int i; > +unsigned long addr = start_pfn << PAGE_SHIFT; > +unsigned long size = (long)pages << PAGE_SHIFT; > + > +for ( i = 0; i < e820_entries &&

[PATCH 06/10] mini-os: add memory map service functions

2021-12-05 Thread Juergen Gross
Add two functions for adding reserved areas to the memory map and for removing them again. Those will be needed for proper grant table/mapping support in PVH mode. Signed-off-by: Juergen Gross --- e820.c | 72 ++ include/e820.h | 4 +++ 2