efi/boot: make sure graphics mode is set while booting through MB2
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Thu, 10 Oct 2019 08:58:45 +0000 (10:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Oct 2019 08:58:45 +0000 (10:58 +0200)
commitaf9f357fb8dbceb9c5dd1c5cb8b4e198f6149456
tree079d91ad331d8a0f8e39772ff68ec078059d4a0d
parent17f3029da4048a2a77c8a0a5c1995a1edd0bb8e9
efi/boot: make sure graphics mode is set while booting through MB2

If a bootloader is using native driver instead of EFI GOP it might
reset graphics mode to be different from what has been originally set
by firmware. While booting through MB2 Xen either need to parse video
setting passed by MB2 and use them instead of what GOP reports or
reset the mode to synchronise it with firmware - prefer the latter.

Observed while booting Xen using MB2 with EFI GRUB2 compiled with
all possible video drivers where native drivers take priority over firmware.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/common/efi/boot.c