Skip to contentSkip to conversation

xen: Allow a default compiled-in command line using Kconfig

PATCH Superseded Zhongze Liu 4 participants 16 messages Mar 7, 2017 – Mar 8, 2017

v3 of 9 Superseded Latest is v9 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 xen: Allow a default compiled-in command line using Kconfig

Added 3 new config entries in common/Kconfig:
CMDLINE_BOOL, CMDLINE and CMDLINE_OVERRIDE

These 3 entries enable an embedded command line
to be compiled in the hypervisor.

If CMDLINE_BOOL is set to y, both arm and x86 startup routines will append the bootloader command line to the built-in one, forming the complete command line. This order of concatenation implies that if any options are set in both the built-in and bootloader command line, only the ones in the latter will take effect. And if CMDLINE_OVERRIDE is set to y, the whole bootloader command line will be ignored, which will be useful to work around broken bootloaders.

This allows downstreams to set their defaults without modifying the source code all over the place. Also probably useful for the embedded space.

See Also: https://xenproject.atlassian.net/browse/XEN-41

---
Changed since v2:
* Clarify the parsing order (and thus the overiding behavior) of the two commandlines when parsing.
* Shortened the XEN-41 issue url in the commit message.
* Wrap the related work into a #ifdef CONFIG_CMDLINE_BOOL block in various setup.c's.

---
 xen/arch/arm/setup.c | 30 +++++++++++++++++--
 xen/arch/x86/setup.c | 84 ++++++++++++++++++++++++++++++++++++++++++++--------
 xen/common/Kconfig   | 40 +++++++++++++++++++++++++
 3 files changed, 139 insertions(+), 15 deletions(-)
