Re: [PATCH 04/10] mini-os: respect memory map when ballooning up

2021-12-13 Thread Juergen Gross
On 12.12.21 01:26, Samuel Thibault wrote: Juergen Gross, le lun. 06 déc. 2021 08:23:31 +0100, a ecrit: @@ -81,8 +93,11 @@ int balloon_up(unsigned long n_pages) if ( n_pages > N_BALLOON_FRAMES ) n_pages = N_BALLOON_FRAMES; +start_pfn = e820_get_maxpfn(nr_mem_pages + 1) - 1;

Re: [PATCH 04/10] mini-os: respect memory map when ballooning up

2021-12-11 Thread Samuel Thibault
Juergen Gross, le lun. 06 déc. 2021 08:23:31 +0100, a ecrit: > @@ -81,8 +93,11 @@ int balloon_up(unsigned long n_pages) > if ( n_pages > N_BALLOON_FRAMES ) > n_pages = N_BALLOON_FRAMES; > > +start_pfn = e820_get_maxpfn(nr_mem_pages + 1) - 1; > +n_pages = e820_get_max_pages(s

[PATCH 04/10] mini-os: respect memory map when ballooning up

2021-12-05 Thread Juergen Gross
Today Mini-OS won't look at the memory map when ballooning up. This can result in problems for PVH domains with more than 4 GB of RAM, as ballooning will happily run into the ACPI area. Fix that by adding only pages being marked as RAM in the memory map and by distinguishing between the current nu