summary refs log tree commit diff stats
path: root/hw/core/qdev-properties-system.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2014-09-05 10:52:45 -0300
committerPaolo Bonzini <pbonzini@redhat.com>2014-09-16 11:11:38 +0200
commit9a48bcd1b82494671c111109b0eefdb882581499 (patch)
treeba4f2691dd1d806f617754eb4ee1d5f68ed53008 /hw/core/qdev-properties-system.c
parent317b0a6d8ba44e9bf8f9c3dbd776c4536843d82c (diff)
downloadfocaccia-qemu-9a48bcd1b82494671c111109b0eefdb882581499.tar.gz
focaccia-qemu-9a48bcd1b82494671c111109b0eefdb882581499.zip
kvmclock: Ensure time in migration never goes backward
When we migrate we ask the kernel about its current belief on what the guest
time would be. However, I've seen cases where the kvmclock guest structure
indicates a time more recent than the kvm returned time.

To make sure we never go backwards, calculate what the guest would have seen as time at the point of migration and use that value instead of the kernel returned one when it's more recent.
This bases the view of the kvmclock after migration on the
same foundation in host as well as guest.

Signed-off-by: Alexander Graf <agraf@suse.de>
Cc: qemu-stable@nongnu.org
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/core/qdev-properties-system.c')
0 files changed, 0 insertions, 0 deletions