diff options
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 218949cce1a0..992ab7115871 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -1312,16 +1312,19 @@ static int svm_set_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 data) | |||
1312 | case MSR_K7_EVNTSEL1: | 1312 | case MSR_K7_EVNTSEL1: |
1313 | case MSR_K7_EVNTSEL2: | 1313 | case MSR_K7_EVNTSEL2: |
1314 | case MSR_K7_EVNTSEL3: | 1314 | case MSR_K7_EVNTSEL3: |
1315 | case MSR_K7_PERFCTR0: | ||
1316 | case MSR_K7_PERFCTR1: | ||
1317 | case MSR_K7_PERFCTR2: | ||
1318 | case MSR_K7_PERFCTR3: | ||
1315 | /* | 1319 | /* |
1316 | * only support writing 0 to the performance counters for now | 1320 | * Just discard all writes to the performance counters; this |
1317 | * to make Windows happy. Should be replaced by a real | 1321 | * should keep both older linux and windows 64-bit guests |
1318 | * performance counter emulation later. | 1322 | * happy |
1319 | */ | 1323 | */ |
1320 | if (data != 0) | 1324 | pr_unimpl(vcpu, "unimplemented perfctr wrmsr: 0x%x data 0x%llx\n", ecx, data); |
1321 | goto unhandled; | 1325 | |
1322 | break; | 1326 | break; |
1323 | default: | 1327 | default: |
1324 | unhandled: | ||
1325 | return kvm_set_msr_common(vcpu, ecx, data); | 1328 | return kvm_set_msr_common(vcpu, ecx, data); |
1326 | } | 1329 | } |
1327 | return 0; | 1330 | return 0; |