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] increase buffer size in panic_domain()

To: Alex Williamson <alex.williamson@xxxxxx>
Subject: Re: [Xen-ia64-devel] [PATCH] increase buffer size in panic_domain()
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Wed, 26 Jul 2006 11:28:04 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 25 Jul 2006 19:28:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1153842459.5603.2.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: <20060725040208.GC17396%yamahata@xxxxxxxxxxxxx> <1153842459.5603.2.camel@lappy>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Tue, Jul 25, 2006 at 09:47:39AM -0600, Alex Williamson wrote:
> On Tue, 2006-07-25 at 13:02 +0900, Isaku Yamahata wrote:
> > --- a/xen/arch/ia64/xen/xenmisc.c       Mon Jul 24 21:25:30 2006 +0900
> > +++ b/xen/arch/ia64/xen/xenmisc.c       Mon Jul 24 21:25:30 2006 +0900
> > @@ -172,7 +172,7 @@ void panic_domain(struct pt_regs *regs, 
> >  void panic_domain(struct pt_regs *regs, const char *fmt, ...)
> >  {
> >         va_list args;
> > -       char buf[128];
> > +       static char buf[1024]; 
> 
> Hi Isaku,
> 
>    The static here will cause problems if panic_domain() is called
> concurrently from multiple CPUs.  Thanks,

You're right. How about this patch?
panic_domain() should be simple so that I wouldn't like to play 
with SMP here.
Given that stack size is 16KB for both normal and RSE stack,
256 bytes would be acceptable.
In fact I hit this issue with void check_bad_nested_interruption().
256 bytes is sufficient for now.

-- 
yamahata

Attachment: 10751:23fc30baae32_increase_buffer_in_panic_domain-1.patch
Description: Text document

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>