cpu: Resume CPU from DeviceClass::realize() if hot-plugged
authorIgor Mammedov <imammedo@redhat.com>
Tue, 23 Apr 2013 08:29:38 +0000 (10:29 +0200)
committerAndreas Färber <afaerber@suse.de>
Wed, 1 May 2013 11:04:17 +0000 (13:04 +0200)
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
qom/cpu.c

index 66f7c00c29ec909cb969d0d273b79bc986e0361e..b91213e6b1c407e35fdff6f48ecb0c34507d8df9 100644 (file)
--- a/qom/cpu.c
+++ b/qom/cpu.c
@@ -62,6 +62,7 @@ static void cpu_common_realizefn(DeviceState *dev, Error **errp)
 
     if (dev->hotplugged) {
         cpu_synchronize_post_init(cpu);
+        cpu_resume(cpu);
     }
 }