From: "Jan Beulich" Subject: Re: Baffled by multipage_allocation_permitted() Date: Tue, 16 Jun 2009 10:19:46 +0100 Message-ID: <4A377FD20200007800005E3E@vpn.id2.novell.com> References: <200906151644.51978.dcm@mccr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , Dave McCracken Cc: Xen Developers List List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 15.06.09 23:57 >>> >On 15/06/2009 22:44, "Dave McCracken" wrote: > >> #define multipage_allocation_permitted(d) \ >> (!rangeset_is_empty((d)->iomem_caps) || \ >> !rangeset_is_empty((d)->arch.ioport_caps)) >>=20 >> I had never tracked down the significance of this macro since it didn't = appear >> to be an issue. Now it's suddenly denying me the ability to work in 2M = pages. >>=20 >> What is this macro trying to achieve? Why is it necessary? Is there = any >> compelling reason we can't just remove it and allow multipage allocation= s from >> any domain? > >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? Jan