qemu-e2k/hw/i386/kvm
Alexander Graf 9a48bcd1b8 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-09-16 11:11:38 +02:00
..
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-09-16 11:11:38 +02:00
i8254.c pit: fix pit interrupt can't inject into vm after migration 2014-09-16 10:40:38 +02: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
Makefile.objs hw: move hw/kvm/ to hw/i386/kvm 2013-04-08 18:13:16 +02:00
pci-assign.c memory: add parameter errp to memory_region_init_ram 2014-09-09 13:41:43 +02:00