aboutsummaryrefslogtreecommitdiff
path: root/qom
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2013-04-23 10:29:38 +0200
committerAndreas Färber <afaerber@suse.de>2013-05-01 13:04:17 +0200
commit6afb4721f3e45da727110470a61aafcd6682395e (patch)
tree976e8e6d96a8b04969ef19c0b8dd6980608d4985 /qom
parent2993683b0fde0f836777c945baaddcaa5937903f (diff)
cpu: Resume CPU from DeviceClass::realize() if hot-plugged
Signed-off-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'qom')
-rw-r--r--qom/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qom/cpu.c b/qom/cpu.c
index 66f7c00c29..b91213e6b1 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);
}
}