qemu_system_reset: we need to call it before loadvm/migration

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Juan Quintela 2009-11-12 00:39:13 +01:00 committed by Anthony Liguori
parent 2966b390d0
commit 504c2948d3

2
vl.c
View File

@ -4044,7 +4044,6 @@ static void main_loop(void)
qemu_system_ready = 1;
qemu_cond_broadcast(&qemu_system_cond);
#endif
qemu_system_reset();
for (;;) {
do {
@ -5835,6 +5834,7 @@ int main(int argc, char **argv, char **envp)
rom_load_all();
qemu_system_reset();
if (loadvm) {
if (load_vmstate(cur_mon, loadvm) < 0) {
autostart = 0;