xen/arch/arm/setup.c +28 -2
index 92a2de6b70..e6b8f4da34 100644
@@ -705,10 +705,16 @@ void __init start_xen(unsigned long boot_phys_offset,
     size_t fdt_size;
     int cpus, i;
     paddr_t xen_paddr;
-    const char *cmdline;
+    const char *cmdline, *boot_cmdline;
     struct bootmodule *xen_bootmodule;
     struct domain *dom0;
     struct xen_arch_domainconfig config;
+#ifdef CONFIG_CMDLINE_BOOL
+    static xen_commandline_t __initdata builtin_cmdline = CONFIG_CMDLINE;
+#ifndef CONFIG_CMDLINE_OVERRIDE
+    static xen_commandline_t __initdata complete_cmdline = "";
+#endif /* CONFIG_CMDLINE_OVERRIDE */
+#endif /* CONFIG_CMDLINE_BOOL */
 
     setup_cache();
 
@@ -729,7 +735,27 @@ void __init start_xen(unsigned long boot_phys_offset,
         + (fdt_paddr & ((1 << SECOND_SHIFT) - 1));
     fdt_size = boot_fdt_info(device_tree_flattened, fdt_paddr);
 
-    cmdline = boot_fdt_cmdline(device_tree_flattened);
+    boot_cmdline = boot_fdt_cmdline(device_tree_flattened);
+    cmdline = boot_cmdline;
+
+#ifdef CONFIG_CMDLINE_BOOL
+    /* Process the built-in command line options. */
+
+    printk("Compiled-in command line: %s\n", builtin_cmdline);
+
+#ifdef CONFIG_CMDLINE_OVERRIDE
+    /* Ignore the bootloader cmdline. */
+    cmdline = builtin_cmdline;
+#else
+    safe_strcat(complete_cmdline, builtin_cmdline);
+    safe_strcat(complete_cmdline, " ");
+    safe_strcat(complete_cmdline, boot_cmdline);
+
+    cmdline = complete_cmdline;
+#endif /* CONFIG_CMDLINE_OVERRIDE */
+
+#endif /* CONFIG_CMDLINE_BOOL */
+
     printk("Command line: %s\n", cmdline);
     cmdline_parse(cmdline);
 
xen/arch/x86/setup.c +71 -13

101 lines not on this page · raw message

xen/common/Kconfig +40 -0
index f2ecbc43d6..544b8e7804 100644
@@ -237,4 +237,44 @@ config FAST_SYMBOL_LOOKUP
 	  The only user of this is Live patching.
 
 	  If unsure, say Y.
+
+config CMDLINE_BOOL
+	bool "Built-in hypervisor command line"
+	default n
+	---help---
+	  Allow for specifying boot arguments to the hypervisor at
+	  build time.  On some systems (e.g. embedded ones), it is
+	  necessary or convenient to provide some or all of the
+	  hypervisor boot arguments with the hypervisor itself (that is,
+	  to not rely on the bootloader to provide them.)
+
+	  To compile command line arguments into the hypervisor,
+	  set this option to 'Y', then fill in the
+	  boot arguments in CONFIG_CMDLINE.
+
+config CMDLINE
+	string "Built-in hypervisor command string"
+	depends on CMDLINE_BOOL
+	default ""
+	---help---
+	  Enter arguments here that should be compiled into the hypervisor
+	  image and used at boot time.  If the bootloader provides a
+	  command line at boot time, it is appended to this string to
+	  form the full hypervisor command line, when the system boots.
+	  So if the same command line option was set twice, only the latter
+	  (i.e. the one in the bootloader command line), will take effect.
+
+	  However, you can use the CONFIG_CMDLINE_OVERRIDE option to
+	  change this behavior.
+
+config CMDLINE_OVERRIDE
+	bool "Built-in command line overrides bootloader arguments"
+	default n
+	depends on CMDLINE_BOOL
+	---help---
+	  Set this option to 'Y' to have the hypervisor ignore the bootloader
+	  command line, and use ONLY the built-in command line.
+
+	  This is used to work around broken bootloaders. This should
+	  be set to 'N' under normal conditions.
 endmenu
Signature · 7 lines
2.12.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line · On 07.03.17 at 09:34, <[email protected]> wrote:

As an initial remark: Am I right in guessing that you manually prefix [Xen-devel] to your message subject? Please don't do so - receiving patches without that prefix serves as an indication to the receiver that (s)he is on the Cc list.

Quoted 5 lines
xen/arch/arm/setup.c +0 -0
@@ -705,10 +705,16 @@ void __init start_xen(unsigned long boot_phys_offset,
     size_t fdt_size;
     int cpus, i;

xen/arch/arm/setup.c void __init start_xen(unsigned long boot_phys_offset, · line 715

Quoted 10 lines
xen/arch/arm/setup.c +5 -1
     paddr_t xen_paddr;
-    const char *cmdline;
+    const char *cmdline, *boot_cmdline;
     struct bootmodule *xen_bootmodule;
     struct domain *dom0;
     struct xen_arch_domainconfig config;
+#ifdef CONFIG_CMDLINE_BOOL
+    static xen_commandline_t __initdata builtin_cmdline = CONFIG_CMDLINE;
+#ifndef CONFIG_CMDLINE_OVERRIDE
+    static xen_commandline_t __initdata complete_cmdline = "";

Pointless initializer.

xen/arch/arm/setup.c void __init start_xen(unsigned long boot_phys_offset, · line 717

Quoted 2 lines
xen/arch/arm/setup.c +2 -0
+#endif /* CONFIG_CMDLINE_OVERRIDE */
+#endif /* CONFIG_CMDLINE_BOOL */

I think this #ifdef-ary can be reduced, along the lines of Andrew's earlier suggestion. But my main complaint remains that this continues to be duplicated between ARM and x86.

Quoted 13 lines
xen/arch/x86/setup.c +7 -0
@@ -636,10 +636,41 @@ static char * __init cmdline_cook(char *p, const char *loader_name)
     return p;
 }
 
+/*
+ * Extracts dom0 options from the commandline.
+ *
+ * Options after ' -- ' separator belong to dom0.
+ *  1. Orphan dom0's options from Xen's command line.
+ *  2. Skip all but final leading space from dom0's options.
+ */

xen/arch/x86/setup.c static char * __init cmdline_cook(char *p, const char *loader_name) · line 655

Quoted 10 lines
xen/arch/x86/setup.c +10 -0
+
+static inline char* __init extract_dom0_options(char *cmdline)
+{
+    char *kextra;
+
+    if ( (kextra = strstr(cmdline, " -- ")) != NULL )
+    {
+        *kextra = '\0';
+        kextra += 3;
+        while ( kextra[1] == ' ' ) kextra++;

The body of the while() wants to go on its own line.

And then - why is this Dom0 option handling done only on x86?

xen/common/Kconfig config FAST_SYMBOL_LOOKUP · line 243

Quoted 10 lines
xen/common/Kconfig +4 -0
@@ -237,4 +237,44 @@ config FAST_SYMBOL_LOOKUP
 	  The only user of this is Live patching.
 
 	  If unsure, say Y.
+
+config CMDLINE_BOOL
+	bool "Built-in hypervisor command line"
+	default n

I don't think this line serves any purpose (also another time below).

Quoted 4 lines
xen/common/Kconfig +4 -0
+	---help---
+	  Allow for specifying boot arguments to the hypervisor at
+	  build time.  On some systems (e.g. embedded ones), it is
+	  necessary or convenient to provide some or all of the

xen/common/Kconfig config FAST_SYMBOL_LOOKUP · line 257

Quoted 10 lines
xen/common/Kconfig +10 -0
+	  hypervisor boot arguments with the hypervisor itself (that is,
+	  to not rely on the bootloader to provide them.)
+
+	  To compile command line arguments into the hypervisor,
+	  set this option to 'Y', then fill in the
+	  boot arguments in CONFIG_CMDLINE.
+
+config CMDLINE
+	string "Built-in hypervisor command string"
+	depends on CMDLINE_BOOL

Coming back to the #ifdef-ary remark earlier on - if instead of "depends on" you made the prompt conditional, CMDLINE would always be defined, i.e. you could use without #ifdef guards. Of course with that the question of the usefulness of CMDLINE_BOOL arises: Does this really serve a purpose?

xen/common/Kconfig config FAST_SYMBOL_LOOKUP · line 265

Quoted 8 lines
xen/common/Kconfig +8 -0
+	default ""
+	---help---
+	  Enter arguments here that should be compiled into the hypervisor
+	  image and used at boot time.  If the bootloader provides a
+	  command line at boot time, it is appended to this string to
+	  form the full hypervisor command line, when the system boots.
+	  So if the same command line option was set twice, only the latter
+	  (i.e. the one in the bootloader command line), will take effect.

... unless an option is cumulative (I don't think we have any such right now, but iirc Linux does, and so we should not exclude that we may gain such).

xen/common/Kconfig config FAST_SYMBOL_LOOKUP · line 279

Quoted 13 lines
xen/common/Kconfig +13 -0
+	  However, you can use the CONFIG_CMDLINE_OVERRIDE option to
+	  change this behavior.
+
+config CMDLINE_OVERRIDE
+	bool "Built-in command line overrides bootloader arguments"
+	default n
+	depends on CMDLINE_BOOL
+	---help---
+	  Set this option to 'Y' to have the hypervisor ignore the bootloader
+	  command line, and use ONLY the built-in command line.
+
+	  This is used to work around broken bootloaders. This should
+	  be set to 'N' under normal conditions.

I think this calls for an EXPERT dependency.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#2 lore raw

Thanks for your time reviewing my code.

2017-03-07 17:36 GMT+08:00 Jan Beulich <[email protected]>:

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line · On 07.03.17 at 09:34, <[email protected]> wrote:

As an initial remark: Am I right in guessing that you manually prefix [Xen-devel] to your message subject? Please don't do so - receiving patches without that prefix serves as an indication to the receiver that (s)he is on the Cc list.

yes, you're right. I thought this should be done manually, but It seems that I'm wrong.
I won't do that anymore.

Quoted 10 lines
Quoted 10 lines
xen/arch/arm/setup.c +1 -1
@@ -705,10 +705,16 @@ void __init start_xen(unsigned long boot_phys_offset,
     size_t fdt_size;
     int cpus, i;
     paddr_t xen_paddr;
-    const char *cmdline;
+    const char *cmdline, *boot_cmdline;
     struct bootmodule *xen_bootmodule;
Quoted 9 lines

xen/arch/arm/setup.c void __init start_xen(unsigned long boot_phys_offset, · line 715

Quoted 6 lines
xen/arch/arm/setup.c +4 -0
     struct domain *dom0;
     struct xen_arch_domainconfig config;
+#ifdef CONFIG_CMDLINE_BOOL
+    static xen_commandline_t __initdata builtin_cmdline = CONFIG_CMDLINE;
+#ifndef CONFIG_CMDLINE_OVERRIDE
+    static xen_commandline_t __initdata complete_cmdline = "";

Pointless initializer.

I'll remove this.

Quoted 8 lines

xen/arch/arm/setup.c void __init start_xen(unsigned long boot_phys_offset, · line 717

Quoted 3 lines
xen/arch/arm/setup.c +2 -0
+#endif /* CONFIG_CMDLINE_OVERRIDE */
+#endif /* CONFIG_CMDLINE_BOOL */

I think this #ifdef-ary can be reduced, along the lines of Andrew's earlier suggestion. But my main complaint remains that this continues to be duplicated between ARM and x86.

I think wrapping CMDLINE and CMDLINE_OVERRIDE in
a #ifdef CONFIG_CMDLINE_BOOL block makes the struture more clear, and makes the code easier to read, because CMDLINE and CMDLINE_OVERRIDE should be grouped together. BTW, this is exactly what linux did:

See https://github.com/torvalds/linux/blob/master/arch/x86/Kconfig#L2193 ,
https://github.com/torvalds/linux/blob/master/arch/x86/kernel/setup.c#L237,
https://github.com/torvalds/linux/blob/master/arch/x86/kernel/setup.c#L963,
https://github.com/torvalds/linux/blob/master/arch/mips/kernel/setup.c#L70
and https://github.com/torvalds/linux/blob/master/arch/mips/kernel/setup.c#L807.

However, I do agree with your suggestions on avoiding duplications of the same pieces of code. I will address this problem later.

Quoted 27 lines
Quoted 14 lines
xen/arch/x86/setup.c +7 -0
@@ -636,10 +636,41 @@ static char * __init cmdline_cook(char *p, const char *loader_name)
     return p;
 }
 
+/*
+ * Extracts dom0 options from the commandline.
+ *
+ * Options after ' -- ' separator belong to dom0.
+ *  1. Orphan dom0's options from Xen's command line.
+ *  2. Skip all but final leading space from dom0's options.
+ */

xen/arch/x86/setup.c static char * __init cmdline_cook(char *p, const char *loader_name) · line 655

Quoted 10 lines
xen/arch/x86/setup.c +10 -0
+
+static inline char* __init extract_dom0_options(char *cmdline)
+{
+    char *kextra;
+
+    if ( (kextra = strstr(cmdline, " -- ")) != NULL )
+    {
+        *kextra = '\0';
+        kextra += 3;
+        while ( kextra[1] == ' ' ) kextra++;

The body of the while() wants to go on its own line.

Quoted 2 lines

And then - why is this Dom0 option handling done only on x86?

As you might have noticed, there isn't any code dealing with the dom0 options in arch/arm/setup.c, and the arm version of construct_dom0() doesn't take any command line options as its parameter,
so I have the reason to believe that this feature is not available under the arm architecture.

As for the duplicated code. What do you say if I add a wrapper to common/kernerl.c:cmdline_parse(). The wrapper automatically deals with the CMDLINE_BOOL option, if toggled, and call the original cmdline_parser on the concatenated line. The wrapper could be something like:

    void cmdline_parse(char *cmdline, char *kextra);

where kextra will be filed with the concatenated dom0_options, if presented. And for those who don't expect dom0_options, I mean, for arm, kextra could be set to NULL, telling cmdline_parse() not to find any " -- " in the cmdline.

Quoted 6 lines
Quoted 6 lines
xen/common/Kconfig +0 -0
@@ -237,4 +237,44 @@ config FAST_SYMBOL_LOOKUP
        The only user of this is Live patching.
 
Quoted 8 lines

xen/common/Kconfig config FAST_SYMBOL_LOOKUP · line 243

Quoted 5 lines
xen/common/Kconfig +4 -0
        If unsure, say Y.
+
+config CMDLINE_BOOL
+     bool "Built-in hypervisor command line"
+     default n

I don't think this line serves any purpose (also another time below).

But I do think this make the struture of the config set more clear.

Quoted 35 lines
Quoted 5 lines
xen/common/Kconfig +4 -0
+     ---help---
+       Allow for specifying boot arguments to the hypervisor at
+       build time.  On some systems (e.g. embedded ones), it is
+       necessary or convenient to provide some or all of the

xen/common/Kconfig config FAST_SYMBOL_LOOKUP · line 257

Quoted 10 lines
xen/common/Kconfig +10 -0
+       hypervisor boot arguments with the hypervisor itself (that is,
+       to not rely on the bootloader to provide them.)
+
+       To compile command line arguments into the hypervisor,
+       set this option to 'Y', then fill in the
+       boot arguments in CONFIG_CMDLINE.
+
+config CMDLINE
+     string "Built-in hypervisor command string"
+     depends on CMDLINE_BOOL

Coming back to the #ifdef-ary remark earlier on - if instead of "depends on" you made the prompt conditional, CMDLINE would always be defined, i.e. you could use without #ifdef guards. Of course with that the question of the usefulness of CMDLINE_BOOL arises: Does this really serve a purpose?

xen/common/Kconfig config FAST_SYMBOL_LOOKUP · line 265

Quoted 8 lines
xen/common/Kconfig +8 -0
+     default ""
+     ---help---
+       Enter arguments here that should be compiled into the hypervisor
+       image and used at boot time.  If the bootloader provides a
+       command line at boot time, it is appended to this string to
+       form the full hypervisor command line, when the system boots.
+       So if the same command line option was set twice, only the latter
+       (i.e. the one in the bootloader command line), will take effect.

... unless an option is cumulative (I don't think we have any such right now, but iirc Linux does, and so we should not exclude that we may gain such).

Quoted 16 lines

xen/common/Kconfig config FAST_SYMBOL_LOOKUP · line 279

Quoted 13 lines
xen/common/Kconfig +13 -0
+       However, you can use the CONFIG_CMDLINE_OVERRIDE option to
+       change this behavior.
+
+config CMDLINE_OVERRIDE
+     bool "Built-in command line overrides bootloader arguments"
+     default n
+     depends on CMDLINE_BOOL
+     ---help---
+       Set this option to 'Y' to have the hypervisor ignore the bootloader
+       command line, and use ONLY the built-in command line.
+
+       This is used to work around broken bootloaders. This should
+       be set to 'N' under normal conditions.

I think this calls for an EXPERT dependency.

I think the last line of the help message can serve this purpose. But If you think adding an EXPERT option in the Kconfig file is necessary, I'll just do that.

Quoted 2 lines

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#3 lore raw
Quoted 16 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 12:21, <[email protected]> wrote:

2017-03-07 17:36 GMT+08:00 Jan Beulich <[email protected]>:

Quoted 8 lines

Review

Quoted 3 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 09:34, <[email protected]> wrote:
(quoted diff) +2 -0
+#endif /* CONFIG_CMDLINE_OVERRIDE */
+#endif /* CONFIG_CMDLINE_BOOL */

I think this #ifdef-ary can be reduced, along the lines of Andrew's earlier suggestion. But my main complaint remains that this continues to be duplicated between ARM and x86.

I think wrapping CMDLINE and CMDLINE_OVERRIDE in
a #ifdef CONFIG_CMDLINE_BOOL block makes the struture more clear, and makes the code easier to read, because CMDLINE and CMDLINE_OVERRIDE should be grouped together. BTW, this is exactly what linux did:

Quoted 6 lines

See https://github.com/torvalds/linux/blob/master/arch/x86/Kconfig#L2193 ,
https://github.com/torvalds/linux/blob/master/arch/x86/kernel/setup.c#L237,
https://github.com/torvalds/linux/blob/master/arch/x86/kernel/setup.c#L963,
https://github.com/torvalds/linux/blob/master/arch/mips/kernel/setup.c#L70
and
https://github.com/torvalds/linux/blob/master/arch/mips/kernel/setup.c#L807.

Well, we don't have to slavishly follow what Linux does. I'd be interested to hear particularly Doug's and Andrew's opinions.

Quoted 26 lines
Quoted 26 lines
Quoted 13 lines
xen/arch/x86/setup.c +7 -0
@@ -636,10 +636,41 @@ static char * __init cmdline_cook(char *p, const char *loader_name)
     return p;
 }
 
+/*
+ * Extracts dom0 options from the commandline.
+ *
+ * Options after ' -- ' separator belong to dom0.
+ *  1. Orphan dom0's options from Xen's command line.
+ *  2. Skip all but final leading space from dom0's options.
+ */

xen/arch/x86/setup.c static char * __init cmdline_cook(char *p, const char *loader_name) · line 655

Quoted 10 lines
xen/arch/x86/setup.c +10 -0
+
+static inline char* __init extract_dom0_options(char *cmdline)
+{
+    char *kextra;
+
+    if ( (kextra = strstr(cmdline, " -- ")) != NULL )
+    {
+        *kextra = '\0';
+        kextra += 3;
+        while ( kextra[1] == ' ' ) kextra++;

The body of the while() wants to go on its own line.

Quoted 8 lines
Quoted 2 lines

And then - why is this Dom0 option handling done only on x86?

As you might have noticed, there isn't any code dealing with the dom0 options in arch/arm/setup.c, and the arm version of construct_dom0() doesn't take any command line options as its parameter,
so I have the reason to believe that this feature is not available under the arm architecture.

Looks like an omission to me - Julien, Stefano?

Quoted 9 lines

As for the duplicated code. What do you say if I add a wrapper to common/kernerl.c:cmdline_parse(). The wrapper automatically deals with the CMDLINE_BOOL option, if toggled, and call the original cmdline_parser
on the concatenated line. The wrapper could be something like:

    void cmdline_parse(char *cmdline, char *kextra);

where kextra will be filed with the concatenated dom0_options, if presented. And for those who don't expect dom0_options, I mean, for arm, kextra could be set to NULL, telling cmdline_parse() not to find any " -- " in the cmdline.

Sounds reasonable.

Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
xen/common/Kconfig +0 -0
@@ -237,4 +237,44 @@ config FAST_SYMBOL_LOOKUP
        The only user of this is Live patching.
 
Quoted 7 lines

xen/common/Kconfig config FAST_SYMBOL_LOOKUP · line 243

Quoted 5 lines
xen/common/Kconfig +4 -0
        If unsure, say Y.
+
+config CMDLINE_BOOL
+     bool "Built-in hypervisor command line"
+     default n

I don't think this line serves any purpose (also another time below).

Quoted 1 line

But I do think this make the struture of the config set more clear.

Well, not sure. Let's see what others think (as said above).

Quoted 13 lines
Quoted 4 lines
Quoted 4 lines
xen/common/Kconfig +4 -0
+config CMDLINE_OVERRIDE
+     bool "Built-in command line overrides bootloader arguments"
+     default n
+     depends on CMDLINE_BOOL
Quoted 8 lines

xen/common/Kconfig config FAST_SYMBOL_LOOKUP · line 279

Quoted 6 lines
xen/common/Kconfig +6 -0
+     ---help---
+       Set this option to 'Y' to have the hypervisor ignore the bootloader
+       command line, and use ONLY the built-in command line.
+
+       This is used to work around broken bootloaders. This should
+       be set to 'N' under normal conditions.

I think this calls for an EXPERT dependency.

Quoted 3 lines

I think the last line of the help message can serve this purpose. But If you think adding an EXPERT option in the Kconfig file is necessary, I'll just do that.

I didn't ask for adding an EXPERT option (we already have one), but for adding a dependency to it. I for one would find it quite surprising if none of the options I pass the Xen would be honored.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#4 lore raw

Hi Jan,

Quoted 18 lines · Jan Beulich
Quoted 18 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 12:21, <[email protected]> wrote:

2017-03-07 17:36 GMT+08:00 Jan Beulich <[email protected]>:

Quoted 15 lines

xen/arch/x86/setup.c static char * __init cmdline_cook(char *p, const char *loader_name) · line 655

Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 09:34, <[email protected]> wrote:
xen/arch/x86/setup.c +9 -0
+static inline char* __init extract_dom0_options(char *cmdline)
+{
+    char *kextra;
+
+    if ( (kextra = strstr(cmdline, " -- ")) != NULL )
+    {
+        *kextra = '\0';
+        kextra += 3;
+        while ( kextra[1] == ' ' ) kextra++;

The body of the while() wants to go on its own line.

And then - why is this Dom0 option handling done only on x86?

Quoted 7 lines
Quoted 5 lines

As you might have noticed, there isn't any code dealing with the dom0 options in arch/arm/setup.c, and the arm version of construct_dom0() doesn't take any command line options as its parameter,
so I have the reason to believe that this feature is not available under the arm architecture.

Looks like an omission to me - Julien, Stefano?

DOM0 and Xen command line are passed separately through either Device Tree or for UEFI xen configuration file (see -cfg=...).

So I am not sure to understand what would be the benefits to handle DOM0 parameters after -- on Xen command line.

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#5 lore raw
Quoted 26 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 14:48, <[email protected]> wrote:
Quoted 24 lines · Jan Beulich
Quoted 23 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 12:21, <[email protected]> wrote:

2017-03-07 17:36 GMT+08:00 Jan Beulich <[email protected]>:

Quoted 13 lines

xen/arch/x86/setup.c static char * __init cmdline_cook(char *p, const char *loader_name) · line 655

Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 09:34, <[email protected]> wrote:
xen/arch/x86/setup.c +9 -0
+static inline char* __init extract_dom0_options(char *cmdline)
+{
+    char *kextra;
+
+    if ( (kextra = strstr(cmdline, " -- ")) != NULL )
+    {
+        *kextra = '\0';
+        kextra += 3;
+        while ( kextra[1] == ' ' ) kextra++;

The body of the while() wants to go on its own line.

Quoted 2 lines

And then - why is this Dom0 option handling done only on x86?

As you might have noticed, there isn't any code dealing with the dom0 options in arch/arm/setup.c, and the arm version of construct_dom0() doesn't take any command line options as its parameter,
so I have the reason to believe that this feature is not available under the arm architecture.

Quoted 7 lines
Quoted 1 line

Looks like an omission to me - Julien, Stefano?

DOM0 and Xen command line are passed separately through either Device Tree or for UEFI xen configuration file (see -cfg=...).

So I am not sure to understand what would be the benefits to handle DOM0 parameters after -- on Xen command line.

So you have no case of a boot loader which allows you to type in extra options on just a single line? On x86 the feature had originally been added because old grub didn't have a separate line for Dom0 options in its graphical menu. Nowadays the functionality is handy namely when starting xen.efi from the EFI shell (where again you obviously only have a single command line), but quite likely this may also be of use with grub's chain loading model (which I simply don't use very often, so I'm not finally sure on that one).

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#6 lore raw

Hi Jan,

Quoted 34 lines · Jan Beulich
Quoted 26 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 14:48, <[email protected]> wrote:
Quoted 24 lines · Jan Beulich
Quoted 23 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 12:21, <[email protected]> wrote:

2017-03-07 17:36 GMT+08:00 Jan Beulich <[email protected]>:

Quoted 13 lines

xen/arch/x86/setup.c static char * __init cmdline_cook(char *p, const char *loader_name) · line 655

Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 09:34, <[email protected]> wrote:
xen/arch/x86/setup.c +9 -0
+static inline char* __init extract_dom0_options(char *cmdline)
+{
+    char *kextra;
+
+    if ( (kextra = strstr(cmdline, " -- ")) != NULL )
+    {
+        *kextra = '\0';
+        kextra += 3;
+        while ( kextra[1] == ' ' ) kextra++;

The body of the while() wants to go on its own line.

Quoted 2 lines

And then - why is this Dom0 option handling done only on x86?

As you might have noticed, there isn't any code dealing with the dom0 options in arch/arm/setup.c, and the arm version of construct_dom0() doesn't take any command line options as its parameter,
so I have the reason to believe that this feature is not available under the arm architecture.

Quoted 7 lines
Quoted 1 line

Looks like an omission to me - Julien, Stefano?

DOM0 and Xen command line are passed separately through either Device Tree or for UEFI xen configuration file (see -cfg=...).

So I am not sure to understand what would be the benefits to handle DOM0 parameters after -- on Xen command line.

Quoted 8 lines

So you have no case of a boot loader which allows you to type in extra options on just a single line? On x86 the feature had originally been added because old grub didn't have a separate line for Dom0 options in its graphical menu. Nowadays the functionality is handy namely when starting xen.efi from the EFI shell (where again you obviously only have a single command line), but quite likely this may also be of use with grub's chain loading model (which I simply don't use very often, so I'm not finally sure on that one).

My knowledge is quite limited on boot process for x86. How do you pass the kernel/initrd/xsm blob on UEFI? Can you do it from the command line or are you using the -cfg=... and specify it in a file?

On ARM we have two way to boot Xen:
- Using UEFI bootloader with either Device-Tree or ACPI
- Using non-UEFI bootloader with Device-Tree only

In the case of UEFI bootloader, we are using the xen configuration file to describe the modules (e.g kernel, initramfs, XSM) and the both xen and DOM0 command line.

For non-UEFI bootloader, we have designed the boot protocol based on the device-tree and will allows you to specify both xen and DOM0 and all the modules (see [1]). The bootloader needs to be able to modify the device-tree (such via a shell like on U-boot) or the user needs to modify the device-tree before hand.

To answer your question, a bootloader supporting only a single line would still need to be modified to provide the various modules. At that stage, adding DOM0 command line is very easy.

Now, if you tell me that all the modules can be described on the UEFI command line, then I think handling '--' would be nice. If not, I don't think it is worth it.

Cheers,

[1] http://xenbits.xen.org/docs/unstable/misc/arm/device-tree/booting.txt

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#7 lore raw
Quoted 49 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 15:41, <[email protected]> wrote:

Hi Jan,

Quoted 17 lines · Jan Beulich
Quoted 17 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 14:48, <[email protected]> wrote:
Quoted 15 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 12:21, <[email protected]> wrote:

2017-03-07 17:36 GMT+08:00 Jan Beulich <[email protected]>:

Quoted 13 lines

Review

Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 09:34, <[email protected]> wrote:
(quoted diff) +9 -0
+static inline char* __init extract_dom0_options(char *cmdline)
+{
+    char *kextra;
+
+    if ( (kextra = strstr(cmdline, " -- ")) != NULL )
+    {
+        *kextra = '\0';
+        kextra += 3;
+        while ( kextra[1] == ' ' ) kextra++;

The body of the while() wants to go on its own line.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

And then - why is this Dom0 option handling done only on x86?

As you might have noticed, there isn't any code dealing with the dom0

options

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

in arch/arm/setup.c, and the arm version of construct_dom0() doesn't take

any

Quoted 12 lines
Quoted 11 lines
Quoted 5 lines
Quoted 3 lines

command line options as its parameter,
so I have the reason to believe that this feature is not available under the arm architecture.

Looks like an omission to me - Julien, Stefano?

DOM0 and Xen command line are passed separately through either Device Tree or for UEFI xen configuration file (see -cfg=...).

So I am not sure to understand what would be the benefits to handle DOM0 parameters after -- on Xen command line.

Quoted 8 lines

So you have no case of a boot loader which allows you to type in extra options on just a single line? On x86 the feature had originally been added because old grub didn't have a separate line for Dom0 options in its graphical menu. Nowadays the functionality is handy namely when starting xen.efi from the EFI shell (where again you obviously only have a single command line), but quite likely this may also be of use with grub's chain loading model (which I simply don't use very often, so I'm not finally sure on that one).

Quoted 3 lines

My knowledge is quite limited on boot process for x86. How do you pass the kernel/initrd/xsm blob on UEFI? Can you do it from the command line or are you using the -cfg=... and specify it in a file?

Only the latter.

Quoted 8 lines

On ARM we have two way to boot Xen:
- Using UEFI bootloader with either Device-Tree or ACPI
- Using non-UEFI bootloader with Device-Tree only

In the case of UEFI bootloader, we are using the xen configuration file to describe the modules (e.g kernel, initramfs, XSM) and the both xen and DOM0 command line.

Quoted 5 lines

For non-UEFI bootloader, we have designed the boot protocol based on the device-tree and will allows you to specify both xen and DOM0 and all the modules (see [1]). The bootloader needs to be able to modify the device-tree (such via a shell like on U-boot) or the user needs to modify the device-tree before hand.

All fine, but this doesn't tell me what interactive change options a user has _after_ having set up the config file (or alike), while the system is booting.

Quoted 3 lines

To answer your question, a bootloader supporting only a single line would still need to be modified to provide the various modules. At that stage, adding DOM0 command line is very easy.

But aiui that's again needed to be done _before_ the system is rebooted.

Quoted 3 lines

Now, if you tell me that all the modules can be described on the UEFI command line, then I think handling '--' would be nice. If not, I don't think it is worth it.

As per above I'm getting the impression that we're talking of different scenarios - I don't think I've yet understood what options of adding to or editing of any of the command lines you have on ARM _during_ the boot process of a system.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#8 lore raw

Hi Jan,

Quoted 69 lines · Jan Beulich
Quoted 49 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 15:41, <[email protected]> wrote:

Hi Jan,

Quoted 17 lines · Jan Beulich
Quoted 17 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 14:48, <[email protected]> wrote:
Quoted 15 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 12:21, <[email protected]> wrote:

2017-03-07 17:36 GMT+08:00 Jan Beulich <[email protected]>:

Quoted 13 lines

Review

Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 09:34, <[email protected]> wrote:
(quoted diff) +9 -0
+static inline char* __init extract_dom0_options(char *cmdline)
+{
+    char *kextra;
+
+    if ( (kextra = strstr(cmdline, " -- ")) != NULL )
+    {
+        *kextra = '\0';
+        kextra += 3;
+        while ( kextra[1] == ' ' ) kextra++;

The body of the while() wants to go on its own line.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

And then - why is this Dom0 option handling done only on x86?

As you might have noticed, there isn't any code dealing with the dom0

options

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

in arch/arm/setup.c, and the arm version of construct_dom0() doesn't take

any

Quoted 12 lines
Quoted 11 lines
Quoted 5 lines
Quoted 3 lines

command line options as its parameter,
so I have the reason to believe that this feature is not available under the arm architecture.

Looks like an omission to me - Julien, Stefano?

DOM0 and Xen command line are passed separately through either Device Tree or for UEFI xen configuration file (see -cfg=...).

So I am not sure to understand what would be the benefits to handle DOM0 parameters after -- on Xen command line.

Quoted 8 lines

So you have no case of a boot loader which allows you to type in extra options on just a single line? On x86 the feature had originally been added because old grub didn't have a separate line for Dom0 options in its graphical menu. Nowadays the functionality is handy namely when starting xen.efi from the EFI shell (where again you obviously only have a single command line), but quite likely this may also be of use with grub's chain loading model (which I simply don't use very often, so I'm not finally sure on that one).

Quoted 3 lines

My knowledge is quite limited on boot process for x86. How do you pass the kernel/initrd/xsm blob on UEFI? Can you do it from the command line or are you using the -cfg=... and specify it in a file?

Only the latter.

Quoted 8 lines

On ARM we have two way to boot Xen:
- Using UEFI bootloader with either Device-Tree or ACPI
- Using non-UEFI bootloader with Device-Tree only

In the case of UEFI bootloader, we are using the xen configuration file to describe the modules (e.g kernel, initramfs, XSM) and the both xen and DOM0 command line.

Quoted 5 lines

For non-UEFI bootloader, we have designed the boot protocol based on the device-tree and will allows you to specify both xen and DOM0 and all the modules (see [1]). The bootloader needs to be able to modify the device-tree (such via a shell like on U-boot) or the user needs to modify the device-tree before hand.

Quoted 3 lines

All fine, but this doesn't tell me what interactive change options a user has _after_ having set up the config file (or alike), while the system is booting.

Here some concrete examples. The major bootloaders on ARM today are:
* UEFI
* U-boot
* GRUB

I will leave UEFI aside as people will usually chainload to GRUB and then boot whatever they want.

In both GRUB and U-boot a user will be able to modify the command line from the bootloader shell.

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#9 lore raw
Quoted 85 lines · Julien Grall

Hi Jan,

Quoted 73 lines · Jan Beulich
Quoted 53 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 15:41, <[email protected]> wrote:

Hi Jan,

Quoted 18 lines · Jan Beulich
Quoted 18 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 14:48, <[email protected]> wrote:
Quoted 16 lines · Jan Beulich
Quoted 16 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 12:21, <[email protected]> wrote:

2017-03-07 17:36 GMT+08:00 Jan Beulich <[email protected]>:

Quoted 14 lines

Review

Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 09:34, <[email protected]> wrote:

+static inline char* __init extract_dom0_options(char *cmdline)

(quoted diff) +8 -0
+{
+    char *kextra;
+
+    if ( (kextra = strstr(cmdline, " -- ")) != NULL )
+    {
+        *kextra = '\0';
+        kextra += 3;
+        while ( kextra[1] == ' ' ) kextra++;

The body of the while() wants to go on its own line.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

And then - why is this Dom0 option handling done only on x86?

As you might have noticed, there isn't any code dealing with the dom0

options

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

in arch/arm/setup.c, and the arm version of construct_dom0() doesn't take

any

Quoted 13 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

command line options as its parameter,
so I have the reason to believe that this feature is not available under the arm architecture.

Quoted 8 lines
Quoted 1 line

Looks like an omission to me - Julien, Stefano?

DOM0 and Xen command line are passed separately through either Device Tree or for UEFI xen configuration file (see -cfg=...).

So I am not sure to understand what would be the benefits to handle DOM0
parameters after -- on Xen command line.

Quoted 8 lines

So you have no case of a boot loader which allows you to type in extra options on just a single line? On x86 the feature had originally been added because old grub didn't have a separate line for Dom0 options in its graphical menu. Nowadays the functionality is handy namely when starting xen.efi from the EFI shell (where again you obviously only have a single command line), but quite likely this may also be of use with grub's chain loading model (which I simply don't use very often, so I'm not finally sure on that one).

Quoted 3 lines

My knowledge is quite limited on boot process for x86. How do you pass the kernel/initrd/xsm blob on UEFI? Can you do it from the command line or are you using the -cfg=... and specify it in a file?

Only the latter.

Quoted 8 lines

On ARM we have two way to boot Xen:
- Using UEFI bootloader with either Device-Tree or ACPI
- Using non-UEFI bootloader with Device-Tree only

In the case of UEFI bootloader, we are using the xen configuration file to describe the modules (e.g kernel, initramfs, XSM) and the both xen and DOM0 command line.

Quoted 5 lines

For non-UEFI bootloader, we have designed the boot protocol based on the device-tree and will allows you to specify both xen and DOM0 and all the modules (see [1]). The bootloader needs to be able to modify the device-tree (such via a shell like on U-boot) or the user needs to modify the device-tree before hand.

Quoted 3 lines

All fine, but this doesn't tell me what interactive change options a user has _after_ having set up the config file (or alike), while the system is booting.

Here some concrete examples. The major bootloaders on ARM today are:
* UEFI
* U-boot
* GRUB

Quoted 5 lines

I will leave UEFI aside as people will usually chainload to GRUB and then boot whatever they want.

In both GRUB and U-boot a user will be able to modify the command line from the bootloader shell.

Given that upstream GRUB doesn't yet support booting Xen on ARM (without any additional patches), I think that the ability to completely change the command line from the EFI shell would be useful. Besides, although it is not mandatory, I think it would be best not to unnecessarily diverge from x86 in terms of EFI booting.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#10 lore raw

Hi Stefano,

Quoted 6 lines · Stefano Stabellini

On Tue, 7 Mar 2017, Julien Grall wrote:
Given that upstream GRUB doesn't yet support booting Xen on ARM (without any additional patches), I think that the ability to completely change the command line from the EFI shell would be useful. Besides, although it is not mandatory, I think it would be best not to unnecessarily diverge from x86 in terms of EFI booting.

I don't consider x86 solution as granted for ARM, and I would have thought it was the same on your side given the change you requested for dom0_mem recently.

I still don't see a reason to override the command line option as usually the issue will not be because of the command line but the kernel itself. At least this is my experience on ARM so far.

Anyway, I am not going to argue on this. If you think it should be done, then it should be in a separate patch.

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#11 lore raw
Quoted 10 lines · Julien Grall

Hi Stefano,

Quoted 6 lines · Stefano Stabellini

On Tue, 7 Mar 2017, Julien Grall wrote:
Given that upstream GRUB doesn't yet support booting Xen on ARM (without any additional patches), I think that the ability to completely change the command line from the EFI shell would be useful. Besides, although it is not mandatory, I think it would be best not to unnecessarily diverge from x86 in terms of EFI booting.

Quoted 3 lines

I don't consider x86 solution as granted for ARM, and I would have thought it was the same on your side given the change you requested for dom0_mem recently.

I agree. I am only saying that all things being equal, we might as well keep compatibility. If nothing else, it will be easier to write docs. The dom0_mem case is an example where things are not equal between x86 and arm, but the parameter still works similarly across the two archs.

Quoted 3 lines

I still don't see a reason to override the command line option as usually the issue will not be because of the command line but the kernel itself. At least this is my experience on ARM so far.

I think it can be useful, even just for tests, especially given that grub is still unable to boot Xen.

Quoted 2 lines

Anyway, I am not going to argue on this. If you think it should be done, then it should be in a separate patch.

That would be best.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#12 lore raw

So, taking all of the conversations above into consideration, the following changes
should be done to this patch:

1. According to Andrew and Jan's suggestions, I'll remove the CMDLINE_BOOL option,
and deal with CMDLINE without the #ifdef-ary's.

2. Make the option CMDLINE_OVERRIDE depends on EXPERT.

3. Move the duplicated code in the various setup.c's into common/kernel.c; Introduce a wrapper
to common/kernel.c:cmdline_parse(), and let that wrapper
automatically deal with CONFIG_CMDLINE,
so the start_xen()'s won't be bothered to do the concatenation by
themselves.

4. As for the different behavior between arm and x86 on handling the dom0 options after " -- " in the
command line, I will left this difference as untouched, coz
whether to add this feature to arm or to remove
this feature from x86 is beyond the scope of this patch.

But there's one thing that I'm not quite sure. Since currently there isn't any cumulative options in
Xen, I just can't deal with them - Jan?

2017-03-08 5:37 GMT+08:00 Stefano Stabellini <[email protected]>:

Quoted 25 lines · Julien Grall
Quoted 10 lines

Hi Stefano,

Quoted 6 lines · Stefano Stabellini

On Tue, 7 Mar 2017, Julien Grall wrote:
Given that upstream GRUB doesn't yet support booting Xen on ARM (without any additional patches), I think that the ability to completely change the command line from the EFI shell would be useful. Besides, although it is not mandatory, I think it would be best not to unnecessarily diverge from x86 in terms of EFI booting.

Quoted 3 lines

I don't consider x86 solution as granted for ARM, and I would have thought it was the same on your side given the change you requested for dom0_mem recently.

I agree. I am only saying that all things being equal, we might as well keep compatibility. If nothing else, it will be easier to write docs. The dom0_mem case is an example where things are not equal between x86 and arm, but the parameter still works similarly across the two archs.

Quoted 3 lines

I still don't see a reason to override the command line option as usually the issue will not be because of the command line but the kernel itself. At least this is my experience on ARM so far.

Quoted 8 lines

I think it can be useful, even just for tests, especially given that grub is still unable to boot Xen.

Quoted 2 lines

Anyway, I am not going to argue on this. If you think it should be done, then it should be in a separate patch.

That would be best.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#14 lore raw
In reply to Julien Grall
Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 18:48, <[email protected]> wrote:

Here some concrete examples. The major bootloaders on ARM today are:
* UEFI
* U-boot
* GRUB

I will leave UEFI aside as people will usually chainload to GRUB and then boot whatever they want.

In both GRUB and U-boot a user will be able to modify the command line from the bootloader shell.

Thanks. So I think the takeaway is that ARM doesn't strictly need the Dom0 part of the handling, but then again if this was common code it also shouldn't hurt.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#13 lore raw
In reply to Zhongze Liu
Quoted 6 lines
Quoted 1 line
Quoted 1 line · On 08.03.17 at 08:16, <[email protected]> wrote:

4. As for the different behavior between arm and x86 on handling the dom0 options after " -- " in the
command line, I will left this difference as untouched, coz
whether to add this feature to arm or to remove
this feature from x86 is beyond the scope of this patch.

Since you want to move the logic to common code, the result would likely end up better if there was no arch-dependent behavior.

Quoted 3 lines

But there's one thing that I'm not quite sure. Since currently there isn't any cumulative options in
Xen, I just can't deal with them - Jan?

Well, dealing with them simply means writing the config option help text accordingly (i.e. avoid explicitly ruling out that case).

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#15 lore raw
In reply to Jan Beulich

Hi Jan,

Quoted 9 lines · Jan Beulich
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 07.03.17 at 18:48, <[email protected]> wrote:

Here some concrete examples. The major bootloaders on ARM today are:
* UEFI
* U-boot
* GRUB

I will leave UEFI aside as people will usually chainload to GRUB and then boot whatever they want.

Quoted 6 lines
Quoted 2 lines

In both GRUB and U-boot a user will be able to modify the command line from the bootloader shell.

Thanks. So I think the takeaway is that ARM doesn't strictly need the Dom0 part of the handling, but then again if this was common code it also shouldn't hurt.

Correct. As long as the he expected behavior (e.g how they options are combined) is fully documented.

Note that I was not able to find any documentation about this in xen-commandline.markdown.

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel