xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: Jan Beulich <JBeulich@suse.com>,
	Dario Faggioli <dario.faggioli@citrix.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	keir@xen.org, xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH 1/2] x86: during boot, anticipate identifying the boot cpu
Date: Mon, 1 Sep 2014 16:12:06 +0100	[thread overview]
Message-ID: <54048CC6.2030006@eu.citrix.com> (raw)
In-Reply-To: <53FB1246020000780002D125@mail.emea.novell.com>

On 08/25/2014 09:39 AM, Jan Beulich wrote:
>>>> On 22.08.14 at 19:15, <dario.faggioli@citrix.com> wrote:
>> --- a/xen/arch/x86/setup.c
>> +++ b/xen/arch/x86/setup.c
>> @@ -1262,6 +1262,12 @@ void __init noreturn __start_xen(unsigned long mbi_p)
>>   
>>       timer_init();
>>   
>> +    /*
>> +     * Identify the boot CPU, in case the scheduler initialization
>> +     * needs to know about it (e.g., topology, etc.)
>> +     */
>> +    identify_cpu(&boot_cpu_data);
>> +
>>       init_idle_domain();
>>   
>>       trap_init();
>> @@ -1272,8 +1278,6 @@ void __init noreturn __start_xen(unsigned long mbi_p)
>>   
>>       arch_init_memory();
>>   
>> -    identify_cpu(&boot_cpu_data);
>> -
>>       if ( cpu_has_fxsr )
>>           set_in_cr4(X86_CR4_OSFXSR);
>>       if ( cpu_has_xmm )
> I'm not sure about this part: It currently makes quite a bit of sense
> to have identify_cpu() immediately before explicit users of the
> gathered data (all code following up to the alternative_instructions()
> call). Perhaps if you move identify_cpu(), all the others should get
> moved too?

Or possibly, move init_idle_domain() until after?  I took a quick look 
through the functions called between init_idle_domain() and 
identify_cpu(), and didn't see any dependencies on the idle domain or 
scheduling functions.  It's quite possible I missed something though.

Overall I think this approach looks good, and I agree with the comments 
already given.

  -George

  reply	other threads:[~2014-09-01 15:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-22 17:15 [PATCH 0/2] Credit2: fix per-socket runqueue setup Dario Faggioli
2014-08-22 17:15 ` [PATCH 1/2] x86: during boot, anticipate identifying the boot cpu Dario Faggioli
2014-08-22 17:28   ` Andrew Cooper
2014-08-22 18:40     ` Dario Faggioli
2014-08-25  8:35     ` Jan Beulich
2014-08-25  8:39   ` Jan Beulich
2014-09-01 15:12     ` George Dunlap [this message]
2014-09-01 15:24       ` Jan Beulich
2014-08-22 17:15 ` [PATCH 2/2] sched: credit2: use boot CPU info for CPU #0 Dario Faggioli
2014-08-25  8:41   ` Jan Beulich
2014-08-25  8:31 ` [PATCH 0/2] Credit2: fix per-socket runqueue setup Jan Beulich
2014-09-01 13:59   ` George Dunlap
2014-09-02 16:46     ` Dario Faggioli
2014-09-03 10:00       ` George Dunlap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54048CC6.2030006@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=dario.faggioli@citrix.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).