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

[Xen-devel] HVM vcpu hotplug (was: shutdown/reboot/sysrq/vcpu-set from d

To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: [Xen-devel] HVM vcpu hotplug (was: shutdown/reboot/sysrq/vcpu-set from dom0 to HVM guest)
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Thu, 2 Sep 2010 14:21:52 +0100
Cc: Frédéric VANNIÈRE <frederic@xxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Jeremy, Fitzhardinge <Jeremy.Fitzhardinge@xxxxxxxxxx>
Delivery-date: Thu, 02 Sep 2010 06:22:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.2.00.1009011849550.2714@kaball-desktop>
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: <3B74153E-F008-4882-B7DB-151ECF6FC379@xxxxxxxxxxx> <alpine.DEB.2.00.1009011849550.2714@kaball-desktop>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Wed, 1 Sep 2010, Stefano Stabellini wrote:
> > 
> > For the cpu-set I've modified the file 
> > linux-2.6.36-rc3/drivers/xen/cpu_hotplug.c and the check fo pv_domain in 
> > setup_vcpu_hotlug_event(void).  And then I can remove CPUs but not add some 
> >  :
> > 
> >     xl vcpu-set DOMID 2 -> "CPU 2 is now offline / CPU 3 is now offline" 
> > 
> > I've tried the same modification on ballooning driver and hvc console one 
> > but it gave me a kernel panic ...
> > 
> 
> In my tree both the ballooning driver and the hvc console should work
> correctly on hvm.
> Regarding the pv cpu hotplug mechanism, I don't think is a good idea to
> enable it on hvm: there must be an alternative fully virtualized way to
> hotplug a cpu into a non-pv guest, like Windows, and that should work
> for pv on hvm guests too.
 
I have done some testing on cpu hotplug for hvm guests and it turns out
that it is currently broken on xen-unstable.
I have just sent two patches to fix it.
Once they got applied you should be able to specify the maximum number
of vcpus using the "maxvcpus" parameter in your config file; then use
vcpu-set to dynamically change the number of vcpus in the guest.
Linux needs to be compiled with CONFIG_ACPI_HOTPLUG_CPU=y in order for
this to work.
Once you hotplug a new cpu in the guest you also need to enable it
manually, with the following command:

echo -n 1 > /sys/devices/system/cpu/cpu$CPUNUMBER/online


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