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

Re: [Xen-devel] big local array in routine in hypervisor


  • To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcmADSbCP0p/eAFsEk+dBksqb707Cw==
  • Thread-topic: [Xen-devel] big local array in routine in hypervisor

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


 


Rackspace

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