|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 3/4] mini-os: fix number of pages for PVH
On 21.06.22 00:43, Samuel Thibault wrote: Juergen Gross, le dim. 19 juin 2022 08:52:52 +0200, a ecrit:When getting the current allocation from Xen, this value includes the pages allocated in the MMIO area. Fix the highest available RAM page by subtracting the size of that area. This requires to read the E820 map before needing this value. Add two functions returning the current and the maximum number of RAM pages taking this correction into account. At the same time add the LAPIC page to the memory map in order to avoid reusing that PFN for internal purposes. Signed-off-by: Juergen Gross <jgross@xxxxxxxx> --- V2: - make e820_initial_reserved_pfns static (Samuel Thibault) - add e820_get_current_pages() and e820_get_max_pages() --- I don't think it matters that much (currently Mini-OS can't support more than 512GiB of memory), but I can change the functions to unsigned long. Apart from that, Reviewed-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> Thanks, Juergen Attachment:
OpenPGP_0xB0DE9DD628BF132F.asc Attachment:
OpenPGP_signature
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |