From: Keir Fraser <keir.xen@gmail.com>
To: Juergen Gross <juergen.gross@ts.fujitsu.com>
Cc: "Liu, Jinsong" <jinsong.liu@intel.com>,
xen-devel@lists.xensource.com, mark.langsdorf@amd.com
Subject: Re: [PATCH] use per-cpu variables in cpufreq
Date: Mon, 30 May 2011 10:45:29 +0100 [thread overview]
Message-ID: <CA0925C9.1B498%keir.xen@gmail.com> (raw)
In-Reply-To: <4DE32F6A.7030608@ts.fujitsu.com>
On 30/05/2011 06:47, "Juergen Gross" <juergen.gross@ts.fujitsu.com> wrote:
>> Specifically, my fear is that this data gets pushed into the hypervisor
>> once-only during dom0 boot (via XENPF_set_processor_pminfo). If it is freed
>> during processor offline, we lose it forever and have no power management
>> when/if a CPU is brought back online. Worse I suspect your patch as it is
>> will crash if some CPUs are offline during boot as you'll deference their
>> per_cpu area which doesn't actually exist unless a CPU is online. You can
>> test this for yourself by adding a maxcpus=1 boot parameter for Xen.
>
> Indeed.
>
> Just to understand this completely:
> So when is this info set up for hot-plugged cpus? And what happens if
> a cpu module is removed and later replaced by another module with
> more cores (or threads) than the original one?
> I think the processor pminfo should be set in this case during the hotplug
> handling.
Well, there is a difference between logical and physical cpu hotplug. Xen is
capable of bringing CPUs online and offline without them actually being
physically plugged/unplugged from the mainboard. Indeed our physical hotplug
support is relatively new and I would suspect not much used (and it supports
only physical insertion, not removal!).
Frankly there are a number of questions around CPUs that are physically
plugged in after boot:
* How does per-CPU ACPI state like PM info get set up?
* In a system where TSCs are otherwise all perfectly in sync, does the
firmware help us by setting up the new CPUs' TSCs likewise?
I don't actually know the answers to these questions. Maybe dom0 ACPI does
get triggered on physical insertion and knows how to set up PM stuff?
So, when I say CPU hotplug, or online/offline, I'm generally focussing on
logical hotplug only still at the moment. Physical hotplug is a black art
with question marks hanging over it for me. ;-)
-- Keir
>> The folding of the Intel/AMD structures might still be interesting, and
>> probably belongs as a separate patch anyway.
>>
>> Cc'ing Intel and AMD guys to confirm this.
>
> Okay, I'm waiting for their opinion.
>
>
> Juergen
next prev parent reply other threads:[~2011-05-30 9:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-27 11:11 [PATCH] use per-cpu variables in cpufreq Juergen Gross
2011-05-27 13:11 ` Keir Fraser
2011-05-27 13:29 ` Juergen Gross
2011-05-28 7:52 ` Keir Fraser
2011-05-30 5:47 ` Juergen Gross
2011-05-30 9:45 ` Keir Fraser [this message]
2011-05-31 1:51 ` Tian, Kevin
2011-05-31 7:31 ` Keir Fraser
2011-05-31 7:37 ` Liu, Jinsong
2011-05-30 8:06 ` Tian, Kevin
2011-05-30 15:33 ` Liu, Jinsong
2011-06-10 19:00 ` Langsdorf, Mark
2011-06-14 9:04 ` Juergen Gross
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=CA0925C9.1B498%keir.xen@gmail.com \
--to=keir.xen@gmail.com \
--cc=jinsong.liu@intel.com \
--cc=juergen.gross@ts.fujitsu.com \
--cc=mark.langsdorf@amd.com \
--cc=xen-devel@lists.xensource.com \
/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).