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;
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
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