WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [patch] Only skip the image name if it is the image name

To: Simon Horman <horms@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [patch] Only skip the image name if it is the image name
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Tue, 28 Aug 2007 11:05:05 +0100
Cc: Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
Delivery-date: Tue, 28 Aug 2007 03:05:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070828093816.564824F91B@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcfpWufhJn2GflVOEdyEfAAX8io7RQ==
Thread-topic: [Xen-devel] [patch] Only skip the image name if it is the image name
User-agent: Microsoft-Entourage/11.3.6.070618
Isn't that a kexec bug? Multiboot command lines include the image name in
all other cases. If there's no suitable name, perhaps a dummy name should be
included?

 -- Keir

On 28/8/07 10:34, "Simon Horman" <horms@xxxxxxxxxxxx> wrote:

> When kexecing the BOOT_IMAGE isn't provided on the second kernel's
> command line and thus cmdline_parse() was just skipping over
> the first parameter.
> 
> Observed on ia64
> 
> Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
> 
> Index: xen-unstable.hg/xen/common/kernel.c
> ===================================================================
> --- xen-unstable.hg.orig/xen/common/kernel.c 2007-08-28 18:24:54.000000000
> +0900
> +++ xen-unstable.hg/xen/common/kernel.c 2007-08-28 18:25:01.000000000 +0900
> @@ -37,8 +37,9 @@ void cmdline_parse(char *cmdline)
>      /* Skip whitespace and the image name. */
>      while ( *p == ' ' )
>          p++;
> -    if ( (p = strchr(p, ' ')) == NULL )
> -        return;
> +    if (! strncmp(p, "BOOT_IMAGE=", strlen("BOOT_IMAGE=")) )
> +        if ( (p = strchr(p, ' ')) == NULL )
> +            return;
>  
>      for ( ; ; )
>      {
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel