[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] CPU and scheduler init in Xen


  • To: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcuWL10clya6Z1TC0EyTOohOP8oPIg==
  • Thread-topic: [Xen-devel] CPU and scheduler init in Xen

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.