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

[Xen-changelog] Domain0 doesn't do initial VCPU hotplug via xenstore.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 3233e3921fddd48b1cf60187d89fffa890affbce
# Parent  bd1298cf0b4d390ea0e0f09f50df1d43ddecf3c8
Domain0 doesn't do initial VCPU hotplug via xenstore.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r bd1298cf0b4d -r 3233e3921fdd 
linux-2.6-xen-sparse/arch/xen/kernel/smpboot.c
--- a/linux-2.6-xen-sparse/arch/xen/kernel/smpboot.c    Tue Oct 18 18:02:14 2005
+++ b/linux-2.6-xen-sparse/arch/xen/kernel/smpboot.c    Tue Oct 18 18:07:03 2005
@@ -313,10 +313,12 @@
                .callback = handle_vcpu_hotplug_event };
        (void)register_xenbus_watch(&cpu_watch);
 
-       for_each_cpu(i)
-               vcpu_hotplug(i);
-
-       printk(KERN_INFO "Brought up %ld CPUs\n", (long)num_online_cpus());
+       if (!(xen_start_info->flags & SIF_INITDOMAIN)) {
+               for_each_cpu(i)
+                       vcpu_hotplug(i);
+               printk(KERN_INFO "Brought up %ld CPUs\n",
+                      (long)num_online_cpus());
+       }
 
        return NOTIFY_DONE;
 }

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


 


Rackspace

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