[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH V5 06/15] Add efi_arch_handle_cmdline() for processing commandline



>>> On 19.09.14 at 00:49, <roy.franz@xxxxxxxxxx> wrote:
> Add arch function for processing the Xen commandline and
> updating internal structures.
> 
> Signed-off-by: Roy Franz <roy.franz@xxxxxxxxxx>

With two small requests for adjustments below
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>

> @@ -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).

> @@ -701,14 +701,14 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE 
> *SystemTable)
>      dir_handle = get_parent_handle(loaded_image, &file_name);
>  
>      argc = get_argv(0, NULL, loaded_image->LoadOptions,
> -                    loaded_image->LoadOptionsSize);
> +                    loaded_image->LoadOptionsSize, &options);

I don't see why you don't pass NULL here, the more that you add
a respective check to get_argv().

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.