diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-01-15 12:07:31 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-01-15 12:08:25 -0500 |
commit | aab6d7ce37cf20753a336dc74473cf8a8aefa7c0 (patch) | |
tree | a2bf2f03c1226e48ed7ad73b5eb01aa1c21d9972 /arch/x86/kvm | |
parent | f25e656d31ad112612839edaded18920cafea3b1 (diff) |
KVM: remove useless write to vcpu->hv_clock.tsc_timestamp
After the previous patch from Marcelo, the comment before this write
became obsolete. In fact, the write is unnecessary. The calls to
kvm_write_tsc ultimately result in a master clock update as soon as
all TSCs agree and the master clock is re-enabled. This master
clock update will rewrite tsc_timestamp.
So, together with the comment, delete the dead write too.
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 842abd33e9b5..0fbdced78737 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -1278,8 +1278,6 @@ void kvm_write_tsc(struct kvm_vcpu *vcpu, struct msr_data *msr) | |||
1278 | kvm->arch.last_tsc_write = data; | 1278 | kvm->arch.last_tsc_write = data; |
1279 | kvm->arch.last_tsc_khz = vcpu->arch.virtual_tsc_khz; | 1279 | kvm->arch.last_tsc_khz = vcpu->arch.virtual_tsc_khz; |
1280 | 1280 | ||
1281 | /* Reset of TSC must disable overshoot protection below */ | ||
1282 | vcpu->arch.hv_clock.tsc_timestamp = 0; | ||
1283 | vcpu->arch.last_guest_tsc = data; | 1281 | vcpu->arch.last_guest_tsc = data; |
1284 | 1282 | ||
1285 | /* Keep track of which generation this VCPU has synchronized to */ | 1283 | /* Keep track of which generation this VCPU has synchronized to */ |