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] CPU and scheduler init in Xen

To: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] CPU and scheduler init in Xen
From: Keir Fraser <keir@xxxxxxx>
Date: Tue, 07 Dec 2010 16:54:08 +0000
Cc:
Delivery-date: Tue, 07 Dec 2010 08:55:17 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:user-agent:date :subject:from:to:message-id:thread-topic:thread-index:in-reply-to :mime-version:content-type:content-transfer-encoding; bh=g9iLlMs9BpzK9QpJ/6smIZRwMsLlkUww7vR05SqLQZ0=; b=FwDc45CjZhQnqeJ/OH1OIa+1Rg2Wm9pG+g68hjOHCGSOnJTgQEdZLyrmWfSd2Sb0uJ S2Fc3JG7xtnMMiYjJIEWb+W1TJ7dOLDYTOJZgoQDKV17bJib310bXTBUewDJBQr2Iwtf Ux/97FYMHaTkJEFUyWvClOi/de01dFyM8gz7c=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=ZN3ELm/F2gG3xViYbcAWKx85N6fRFVdj739Oz5T3sFZMARzXt1RMisSdWU/p2fIV5b tixR7py+HheVJmav6qZDPgTJxKACQjPj7E5B5oYzOcZjrKcmrHoTsP9HFulRQt3yC94L h4DmshF/hPkcydl190WLRw+nhzzEH3fewM98c=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTi=DVKzMf5yeOmVsbpWr8UV_+A7CDKnCFRAPanZS@xxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcuWL10clya6Z1TC0EyTOohOP8oPIg==
Thread-topic: [Xen-devel] CPU and scheduler init in Xen
User-agent: Microsoft-Entourage/12.27.0.100910
On 07/12/2010 15:05, "George Dunlap" <George.Dunlap@xxxxxxxxxxxxx> wrote:

> On the one hand that all makes sense, but on the other hand it seems
> really crazy not to have basic info like the CPU topology available to
> the scheduler when the data for that CPU is initialized, and have to
> either (1) have a third scheduler callback, "cpu actually initialized
> now", or (2) resort to hackish tricks to look stuff up later (as the
> credit1 scheduler does to set up timers).

Can't you hook off CPU_UP notifier, and update your topology stuff from
that? You can do that entirely within sched_credit2.c -- no need for extra
hooks added to sched_if. This would also localise the changes, which I think
is a good thing.

 -- Keir

> I was hoping to be able to rearrange stuff so that when alloc_pdata()
> is called, that cpu_to_socket() be ready, but it's not exactly clear
> the best way to do that.
> 
> Any advice on how to proceed, Keir?



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

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