aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/x86.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 422ef5ed2194..fd766214d9da 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2627,7 +2627,12 @@ void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
2627 kvm_x86_ops->write_tsc_offset(vcpu, offset); 2627 kvm_x86_ops->write_tsc_offset(vcpu, offset);
2628 vcpu->arch.tsc_catchup = 1; 2628 vcpu->arch.tsc_catchup = 1;
2629 } 2629 }
2630 kvm_make_request(KVM_REQ_CLOCK_UPDATE, vcpu); 2630 /*
2631 * On a host with synchronized TSC, there is no need to update
2632 * kvmclock on vcpu->cpu migration
2633 */
2634 if (!vcpu->kvm->arch.use_master_clock || vcpu->cpu == -1)
2635 kvm_make_request(KVM_REQ_CLOCK_UPDATE, vcpu);
2631 if (vcpu->cpu != cpu) 2636 if (vcpu->cpu != cpu)
2632 kvm_migrate_timers(vcpu); 2637 kvm_migrate_timers(vcpu);
2633 vcpu->cpu = cpu; 2638 vcpu->cpu = cpu;