]> git.baikalelectronics.ru Git - kernel.git/commit
Xen: EFI: Parse DT parameters for Xen specific UEFI
authorShannon Zhao <shannon.zhao@linaro.org>
Thu, 12 May 2016 12:19:54 +0000 (20:19 +0800)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 6 Jul 2016 09:34:47 +0000 (10:34 +0100)
commit5ff4d26bc6d1127c507e87317a21fa4b18b3bc13
tree2782afbb0fd9f861df6d0af6aa3d1f9481145708
parent6c8645cc3330aaf12bc7ee2ec090980999ec609a
Xen: EFI: Parse DT parameters for Xen specific UEFI

The EFI DT parameters for bare metal are located under /chosen node,
while for Xen Dom0 they are located under /hyperviosr/uefi node. These
parameters under /chosen and /hyperviosr/uefi are not expected to appear
at the same time.

Parse these EFI parameters and initialize EFI like the way for bare
metal except the runtime services because the runtime services for Xen
Dom0 are available through hypercalls and they are always enabled. So it
sets the EFI_RUNTIME_SERVICES flag if it finds /hyperviosr/uefi node and
bails out in arm_enable_runtime_services() when EFI_RUNTIME_SERVICES
flag is set already.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
arch/arm/xen/enlighten.c
drivers/firmware/efi/arm-runtime.c
drivers/firmware/efi/efi.c