All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: "Jiang, Yunhong" <yunhong.jiang@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	Jan Beulich <JBeulich@novell.com>
Subject: Re: cpu_down() but no cpu_up() in	drivers/xen/cpu_hotplug.c ?
Date: Wed, 12 May 2010 09:26:40 -0700	[thread overview]
Message-ID: <4BEAD6C0.9010902@goop.org> (raw)
In-Reply-To: <789F9655DD1B8F43B48D77C5D30659731E5F1EEC@shsmsx501.ccr.corp.intel.com>

On 05/11/2010 08:25 PM, Jiang, Yunhong wrote:
>> 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?).
>>     
> I remember for cpu remove, the xen's vcpu is different to native method. In native, it will only trigger a uevent to user space (at least in version like 2.6.31), while for xen vcpu, it will remove the vcpu directly.
>   

I would think that Xen and native are much the same; if you pull out a
physical CPU from the system, that's in no way advisory ;)  Similarly,
if you remove a vcpu from a guest, that's an external policy being
imposed onto the guest, and it doesn't get much say in the matter,
beyond being able to clean up before the vcpu goes away.

If the domain wants to stop using a vcpu, it can simply do that by
soft-downing the vcpu, but it remains attached to the domain (again,
analogous to the native case).

    J

  reply	other threads:[~2010-05-12 16:26 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
2010-05-12  3:25     ` Jiang, Yunhong
2010-05-12 16:26       ` Jeremy Fitzhardinge [this message]
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=4BEAD6C0.9010902@goop.org \
    --to=jeremy@goop.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=JBeulich@novell.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=yunhong.jiang@intel.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.