Re: [PATCH v2 3/4] mini-os: fix number of pages for PVH

2022-06-21 Thread Juergen Gross
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 t

Re: [PATCH v2 3/4] mini-os: fix number of pages for PVH

2022-06-20 Thread Samuel Thibault
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

[PATCH v2 3/4] mini-os: fix number of pages for PVH

2022-06-18 Thread Juergen Gross
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 num