Reset system before loadvm
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 14 Jun 2011 16:29:45 +0000 (18:29 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 16 Jun 2011 14:42:40 +0000 (11:42 -0300)
commit745bb7ace99f384474a3b5d8c70c2d1de11068e3
treed37d14601537b65a8235724214faa06cfaf91c59
parent8d5a2cdb854989e7500ac75fee74ea7d2c006a7c
Reset system before loadvm

In case we load the vmstate during incoming migration, we start from a
clean, default machine state as we went through system reset before. But
if we load from a snapshot, the machine can be in any state. That can
cause troubles if loading an older image which does not carry all state
information the executing QEMU requires. Hardly any device takes care of
this scenario.

However, fixing this is trivial. We just need to issue a system reset
during loadvm as well.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
savevm.c