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, 16 Dec 2021 22:43:34 +0000 (14:43 -0800)
commitf3999bc2e099c571e4583bff8f494b834b2f5f76
treef4711ba5105b0a9e7d9602bd8dbe6b6c1e3e396b
parentf1f38e26c3669f5e4583c3756f213c167d19651a
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>
docs/misc/efi.pandoc
xen/arch/arm/efi/efi-boot.h