EFI: free unused boot mem in at least some cases
authorJan Beulich <jbeulich@suse.com>
Tue, 20 Oct 2020 06:52:53 +0000 (08:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Oct 2020 06:52:53 +0000 (08:52 +0200)
commit25467bb5d121735af4969834a62bca752a7bfe10
tree188c20e62e04542411bd7c1166cb2cc60232b098
parent0dfddb2116e3757f77a691a3fe335173088d69dc
EFI: free unused boot mem in at least some cases

Address at least the primary reason why 52bba67f8b87 ("efi/boot: Don't
free ebmalloc area at all") was put in place: Make xen_in_range() aware
of the freed range. This is in particular relevant for EFI-enabled
builds not actually running on EFI, as the entire range will be unused
in this case.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/efi/stub.c
xen/arch/x86/setup.c
xen/arch/x86/tboot.c
xen/common/efi/ebmalloc.c
xen/include/xen/efi.h