]> xenbits.xensource.com Git - people/andrewcoop/mini-os.git/commit
mini-os: respect memory map when ballooning up
authorJuergen Gross <jgross@suse.com>
Tue, 21 Dec 2021 08:46:30 +0000 (09:46 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 21 Dec 2021 10:53:49 +0000 (10:53 +0000)
commit4fbd7b94482f1b254e6b05625fe5f2758a9fe84f
tree71846ff96942ef3f939010307196c8cb64847905
parente754e3fae198480789fe6d949087e6580f4f614b
mini-os: respect memory map when ballooning up

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 number of RAM pages and the first
unallocated page.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
arch/arm/mm.c
arch/x86/balloon.c
arch/x86/mm.c
balloon.c
e820.c
include/balloon.h
include/e820.h
mm.c