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] Re: [PATCH 2/6] Change the boot allocator function to su

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxxxx>, Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Re: [PATCH 2/6] Change the boot allocator function to support memory add
From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Date: Mon, 29 Jun 2009 15:45:24 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Mon, 29 Jun 2009 00:46:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C66E2D0D.E5C9%keir.fraser@xxxxxxxxxxxxx>
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: <E2263E4A5B2284449EEBD0AAB751098402CCF82712@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C66E2D0D.E5C9%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acn30qSePbAyG89HR16wSczYgDMjIQAAzbqgAAIDDVAABiKE1wAAItCgAAPeiX4AFBqxUAANSJ5pAAAkSrA=
Thread-topic: [Xen-devel] Re: [PATCH 2/6] Change the boot allocator function to support memory add

xen-devel-bounces@xxxxxxxxxxxxxxxxxxx wrote:
> On 29/06/2009 03:04, "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx> wrote:
> 
>>> Actually it'd be nice to get rid of the allocator bitmap
>>> altogether, since
>> 
>> I checked the code and seems the main caller is map_pages_to_xen().
>> So do you mean you will setup the frametable earlier, so that all
>> page allocator will use the main allocator, even in
>> map_pages_to_xen()? 
> 
> I would have it go steal pages from boot_e820 directly I think.
> 
>> For memory add, it may be a bit different. The new pages should not
>> be in main allocator before the m2p table is setup (in boot stage,
>> the m2p will not be used till construct dom0, so it is ok) , also we
>> may want to use the new memory as the page table when setup the m2p
>> table. 
> 
> Well, I assume you will code up something special for that.
> That seems to
> have nothing to do with whether we keep the boot-time allocator, and
> allocation bitmap, or not. 

Yes, I'd steal some pages from the added memory. There is not much difference 
with the map_pages_to_xen() in booting stage.

--jyh

> 
> -- Keir
> 
> 
> 
> _______________________________________________
> 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