From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: Baffled by multipage_allocation_permitted() Date: Tue, 16 Jun 2009 10:41:46 +0100 Message-ID: References: <4A377FD20200007800005E3E@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4A377FD20200007800005E3E@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , Dave McCracken Cc: Xen Developers List List-Id: xen-devel@lists.xenproject.org On 16/06/2009 10:19, "Jan Beulich" wrote: >> We can just get rid of it I think. There are arguably worse other things we >> already allow, like any guest can allocate low memory by specifying a small >> value of XENMEMF_address_bits(). > > Wouldn't it be better to tighten things rather than relaxing them? It'll need policy to be expressed and pushed down from the toolstack somehow. Noone's really thought about it too much. In this case I think I will keep the checking macro actually, and simply disallow allocations greater than order-9 (2MB superpage) unless the domain has direct hardware access capability. -- Keir