All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
	Keir Fraser <keir@xen.org>, Jun Nakajima <jun.nakajima@intel.com>,
	Donald D Dugger <donald.d.dugger@intel.com>
Subject: Re: [PATCH] x86/xsave: initialization improvements
Date: Thu, 29 Aug 2013 12:25:50 +0100	[thread overview]
Message-ID: <521F2FBE.20003@citrix.com> (raw)
In-Reply-To: <521F434502000078000EF5D5@nat28.tlf.novell.com>

On 29/08/13 11:49, Jan Beulich wrote:
>>>> On 29.08.13 at 12:17, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
>> On 29/08/13 10:39, Jan Beulich wrote:
>>> - properly validate available feature set on APs
>>> - also validate xsaveopt availability on APs
>>> - properly indicate whether the initialization is on the BSP (we
>>>   shouldn't be using "cpu == 0" checks for this)
>>>
>>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>> Why is "cpu == 0" insufficient?
>>
>> The pcpu with id 0 is necessarily the BSP because of set_processor_id(0)
>> early in __start_xen().
> But eventually we will want/need to be able to hot-remove
> CPU 0, and then some other CPU may later come back up
> getting set its ID to zero. That shouldn't trigger one-time init
> code paths.
>
> I know this is not the only place, but as I come across them and
> touch respective code anyway, I'm trying to fix those instances.
>
> Jan
>

Are we expecting that to actually work on real hardware?

One example is the BSP NMI routing which will only go to the CPU which
the BIOS booted as the BSP.

~Andrew

  reply	other threads:[~2013-08-29 11:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-29  9:39 [PATCH] x86/xsave: initialization improvements Jan Beulich
2013-08-29 10:13 ` Keir Fraser
2013-08-29 10:17 ` Andrew Cooper
2013-08-29 10:49   ` Jan Beulich
2013-08-29 11:25     ` Andrew Cooper [this message]
2013-08-29 12:26       ` Jan Beulich

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=521F2FBE.20003@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=donald.d.dugger@intel.com \
    --cc=jun.nakajima@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.