x86/efi: properly handle 0 in pixel reserved bitmask
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Thu, 10 Oct 2019 14:50:50 +0000 (16:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Oct 2019 14:50:50 +0000 (16:50 +0200)
commit521a1445510a30873aec471194045e7f4b5e8d75
tree2b0b3ef4ce2eb9367bd522002cce5e75556ff264
parent90dd445b95afc0b795ba4dc694c22b3a8a6c4d1f
x86/efi: properly handle 0 in pixel reserved bitmask

In some graphics modes firmware is allowed to return 0 in pixel reserved
bitmask which doesn't go against UEFI Spec 2.8 (12.9 Graphics Output Protocol).

Without this change non-TrueColor modes won't work which will cause
GOP init to fail - observed while trying to boot EFI Xen with Cirrus VGA.

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/arch/x86/efi/efi-boot.h