From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Jan Beulich <JBeulich@novell.com>
Subject: Re: cpu_down() but no cpu_up() in drivers/xen/cpu_hotplug.c ?
Date: Tue, 11 May 2010 10:40:15 -0700 [thread overview]
Message-ID: <4BE9967F.7080409@goop.org> (raw)
In-Reply-To: <1273571127.7572.2905.camel@zakaz.uk.xensource.com>
On 05/11/2010 02:45 AM, Ian Campbell wrote:
> The original commit which added CPU hotplug to pvops says:
>
> xen: implement CPU hotplugging
>
> Note the changes from 2.6.18-xen CPU hotplugging:
>
> A vcpu_down request from the remote admin via Xenbus both hotunplugs the
> CPU, and disables it by removing it from the cpu_present map, and removing
> its entry in /sys.
>
> A vcpu_up request from the remote admin only re-enables the CPU, and does
> not immediately bring the CPU up. A udev event is emitted, which can be
> caught by the user if he wishes to automatically re-up CPUs when available,
> or implement a more complex policy.
>
> Signed-off-by: Alex Nixon <alex.nixon@citrix.com>
> Acked-by: Jeremy Fitzhardinge <jeremy@goop.org>
> Signed-off-by: Ingo Molnar <mingo@elte.hu>
>
> I'm not sure how the decision was reached to implement it this way,
> perhaps for consistency with CPU hotplug on other
> platforms/architectures?
>
Yes, it was to make it consistent with native physical CPU hotplug. It
also replaced some other xen-specific mechanism to allow the domain to
control when the cpu was actually added (I forget the details; something
like "cpus allowed" vs "cpus active" or something?).
> FWIW I use a udev rule to bring up CPUs as they are added, which is
> equivalent to the old behaviour:
>
> ACTION=="add", SUBSYSTEM=="cpu", RUN+="/bin/sh -c '[ ! -e /sys$devpath/online ] || echo 1 > /sys$devpath/online'"
>
Fedora and RHEL have been shipping with something like this for a while.
J
next prev parent reply other threads:[~2010-05-11 17:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-11 9:34 cpu_down() but no cpu_up() in drivers/xen/cpu_hotplug.c ? Jan Beulich
2010-05-11 9:45 ` Ian Campbell
2010-05-11 11:30 ` Dietmar Hahn
2010-05-11 17:40 ` Jeremy Fitzhardinge [this message]
2010-05-12 3:25 ` Jiang, Yunhong
2010-05-12 16:26 ` Jeremy Fitzhardinge
2010-05-13 2:48 ` Jiang, Yunhong
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=4BE9967F.7080409@goop.org \
--to=jeremy@goop.org \
--cc=Ian.Campbell@citrix.com \
--cc=JBeulich@novell.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 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.