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-ia64-devel

Re: [Xen-ia64-devel] [patch 06/16] Kexec/Kdump: honour non-zero crashker

To: Alex Williamson <alex.williamson@xxxxxx>
Subject: Re: [Xen-ia64-devel] [patch 06/16] Kexec/Kdump: honour non-zero crashkernel offset
From: Horms <horms@xxxxxxxxxxxx>
Date: Wed, 19 Sep 2007 12:03:48 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 18 Sep 2007 20:04:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1189633111.6287.31.camel@lappy>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20070912082834.175658477@xxxxxxxxxxxx> <20070912083044.855938929@xxxxxxxxxxxx> <1189633111.6287.31.camel@lappy>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: mutt-ng/devel-r804 (Debian)
On Wed, Sep 12, 2007 at 03:38:31PM -0600, Alex Williamson wrote:
> On Wed, 2007-09-12 at 17:28 +0900, Simon Horman wrote:
> 
> > Index: linux-2.6.18-xen.hg/arch/ia64/kernel/setup.c
> > ===================================================================
> > --- linux-2.6.18-xen.hg.orig/arch/ia64/kernel/setup.c       2007-07-09 
> > 15:00:34.000000000 +0900
> > +++ linux-2.6.18-xen.hg/arch/ia64/kernel/setup.c    2007-07-09 
> > 15:03:32.000000000 +0900
> > @@ -299,7 +299,7 @@ reserve_memory (void)
> >  
> >  #ifdef CONFIG_KEXEC
> >     /* crashkernel=size@offset specifies the size to reserve for a crash
> > -    * kernel.(offset is ingored for keep compatibility with other archs)
> > +    * kernel. If offset is 0, then it is determined automatically.
> >      * By reserving this memory we guarantee that linux never set's it
> >      * up as a DMA target.Useful for holding code to do something
> >      * appropriate after a kernel panic.
> > @@ -310,10 +310,16 @@ reserve_memory (void)
> >  #ifndef CONFIG_XEN
> >             if (from) {
> >                     size = memparse(from + 12, &from);
> > +                   if (*from == '@')
> > +                           base = memparse(from+1, &from);
> > +                   else
> > +                           base = 0;
> >                     if (size) {
> > -                           sort_regions(rsvd_region, n);
> > -                           base = kdump_find_rsvd_region(size,
> > -                           rsvd_region, n);
> > +                           if (!base) {
> > +                                   sort_regions(rsvd_region, n);
> > +                                   base = kdump_find_rsvd_region(size,
> > +                                                           rsvd_region, n);
> > +                                   }
> >                             if (base != ~0UL) {
> 
>    I don't understand why we want this change in our kernel.  Its
> changing code within #ifndef CONFIG_XEN.  Should this just be fixed
> upstream and we'll absorb it at the next merge up?  thanks,

This change is a backport of a change that has already been committed to
Linus' tree. I believe it was included in 2.6.22, possibly before. I can
just drop this change from my patchset if you like. However, I think
that it makes sense to keep it in given that a backport of ia64 kexec is
included in this series, and this change is really just part of that.

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/


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

<Prev in Thread] Current Thread [Next in Thread>