Skip to contentSkip to conversation

xen: arm: Do not enable EFI in dom0 since it is not yet supported.

PATCH Applied [email protected] 4 participants 14 messages Oct 13, 2014 – Oct 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: arm: Do not enable EFI in dom0 since it is not yet supported.

From: Suravee Suthikulpanit <[email protected]>

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 <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Roy Franz <[email protected]>
---
 xen/arch/arm/domain_build.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
xen/arch/arm/domain_build.c +10 -1
index 90abc3a..f1d0d20 100644
@@ -423,12 +423,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") )
Signature · 1 line
1.9.3
Reviewed-by on v1 1/1
#1 lore raw

(CC vijay)

Hi Suravee,

Quoted 10 lines · On 10/13/2014 05:17 PM, [email protected] wrote:

From: Suravee Suthikulpanit <[email protected]>

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

Quoted 8 lines

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 <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Roy Franz <[email protected]>

Regards,

Quoted 32 lines
---
 xen/arch/arm/domain_build.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
xen/arch/arm/domain_build.c +10 -1
index 90abc3a..f1d0d20 100644
@@ -423,12 +423,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") )
Signature · 1 line
Julien Grall
Reviewed-by
#2 lore raw
Quoted 18 lines · Julien Grall

(CC vijay)

Hi Suravee,

Quoted 13 lines · On 10/13/2014 05:17 PM, [email protected] wrote:

From: Suravee Suthikulpanit <[email protected]>

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.

Quoted 7 lines
Quoted 5 lines
Cc Julien Grall <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Roy Franz <[email protected]>
Quoted 38 lines

Regards,

Quoted 22 lines
---
 xen/arch/arm/domain_build.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
xen/arch/arm/domain_build.c +4 -0
index 90abc3a..f1d0d20 100644
@@ -423,12 +423,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") ||

xen/arch/arm/domain_build.c static int write_properties(struct domain *d, struct kernel_info *kinfo, · line 443

Quoted 10 lines
xen/arch/arm/domain_build.c +6 -1
-                 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") )

--
Julien Grall

Acked-by
#3 lore raw
Quoted 25 lines · Roy Franz
Quoted 24 lines · Julien Grall

(CC vijay)

Hi Suravee,

Quoted 18 lines · On 10/13/2014 05:17 PM, [email protected] wrote:

From: Suravee Suthikulpanit <[email protected]>

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 <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Roy Franz <[email protected]>
Quoted 3 lines
Quoted 1 line

But I do wonder why we don't just drop the hos /chosen node -- I think everything which should be in there is fabricated by the h/visor anyway.

Ian.

Applied
#4 lore raw
Quoted 26 lines · Ian Campbell
Quoted 25 lines · Roy Franz
Quoted 24 lines · Julien Grall

(CC vijay)

Hi Suravee,

Quoted 18 lines · On 10/13/2014 05:17 PM, [email protected] wrote:

From: Suravee Suthikulpanit <[email protected]>

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 <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Roy Franz <[email protected]>
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Applied.

#5 lore raw
In reply to Ian Campbell

Hi Ian,

Quoted 26 lines · Ian Campbell
Quoted 25 lines · Roy Franz
Quoted 24 lines · Julien Grall

(CC vijay)

Hi Suravee,

Quoted 18 lines · On 10/13/2014 05:17 PM, [email protected] wrote:

From: Suravee Suthikulpanit <[email protected]>

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 <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Roy Franz <[email protected]>
Quoted 8 lines
Quoted 3 lines
Quoted 1 line

But I do wonder why we don't just drop the hos /chosen node -- I think everything which should be in there is fabricated by the h/visor anyway.

I though about the same things yesterday, but the /chosen node may contain other properties (such as OS specific) that we may need to pass to DOM0.

So a blacklist looks the better solution for now.

Regards,

Signature · 1 line
Julien Grall
#6 lore raw
Quoted 33 lines · Julien Grall

Hi Ian,

Quoted 30 lines · Ian Campbell
Quoted 28 lines · Roy Franz
Quoted 18 lines · Julien Grall

(CC vijay)

Hi Suravee,

Quoted 13 lines · On 10/13/2014 05:17 PM, [email protected] wrote:

From: Suravee Suthikulpanit <[email protected]>

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.

Quoted 7 lines
Quoted 5 lines
Cc Julien Grall <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Roy Franz <[email protected]>
Quoted 8 lines
Quoted 4 lines

But I do wonder why we don't just drop the hos /chosen node -- I think everything which should be in there is fabricated by the h/visor anyway.

I though about the same things yesterday, but the /chosen node may contain other properties (such as OS specific) that we may need to pass to DOM0.

What sort of thing are you thinking of here?

Quoted 5 lines

So a blacklist looks the better solution for now.

Regards,

#7 lore raw
Quoted 36 lines · Ian Campbell
Quoted 35 lines · Julien Grall

Hi Ian,

Quoted 32 lines · Ian Campbell
Quoted 25 lines · Roy Franz
Quoted 24 lines · Julien Grall

(CC vijay)

Hi Suravee,

Quoted 18 lines · On 10/13/2014 05:17 PM, [email protected] wrote:

From: Suravee Suthikulpanit <[email protected]>

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 <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Roy Franz <[email protected]>
Quoted 3 lines
Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

But I do wonder why we don't just drop the hos /chosen node -- I think everything which should be in there is fabricated by the h/visor anyway.

I though about the same things yesterday, but the /chosen node may contain other properties (such as OS specific) that we may need to pass to DOM0.

What sort of thing are you thinking of here?

FreeBSD provides two properties (stdin and stdout) to choose the input and the output methods.

Those properties need to be copied in DOM0 DT to allow the user chose which console he wants to use (think about a platform with 2 serial ports).

Regards,

Signature · 1 line
Julien Grall
#8 lore raw
Quoted 44 lines · Julien Grall
Quoted 43 lines · Ian Campbell
Quoted 41 lines · Julien Grall

Hi Ian,

Quoted 26 lines · Ian Campbell
Quoted 25 lines · Roy Franz
Quoted 24 lines · Julien Grall

(CC vijay)

Hi Suravee,

Quoted 18 lines · On 10/13/2014 05:17 PM, [email protected] wrote:

From: Suravee Suthikulpanit <[email protected]>

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 <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Roy Franz <[email protected]>
Quoted 8 lines
Quoted 3 lines
Quoted 1 line

But I do wonder why we don't just drop the hos /chosen node -- I think everything which should be in there is fabricated by the h/visor anyway.

I though about the same things yesterday, but the /chosen node may contain other properties (such as OS specific) that we may need to pass to DOM0.

Quoted 7 lines
Quoted 1 line

What sort of thing are you thinking of here?

FreeBSD provides two properties (stdin and stdout) to choose the input and the output methods.

Those properties need to be copied in DOM0 DT to allow the user chose which console he wants to use (think about a platform with 2 serial ports).

How do you know whether stdin/stdout were intended to apply to dom0 or Xen?

What if dom0 wants to use hvc0? How is that expressed?

It seems to me that if bootargs is being consumed by Xen then stdin/stdout ought to be consumed by Xen for consistency.

Which points to special handling for stdin/stdout in Xen, i.e. a continuation of the whitelisting approach.

Ian.

#9 lore raw
Quoted 47 lines · Ian Campbell
Quoted 46 lines · Julien Grall
Quoted 44 lines · Ian Campbell
Quoted 33 lines · Julien Grall

Hi Ian,

Quoted 30 lines · Ian Campbell
Quoted 28 lines · Roy Franz
Quoted 18 lines · Julien Grall

(CC vijay)

Hi Suravee,

Quoted 13 lines · On 10/13/2014 05:17 PM, [email protected] wrote:

From: Suravee Suthikulpanit <[email protected]>

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.

Quoted 7 lines
Quoted 5 lines
Cc Julien Grall <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Roy Franz <[email protected]>
Quoted 8 lines
Quoted 4 lines

But I do wonder why we don't just drop the hos /chosen node -- I think everything which should be in there is fabricated by the h/visor anyway.

I though about the same things yesterday, but the /chosen node may contain other properties (such as OS specific) that we may need to pass to DOM0.

What sort of thing are you thinking of here?

Quoted 8 lines
Quoted 5 lines

FreeBSD provides two properties (stdin and stdout) to choose the input and the output methods.

Those properties need to be copied in DOM0 DT to allow the user chose which console he wants to use (think about a platform with 2 serial ports).

How do you know whether stdin/stdout were intended to apply to dom0 or Xen?

We specify the console for Xen via the Xen command line.

Quoted 1 line

What if dom0 wants to use hvc0? How is that expressed?

For now it has the priority against anything else. But in ideal world, the HVC console should be describe in a device node add by Xen.

Quoted 2 lines

It seems to me that if bootargs is being consumed by Xen then stdin/stdout ought to be consumed by Xen for consistency.

stdin/stdout is part of FreeBSD command line. If we use those properties, why don't we parse Linux command line to get the console?

Quoted 2 lines

Which points to special handling for stdin/stdout in Xen, i.e. a continuation of the whitelisting approach.

And how do you chose the console for DOM0? For Linux we have to use console=hvc0 on the command line. FreeBSD choose to use stdin/stdout.

Regards,

Signature · 1 line
Julien Grall
#10 lore raw
Quoted 61 lines · Julien Grall
Quoted 47 lines · Ian Campbell
Quoted 46 lines · Julien Grall
Quoted 44 lines · Ian Campbell
Quoted 33 lines · Julien Grall

Hi Ian,

Quoted 30 lines · Ian Campbell
Quoted 28 lines · Roy Franz
Quoted 18 lines · Julien Grall

(CC vijay)

Hi Suravee,

Quoted 13 lines · On 10/13/2014 05:17 PM, [email protected] wrote:

From: Suravee Suthikulpanit <[email protected]>

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.

Quoted 7 lines
Quoted 5 lines
Cc Julien Grall <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Roy Franz <[email protected]>
Quoted 8 lines
Quoted 4 lines

But I do wonder why we don't just drop the hos /chosen node -- I think everything which should be in there is fabricated by the h/visor anyway.

I though about the same things yesterday, but the /chosen node may contain other properties (such as OS specific) that we may need to pass to DOM0.

What sort of thing are you thinking of here?

Quoted 8 lines
Quoted 5 lines

FreeBSD provides two properties (stdin and stdout) to choose the input and the output methods.

Those properties need to be copied in DOM0 DT to allow the user chose which console he wants to use (think about a platform with 2 serial ports).

How do you know whether stdin/stdout were intended to apply to dom0 or Xen?

We specify the console for Xen via the Xen command line.

Quoted 1 line

What if dom0 wants to use hvc0? How is that expressed?

Quoted 9 lines

For now it has the priority against anything else. But in ideal world, the HVC console should be describe in a device node add by Xen.

Quoted 2 lines

It seems to me that if bootargs is being consumed by Xen then stdin/stdout ought to be consumed by Xen for consistency.

stdin/stdout is part of FreeBSD command line. If we use those properties, why don't we parse Linux command line to get the console?

OK. I'm confused. I was talking about device-tree properties under /chosen so I thought you were saying that stdin/stdout were such things. If they are part of the bsd command line (i.e. part of xen,dom0-bootargs or similar) then there is no problem -- we pass them through just like we do today.

Quoted 5 lines
Quoted 2 lines

Which points to special handling for stdin/stdout in Xen, i.e. a continuation of the whitelisting approach.

And how do you chose the console for DOM0? For Linux we have to use console=hvc0 on the command line. FreeBSD choose to use stdin/stdout.

Are you now saying that they aren't in the FreeBSD command line but are properties?

If you are saying that they are dt properties then stdin/stdout should be handled just like bootargs IMHO, not simply happen to work due to a partial blacklist

Ian.

#11 lore raw
Quoted 94 lines · Ian Campbell
Quoted 72 lines · Julien Grall
Quoted 56 lines · Ian Campbell
Quoted 55 lines · Julien Grall
Quoted 45 lines · Ian Campbell
Quoted 44 lines · Julien Grall

Hi Ian,

Quoted 40 lines · Ian Campbell
Quoted 30 lines · Roy Franz
Quoted 28 lines · Julien Grall

(CC vijay)

Hi Suravee,

Quoted 21 lines · On 10/13/2014 05:17 PM, [email protected] wrote:

From: Suravee Suthikulpanit
<[email protected]>

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 <[email protected]> Cc:
Stefano Stabellini <[email protected]> Cc: Ian Campbell <[email protected]> Cc: Roy Franz <[email protected]> Signed-off-by: Suravee Suthikulpanit <[email protected]>

Quoted 3 lines
Quoted 1 line

But I do wonder why we don't just drop the hos /chosen node -- I think everything which should be in there is fabricated by the h/visor anyway.

Quoted 5 lines
Quoted 3 lines

I though about the same things yesterday, but the /chosen node may contain other properties (such as OS specific) that we may need to pass to DOM0.

What sort of thing are you thinking of here?

FreeBSD provides two properties (stdin and stdout) to choose the input and the output methods.

Quoted 6 lines
Quoted 3 lines

Those properties need to be copied in DOM0 DT to allow the user chose which console he wants to use (think about a platform with 2 serial ports).

How do you know whether stdin/stdout were intended to apply to dom0 or Xen?

We specify the console for Xen via the Xen command line.

Quoted 1 line

What if dom0 wants to use hvc0? How is that expressed?

For now it has the priority against anything else. But in ideal world, the HVC console should be describe in a device node add by Xen.

Quoted 7 lines
Quoted 2 lines

It seems to me that if bootargs is being consumed by Xen then stdin/stdout ought to be consumed by Xen for consistency.

stdin/stdout is part of FreeBSD command line. If we use those properties, why don't we parse Linux command line to get the console?

OK. I'm confused. I was talking about device-tree properties under /chosen so I thought you were saying that stdin/stdout were such things. If they are part of the bsd command line (i.e. part of xen,dom0-bootargs or similar) then there is no problem -- we pass them through just like we do today.

Quoted 6 lines
Quoted 2 lines

Which points to special handling for stdin/stdout in Xen, i.e. a continuation of the whitelisting approach.

And how do you chose the console for DOM0? For Linux we have to use console=hvc0 on the command line. FreeBSD choose to use stdin/stdout.

Quoted 6 lines

Are you now saying that they aren't in the FreeBSD command line but are properties?

If you are saying that they are dt properties then stdin/stdout should be handled just like bootargs IMHO, not simply happen to work due to a partial blacklist

Yes they are properties of the device tree. We can't really interpret in Xen because they are only meaningful for FreeBSD.

On Linux, the console is chosen via the command line. It happens that we need to clearly specify "hvc" on it to be able to use the Xen console.

As said earlier, if we consume in Xen how do you choose the console for FreeBSD? Those properties can be considered as the part of the FreeBSD "command line".

Anyway, the stdin/stdout properties may not be the best examples. Grepping the Documentation in Linux I have found those properties which live in /chosen:
- linux,pci-probe-only
- linux,sysrq-reset-seq (actually it's a node)

The blacklist way is the best solution to make sure any newer kernel will work (most of the time) out of box on Linux.

Regards,

Signature · 1 line
Julien Grall
#12 lore raw
Quoted 3 lines · Julien Grall

As said earlier, if we consume in Xen how do you choose the console for FreeBSD? Those properties can be considered as the part of the FreeBSD "command line".

Like we do for bootargs, so with xen,dom0-stdin etc.

The ePAPR changelog mentions removing stdin, so I'm not sure it has always been FreeBSD specific. I know that u-boot can also use it (that is in the case where u-boot itself is configured with an fdt).

Quoted 5 lines

Anyway, the stdin/stdout properties may not be the best examples. Grepping the Documentation in Linux I have found those properties which live in /chosen:
- linux,pci-probe-only
- linux,sysrq-reset-seq (actually it's a node)

Do those make any sense when running under Xen? would we want to blindly expose them? I'm not sure.

Ian.

#13 lore raw
Quoted 11 lines · Ian Campbell
Quoted 3 lines · Julien Grall

As said earlier, if we consume in Xen how do you choose the console for FreeBSD? Those properties can be considered as the part of the FreeBSD "command line".

Like we do for bootargs, so with xen,dom0-stdin etc.

The ePAPR changelog mentions removing stdin, so I'm not sure it has always been FreeBSD specific. I know that u-boot can also use it (that is in the case where u-boot itself is configured with an fdt).

Quoted 8 lines
Quoted 5 lines

Anyway, the stdin/stdout properties may not be the best examples. Grepping the Documentation in Linux I have found those properties which live in /chosen:
- linux,pci-probe-only
- linux,sysrq-reset-seq (actually it's a node)

Do those make any sense when running under Xen? would we want to blindly expose them? I'm not sure.

For the former one, we may want to modify it if we decide to initialize PCI devices in Xen.

For the latter, I think we need to copy as it is in Linux. This properties seems to be used to have a set of keys to reset Linux.

Regards,

Signature · 1 line
Julien Grall