]> xenbits.xensource.com Git - people/royger/xen.git/commit
EFI: free unused boot mem in at least some cases
authorJan Beulich <jbeulich@suse.com>
Tue, 15 Sep 2020 08:20:37 +0000 (10:20 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Sep 2020 08:20:37 +0000 (10:20 +0200)
commita4cbe0f3b47656ea125922fd48d394731a0163fd
treead38751b26d838a4e3f2a41e61f84026698189bf
parentb807cfe954b8d0d8852398b4c8a586d95d69a342
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