From: Igor Mammedov Date: Tue, 23 Apr 2013 08:29:38 +0000 (+0200) Subject: cpu: Resume CPU from DeviceClass::realize() if hot-plugged X-Git-Tag: v1.5.0-rc0~37^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6afb4721f3e45da727110470a61aafcd6682395e;p=thirdparty%2Fqemu.git cpu: Resume CPU from DeviceClass::realize() if hot-plugged Signed-off-by: Igor Mammedov Signed-off-by: Andreas Färber --- diff --git a/qom/cpu.c b/qom/cpu.c index 66f7c00c29e..b91213e6b1c 100644 --- 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); } }