[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.