arm/efi: Handle Xen bootargs from both xen.cfg and DT
authorLuca Fancellu <luca.fancellu@arm.com>
Mon, 13 Dec 2021 11:48:54 +0000 (11:48 +0000)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Thu, 10 Mar 2022 17:41:53 +0000 (09:41 -0800)
commitcfd29b83a26f35f49f074f06169ce4cadfdebf0d
treee34b476c9fcb3ea0f0ec30cd0c3344ef96deef58
parent81e6eabbfeab554db192ae6f0d1de8179daab2f0
arm/efi: Handle Xen bootargs from both xen.cfg and DT

Currently the Xen UEFI stub can accept Xen boot arguments from
the Xen configuration file using the "options=" keyword, but also
directly from the device tree specifying xen,xen-bootargs
property.

When the configuration file is used, device tree boot arguments
are ignored and overwritten even if the keyword "options=" is
not used.

This patch handle this case, so if the Xen configuration file is not
specifying boot arguments, the device tree boot arguments will be
used, if they are present.

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
(cherry picked from commit f3999bc2e099c571e4583bff8f494b834b2f5f76)
docs/misc/efi.pandoc
xen/arch/arm/efi/efi-boot.h