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] Cpupools and pdata_alloc

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Cpupools and pdata_alloc
From: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
Date: Tue, 11 May 2010 13:52:53 -0500
Cc: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 11 May 2010 11:53:55 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=ti1N7T3Zj3z5RiQDSa8GBzz/dGGLmY3cCoDLbZpkedw=; b=DTblzxo4zz0a53Ff/W8m5Imi0/qP8c3Kz67/mV32+76L4IydTSLM1S5EwClxqMI+db U0JgViJ9/ghm+o+UosAb9AZg2tHLi3Bbayu5KS0hqbvh0dE8DJYYSCfHwUmyzfXxQe3o b1fQqPXdRfd7qpq/uM9P+hasGCcTfhOkF/pXE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=CgWOkqnydCePJxaVMHz5JRatVnbCFA5PmuG4Z38nmd9X86yhz9aOx1r0QjflzRaiho 14f2LD94tvpvIs1MGPZ3BmrjN9hlVXZl9zSGoVQjXI+fAGh1IZuTTBBhbFvjE+X6Ukkw 033neJPZ6VJGBdOsI/Sc4z1hpwv7nAAF84YGU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C80F6371.1C17%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: <AANLkTilmTmETcKO4aBLseQULUOUwTqP9QXOI3YPgq3YE@xxxxxxxxxxxxxx> <C80F6371.1C17%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, May 11, 2010 at 1:41 PM, Keir Fraser <keir.fraser@xxxxxxxxxxxxx> wrote:
> Well, once secondary CPUs are fully up they are of course running their
> respective idle VCPUs, so we can't call schedule_init() very late. The right
> thing to do is dynamically allocate state as CPUs are brought online -- and
> potentially free that state when CPUs are taken offline. Which is pretty
> much the direction the code points in already.

Except that it's done a little indirectly, via initializing the idle
vcpu, rather than calling something like sched_init_pcpu() when the
cpu is brought up before creating an idle vcpu for it. :-)  Anyway,
maybe once I get the credit2 stuff working again, I may think about
writing a patch to clean it up a bit... mostly so that it's easier to
follow what's going on.

 -George

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