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] big local array in routine in hypervisor

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] big local array in routine in hypervisor
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 26 Jan 2009 23:23:53 +0000
Cc:
Delivery-date: Mon, 26 Jan 2009 15:24:07 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8b8c5822-6eda-4c03-9437-5aa21a6d287b@default>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmADSbCP0p/eAFsEk+dBksqb707Cw==
Thread-topic: [Xen-devel] big local array in routine in hypervisor
User-agent: Microsoft-Entourage/12.15.0.081119
It's definitely not safe. Don't do it! The stack is only a few kilobytes and
needs to be shared with possibly multiple nested interrupt contexts.

 -- Keir

On 26/01/2009 22:41, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote:

> Is it always safe to have a large local array in a routine
> in the hypervisor, say 2-3 pages (8k-12k) in size?  (I suppose
> that may be 32k-48k on ia64 since the code is arch-neutral.)
> Or is there some possibility the Xen stack will overflow?
> 
> If not always safe, is there any way to test to see if it safe
> or how large is safe?
> 
> Thanks,
> Dan
> 
> _______________________________________________
> 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