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] [PATCH 0/6] x86: break up post-boot non-order-zero alloc

To: "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH 0/6] x86: break up post-boot non-order-zero allocations
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Wed, 06 Apr 2011 07:46:29 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 05 Apr 2011 23:46:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <80f4b778-0b4d-490b-8ce9-3df37a01d029@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>
References: <4D9AECA60200007800039F26@xxxxxxxxxxxxxxxxxx> <80f4b778-0b4d-490b-8ce9-3df37a01d029@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> On 06.04.11 at 04:50, Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> wrote:
> IIRC, PCI-passthrough is another user of multi-page allocations.

As noted in the description, with the intended solution being to
switch from arrays to radix trees. Or do you know of other than
the mentioned cases?

> At some point, does it make sense to eliminate the multi-page
> allocation functionality, at least through the "normal"
> page allocation routines, and add a:
> 
> /* documentation about why not to use this */
> alloc_contiguous_pages_DEPRECATED(order)
> 
> call so that it is very explicit when future page allocation
> users "regress" by adding a multi-page allocation request?

I wouldn't go that far. Instead I was considering adding a (perhaps
one-time) warning so that things wouldn't start outright failing, but
remaining code paths get pointed out. But that ought to happen
only once all known allocations have been dealt with.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>