mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
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>
This commit is contained in:
parent
2993683b0f
commit
6afb4721f3
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ static void cpu_common_realizefn(DeviceState *dev, Error **errp)
|
|||
|
||||
if (dev->hotplugged) {
|
||||
cpu_synchronize_post_init(cpu);
|
||||
cpu_resume(cpu);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue