Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215913
b: refs/heads/master
c: 19b6a85
h: refs/heads/master
i:
  215911: a371a68
v: v3
  • Loading branch information
Arjan Koers authored and Avi Kivity committed Oct 24, 2010
1 parent d436a1d commit 6dc0bf8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: c285545f813d7b0ce989fd34e42ad1fe785dc65d
refs/heads/master: 19b6a85b78a5d4b466c537bdbf0eaecae5e2c4e2
6 changes: 4 additions & 2 deletions trunk/arch/x86/kernel/kvmclock.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,15 @@ static struct clocksource kvm_clock = {
static int kvm_register_clock(char *txt)
{
int cpu = smp_processor_id();
int low, high;
int low, high, ret;

low = (int)__pa(&per_cpu(hv_clock, cpu)) | 1;
high = ((u64)__pa(&per_cpu(hv_clock, cpu)) >> 32);
ret = native_write_msr_safe(msr_kvm_system_time, low, high);
printk(KERN_INFO "kvm-clock: cpu %d, msr %x:%x, %s\n",
cpu, high, low, txt);

return native_write_msr_safe(msr_kvm_system_time, low, high);
return ret;
}

#ifdef CONFIG_X86_LOCAL_APIC
Expand Down

0 comments on commit 6dc0bf8

Please sign in to comment.