From: Keir Fraser Subject: Re: big local array in routine in hypervisor Date: Mon, 26 Jan 2009 23:23:53 +0000 Message-ID: References: <8b8c5822-6eda-4c03-9437-5aa21a6d287b@default> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <8b8c5822-6eda-4c03-9437-5aa21a6d287b@default> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org 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" 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@lists.xensource.com > http://lists.xensource.com/xen-devel