Message ID | 20090227164405.GA10181@amt.cnet (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 2511708..d7236f6 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -548,15 +548,13 @@ static int do_set_msr(struct kvm_vcpu *vcpu, unsigned index, u64 *data) static void kvm_write_wall_clock(struct kvm *kvm, gpa_t wall_clock) { - static int version; + int version = 1; struct pvclock_wall_clock wc; struct timespec now, sys, boot; if (!wall_clock) return; - version++; - kvm_write_guest(kvm, wall_clock, &version, sizeof(version)); /*