qemu-irix/hw/i386/kvm
Alexander Graf a096b3a673 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>
2014-05-21 12:01:45 +02:00
..
Makefile.objs
apic.c apic: QOM'ify APIC 2013-12-24 18:02:18 +01:00
clock.c kvmclock: Ensure time in migration never goes backward 2014-05-21 12:01:45 +02:00
i8254.c qdev: Add enum property types to QAPI schema 2014-02-14 21:12:05 +01:00
i8259.c memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
ioapic.c ioapic: QOM'ify ioapic 2013-12-24 18:02:18 +01:00
pci-assign.c pci-assign: limit # of msix vectors 2014-05-13 13:12:40 +02:00