Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103702
b: refs/heads/master
c: 14ae51b
h: refs/heads/master
v: v3
  • Loading branch information
Chris Lalancette authored and Avi Kivity committed Jul 20, 2008
1 parent df71716 commit 2fc4cb3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 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: f697554515b06e8d7264f316b25e6da943407142
refs/heads/master: 14ae51b6c068ef7ab52dc2d53fe226e6189f2ab2
15 changes: 9 additions & 6 deletions trunk/arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1312,16 +1312,19 @@ static int svm_set_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 data)
case MSR_K7_EVNTSEL1:
case MSR_K7_EVNTSEL2:
case MSR_K7_EVNTSEL3:
case MSR_K7_PERFCTR0:
case MSR_K7_PERFCTR1:
case MSR_K7_PERFCTR2:
case MSR_K7_PERFCTR3:
/*
* only support writing 0 to the performance counters for now
* to make Windows happy. Should be replaced by a real
* performance counter emulation later.
* Just discard all writes to the performance counters; this
* should keep both older linux and windows 64-bit guests
* happy
*/
if (data != 0)
goto unhandled;
pr_unimpl(vcpu, "unimplemented perfctr wrmsr: 0x%x data 0x%llx\n", ecx, data);

break;
default:
unhandled:
return kvm_set_msr_common(vcpu, ecx, data);
}
return 0;
Expand Down

0 comments on commit 2fc4cb3

Please sign in to comment.