mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen: arm: Do not enable EFI in dom0 since it is not yet supported.
Since EFI is not yet supported in dom0, we need to remove the following properties from the chosen node: * linux,uefi-mmap-start * linux,uefi-mmap-size * linux,uefi-mmap-desc-size * linux,uefi-mmap-desc-ver These are added by "arch/arm/efi/efi-boot.h: fdt_add_uefi_nodes()", and used by dom0 kernel to enable EFI. Cc: Julien Grall <julien.grall@linaro.org> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Roy Franz <roy.franz@linaro.org> Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> Reviewed-by: Julien Grall <julien.grall@linaro.org> Reviewed-by: Roy Franz <roy.franz@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
254ddde379
commit
b095ec3d88
1 file changed
+10
-1
@@ -424,12 +424,21 @@ static int write_properties(struct domain *d, struct kernel_info *kinfo,
|
||||
* bootargs (from module #1, above).
|
||||
* * remove bootargs, xen,dom0-bootargs, xen,xen-bootargs,
|
||||
* linux,initrd-start and linux,initrd-end.
|
||||
* * remove bootargs, linux,uefi-system-table,
|
||||
* linux,uefi-mmap-start, linux,uefi-mmap-size,
|
||||
* linux,uefi-mmap-desc-size, and linux,uefi-mmap-desc-ver
|
||||
* (since EFI boot is not currently supported in dom0).
|
||||
*/
|
||||
if ( dt_node_path_is_equal(node, "/chosen") )
|
||||
{
|
||||
if ( dt_property_name_is_equal(prop, "xen,xen-bootargs") ||
|
||||
dt_property_name_is_equal(prop, "linux,initrd-start") ||
|
||||
dt_property_name_is_equal(prop, "linux,initrd-end") )
|
||||
dt_property_name_is_equal(prop, "linux,initrd-end") ||
|
||||
dt_property_name_is_equal(prop, "linux,uefi-system-table") ||
|
||||
dt_property_name_is_equal(prop, "linux,uefi-mmap-start") ||
|
||||
dt_property_name_is_equal(prop, "linux,uefi-mmap-size") ||
|
||||
dt_property_name_is_equal(prop, "linux,uefi-mmap-desc-size") ||
|
||||
dt_property_name_is_equal(prop, "linux,uefi-mmap-desc-ver"))
|
||||
continue;
|
||||
|
||||
if ( dt_property_name_is_equal(prop, "xen,dom0-bootargs") )
|
||||
|
||||