WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] cpu_down() but no cpu_up() in drivers/xen/cpu_hotplug.c

To: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Subject: Re: [Xen-devel] cpu_down() but no cpu_up() in drivers/xen/cpu_hotplug.c ?
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Wed, 12 May 2010 09:26:40 -0700
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Campbell <Ian.Campbell@xxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxxxx>
Delivery-date: Wed, 12 May 2010 09:34:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <789F9655DD1B8F43B48D77C5D30659731E5F1EEC@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4BE940C80200007800002410@xxxxxxxxxxxxxxxxxx> <1273571127.7572.2905.camel@xxxxxxxxxxxxxxxxxxxxxx> <4BE9967F.7080409@xxxxxxxx> <789F9655DD1B8F43B48D77C5D30659731E5F1EEC@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc12 Lightning/1.0b2pre Thunderbird/3.0.4
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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel