[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel][PATCH] dom0 vcpu set problem
Am 11.05.2010 schrieb Jan Beulich: > >>> Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx> 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/<id>/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 <dietmar.hahn@xxxxxxxxxxxxxx> 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 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |