Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197841
b: refs/heads/master
c: 371bcf6
h: refs/heads/master
i:
  197839: 6b76f12
v: v3
  • Loading branch information
Glauber Costa authored and Avi Kivity committed May 19, 2010
1 parent 7273877 commit 6fb7555
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3a0d7256a6fb8c13f9fac6cd63250f97a8f0d8de
refs/heads/master: 371bcf646d170ee1325abaf4f3e73485b4fd4d2d
5 changes: 4 additions & 1 deletion trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,8 @@ static void kvm_write_guest_time(struct kvm_vcpu *v)
vcpu->hv_clock.system_time = ts.tv_nsec +
(NSEC_PER_SEC * (u64)ts.tv_sec) + v->kvm->arch.kvmclock_offset;

vcpu->hv_clock.flags = 0;

/*
* The interface expects us to write an even number signaling that the
* update is finished. Since the guest won't see the intermediate
Expand Down Expand Up @@ -1984,7 +1986,8 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
case KVM_CPUID_FEATURES:
entry->eax = (1 << KVM_FEATURE_CLOCKSOURCE) |
(1 << KVM_FEATURE_NOP_IO_DELAY) |
(1 << KVM_FEATURE_CLOCKSOURCE2);
(1 << KVM_FEATURE_CLOCKSOURCE2) |
(1 << KVM_FEATURE_CLOCKSOURCE_STABLE_BIT);
entry->ebx = 0;
entry->ecx = 0;
entry->edx = 0;
Expand Down

0 comments on commit 6fb7555

Please sign in to comment.