Blame SOURCES/kvm-Revert-kvmclock-Ensure-proper-env-tsc-value-for-kvmc.patch

958e1b
From 51db6795c68e1d00373d373c043543bbc6fb8f08 Mon Sep 17 00:00:00 2001
958e1b
From: "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com>
958e1b
Date: Wed, 22 Oct 2014 09:46:33 +0200
958e1b
Subject: [PATCH 2/6] Revert "kvmclock: Ensure proper env->tsc value for
958e1b
 kvmclock_current_nsec calculation"
958e1b
958e1b
Message-id: <1413971197-4624-2-git-send-email-dgilbert@redhat.com>
958e1b
Patchwork-id: 61789
958e1b
O-Subject: [RHEL-7.1 qemu-kvm PATCH 1/5] Revert "kvmclock: Ensure proper env->tsc value for kvmclock_current_nsec calculation"
958e1b
Bugzilla: 1098602 1130428
958e1b
RH-Acked-by: Marcelo Tosatti <mtosatti@redhat.com>
958e1b
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
958e1b
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
958e1b
958e1b
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
958e1b
958e1b
This reverts commit da4fe791cecafbec05395041c52cb545308b1b61.
958e1b
958e1b
The equivalent upstream revert is Paolo's 108e4c3871e0d0cd185c
958e1b
958e1b
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
958e1b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
958e1b
---
958e1b
 hw/i386/kvm/clock.c | 4 ----
958e1b
 1 file changed, 4 deletions(-)
958e1b
958e1b
diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c
958e1b
index d52c2ea..1f2a26e 100644
958e1b
--- a/hw/i386/kvm/clock.c
958e1b
+++ b/hw/i386/kvm/clock.c
958e1b
@@ -17,7 +17,6 @@
958e1b
 #include "qemu/host-utils.h"
958e1b
 #include "sysemu/sysemu.h"
958e1b
 #include "sysemu/kvm.h"
958e1b
-#include "sysemu/cpus.h"
958e1b
 #include "hw/sysbus.h"
958e1b
 #include "hw/kvm/clock.h"
958e1b
 
958e1b
@@ -61,7 +60,6 @@ static uint64_t kvmclock_current_nsec(KVMClockState *s)
958e1b
 
958e1b
     cpu_physical_memory_read(kvmclock_struct_pa, &time, sizeof(time));
958e1b
 
958e1b
-    assert(time.tsc_timestamp <= migration_tsc);
958e1b
     delta = migration_tsc - time.tsc_timestamp;
958e1b
     if (time.tsc_shift < 0) {
958e1b
         delta >>= -time.tsc_shift;
958e1b
@@ -120,8 +118,6 @@ static void kvmclock_vm_state_change(void *opaque, int running,
958e1b
         if (s->clock_valid) {
958e1b
             return;
958e1b
         }
958e1b
-
958e1b
-        cpu_synchronize_all_states();
958e1b
         ret = kvm_vm_ioctl(kvm_state, KVM_GET_CLOCK, &data);
958e1b
         if (ret < 0) {
958e1b
             fprintf(stderr, "KVM_GET_CLOCK failed: %s\n", strerror(ret));
958e1b
-- 
958e1b
1.8.3.1
958e1b