]> git.proxmox.com Git - mirror_qemu.git/commit
migration: Do not re-read the clock on pre_save in case of paused guest
authorMaxiwell S. Garcia <maxiwell@linux.ibm.com>
Thu, 29 Aug 2019 21:07:11 +0000 (18:07 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 3 Sep 2019 17:39:46 +0000 (14:39 -0300)
commit417332494602e3edadfae3b759a29fa0bb96223f
treed9af786c08584f1bb97a7a1d76606e013ca4defe
parentc6c1bb89fb46f3b88f832e654cf5a6f7941aac51
migration: Do not re-read the clock on pre_save in case of paused guest

The clock move makes the guest knows about the paused time between the
'stop' and 'migrate' commands. This is an issue in an already-paused
VM because some side effects, like process stalls, could happen
after migration.

So, this patch checks the runstate of guest in the pre_save handler and
do not re-reads the clock in case of paused state (cold migration).

Signed-off-by: Maxiwell S. Garcia <maxiwell@linux.ibm.com>
Message-Id: <20190829210711.6570-1-maxiwell@linux.ibm.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/i386/kvm/clock.c