aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorNikola Ciprich <extmaillist@linuxbox.cz>2011-03-09 17:36:51 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2011-03-17 12:08:33 -0400
commit1aa8ceef0312a6aae7dd863a120a55f1637b361d (patch)
treef2041ac82b23e7372bc9e7843c0cf26d8d672018 /arch/x86/kvm/x86.c
parent399a40c92d744feebf89b1f07208407c26e0aaf5 (diff)
KVM: fix kvmclock regression due to missing clock update
commit 387b9f97750444728962b236987fbe8ee8cc4f8c moved kvm_request_guest_time_update(vcpu), breaking 32bit SMP guests using kvm-clock. Fix this by moving (new) clock update function to proper place. Signed-off-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz> Acked-by: Zachary Amsden <zamsden@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 01f08a65d09b..f1e4025f1ae2 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2127,8 +2127,8 @@ void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
2127 if (check_tsc_unstable()) { 2127 if (check_tsc_unstable()) {
2128 kvm_x86_ops->adjust_tsc_offset(vcpu, -tsc_delta); 2128 kvm_x86_ops->adjust_tsc_offset(vcpu, -tsc_delta);
2129 vcpu->arch.tsc_catchup = 1; 2129 vcpu->arch.tsc_catchup = 1;
2130 kvm_make_request(KVM_REQ_CLOCK_UPDATE, vcpu);
2131 } 2130 }
2131 kvm_make_request(KVM_REQ_CLOCK_UPDATE, vcpu);
2132 if (vcpu->cpu != cpu) 2132 if (vcpu->cpu != cpu)
2133 kvm_migrate_timers(vcpu); 2133 kvm_migrate_timers(vcpu);
2134 vcpu->cpu = cpu; 2134 vcpu->cpu = cpu;