EFI: add EFI_LOAD_OPTION support
authorTamas K Lengyel <tamas@tklengyel.com>
Thu, 5 Jul 2018 13:29:44 +0000 (15:29 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 5 Jul 2018 13:29:44 +0000 (15:29 +0200)
commit5280eeef4e5481bfbd0ccda96e8ab624f91a023a
treecc38dc3e589770f7f93b6dd69a97c2b066aff7b5
parentf7c587fa1341b59f4ff654bd7e55e162f3513130
EFI: add EFI_LOAD_OPTION support

When booting Xen via UEFI the Xen config file can contain multiple
sections each describing different boot options. It is currently only
possible to choose which section to boot with if the buffer contains a
string. UEFI provides a different standard to pass optional arguments
to an application, and in this patch we make Xen properly parse this
buffer, thus making it possible to have separate EFI boot options
present for the different config sections.

Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/efi/boot.c