Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215911
b: refs/heads/master
c: 34c238a
h: refs/heads/master
i:
  215909: 3363763
  215907: 8134c67
  215903: f15d970
v: v3
  • Loading branch information
Zachary Amsden authored and Avi Kivity committed Oct 24, 2010
1 parent 289187d commit a371a68
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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: 5f4e3f882731c65b5d64a2ff743fda96eaebb9ee
refs/heads/master: 34c238a1d1832d7b1f655641f52782e86396b30a
12 changes: 6 additions & 6 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ static void kvm_write_wall_clock(struct kvm *kvm, gpa_t wall_clock)

/*
* The guest calculates current wall clock time by adding
* system time (updated by kvm_write_guest_time below) to the
* system time (updated by kvm_guest_time_update below) to the
* wall clock specified here. guest system time equals host
* system time for us, thus we must fill in host boot time here.
*/
Expand Down Expand Up @@ -1032,7 +1032,7 @@ void kvm_write_tsc(struct kvm_vcpu *vcpu, u64 data)
}
EXPORT_SYMBOL_GPL(kvm_write_tsc);

static int kvm_write_guest_time(struct kvm_vcpu *v)
static int kvm_guest_time_update(struct kvm_vcpu *v)
{
unsigned long flags;
struct kvm_vcpu_arch *vcpu = &v->arch;
Expand All @@ -1052,7 +1052,7 @@ static int kvm_write_guest_time(struct kvm_vcpu *v)
local_irq_restore(flags);

if (unlikely(this_tsc_khz == 0)) {
kvm_make_request(KVM_REQ_KVMCLOCK_UPDATE, v);
kvm_make_request(KVM_REQ_CLOCK_UPDATE, v);
return 1;
}

Expand Down Expand Up @@ -1128,7 +1128,7 @@ static int kvm_request_guest_time_update(struct kvm_vcpu *v)

if (!vcpu->time_page)
return 0;
kvm_make_request(KVM_REQ_KVMCLOCK_UPDATE, v);
kvm_make_request(KVM_REQ_CLOCK_UPDATE, v);
return 1;
}

Expand Down Expand Up @@ -5041,8 +5041,8 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)
kvm_mmu_unload(vcpu);
if (kvm_check_request(KVM_REQ_MIGRATE_TIMER, vcpu))
__kvm_migrate_timers(vcpu);
if (kvm_check_request(KVM_REQ_KVMCLOCK_UPDATE, vcpu)) {
r = kvm_write_guest_time(vcpu);
if (kvm_check_request(KVM_REQ_CLOCK_UPDATE, vcpu)) {
r = kvm_guest_time_update(vcpu);
if (unlikely(r))
goto out;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#define KVM_REQ_PENDING_TIMER 5
#define KVM_REQ_UNHALT 6
#define KVM_REQ_MMU_SYNC 7
#define KVM_REQ_KVMCLOCK_UPDATE 8
#define KVM_REQ_CLOCK_UPDATE 8
#define KVM_REQ_KICK 9
#define KVM_REQ_DEACTIVATE_FPU 10
#define KVM_REQ_EVENT 11
Expand Down

0 comments on commit a371a68

Please sign in to comment.