From: "Jan Beulich" Subject: Re: [PATCH V5 06/15] Add efi_arch_handle_cmdline() for processing commandline Date: Wed, 24 Sep 2014 09:13:48 +0100 Message-ID: <5422995C02000078000380E7@mail.emea.novell.com> References: <1411080607-32365-1-git-send-email-roy.franz@linaro.org> <1411080607-32365-7-git-send-email-roy.franz@linaro.org> <54202F7F0200007800036E66@mail.emea.novell.com> <542182F6020000780003799D@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roy Franz Cc: keir , Ian Campbell , tim , xen-devel , Stefano Stabellini , Fu Wei List-Id: xen-devel@lists.xenproject.org >>> On 24.09.14 at 02:09, wrote: > On Tue, Sep 23, 2014 at 5:25 AM, Jan Beulich wrote: >>>>> On 23.09.14 at 03:40, wrote: >>> On Mon, Sep 22, 2014 at 5:17 AM, Jan Beulich wrote: >>>>>>> On 19.09.14 at 00:49, wrote: >>>>> @@ -256,7 +257,8 @@ static void __init PrintErrMesg(const CHAR16 *mesg, > EFI_STATUS ErrCode) >>>>> } >>>>> >>>>> static unsigned int __init get_argv(unsigned int argc, CHAR16 **argv, >>>>> - CHAR16 *cmdline, UINTN cmdsize) >>>>> + CHAR16 *cmdline, UINTN cmdsize, >>>>> + CHAR16 **options) >>>> >>>> I think this would better be named "dom0_options" or "dom0_opts" or >>>> some such (also in the caller). >>> >>> I think xen_options would be better, or else I'm really confused :) >>> This string is combined with the Xen options from the >>> config file into mbi.cmdline. Dom0 arguments come from the "kernel" >>> line in the configuration tile. >> >> Indeed - I mixed things up: This is the first "--" separator, the Dom0 >> options come after the second. In which case staying with just >> "options" is quite fine. > > Is this second "--" handled by XEN itself? I don't see any handling > of that in the EFI boot code. The only thing that goes > into the multiboot .string field for the dom0 kernel is from the config > file. Yes, that's being handled in __start_xen() (search for "kextra" if you want to see where exactly). Jan