From: Dietmar Hahn Subject: Re: [PATCH] dom0 vcpu set problem Date: Tue, 11 May 2010 11:07:30 +0200 Message-ID: <201005111107.30550.dietmar.hahn@ts.fujitsu.com> References: <201005110819.47801.dietmar.hahn@ts.fujitsu.com> <4BE92223020000780000239C@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4BE92223020000780000239C@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Jeremy Fitzhardinge , Jan Beulich List-Id: xen-devel@lists.xenproject.org Am 11.05.2010 schrieb Jan Beulich: > >>> Dietmar Hahn 11.05.10 08:19 >>> > >Can anybody point me where in the code the acpi cpu hotplug gets triggered to > >add the vcpu again to the dom0 kernel after setting the xenstore! > > No, ACPI hotplug code is not involved in pv domains' vCPU adding or > removal. Instead, the pv kernels create a xenstore watch on their > domain's "cpu" node, reading cpu//availability when the watch > fires. See drivers/xen/core/cpu_hotplug.c (for the forward ported > kernels) or drivers/xen/cpu_hotplug.c (for the pv-ops ones). > > Jan It's the pv-ops kernel from within the xen-4.0-testing.hg tree. Thanks, Jan ;-) Pointing to the right place I found a missing cpu_up() call in the vcpu_hotplug() function. Now all my vcpus are back again on my machine ;-) Thanks. Dietmar. Signed-off-by: Dietmar Hahn diff --git a/drivers/xen/cpu_hotplug.c b/drivers/xen/cpu_hotplug.c index bdfd584..f3f0c1e 100644 --- a/drivers/xen/cpu_hotplug.c +++ b/drivers/xen/cpu_hotplug.c @@ -49,6 +49,7 @@ static void vcpu_hotplug(unsigned int cpu) switch (vcpu_online(cpu)) { case 1: enable_hotplug_cpu(cpu); + (void)cpu_up(cpu); break; case 0: (void)cpu_down(cpu); -- Company details: http://ts.fujitsu.com/imprint.html