[PATCH] KVM: More msr misery
authorAvi Kivity <avi@qumranet.com>
Sat, 30 Dec 2006 00:49:51 +0000 (16:49 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 30 Dec 2006 18:56:44 +0000 (10:56 -0800)
These msrs are referenced by benchmarking software when pretending to be an
Intel cpu.

Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/kvm/kvm_main.c

index 567121d9142aafac3cac5b88a33caf3977ce313a..0e618bcfe1dad5076f431ec8c412fd43f1cbb22c 100644 (file)
@@ -1122,11 +1122,15 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata)
        case MSR_IA32_MC0_MISC+12:
        case MSR_IA32_MC0_MISC+16:
        case MSR_IA32_UCODE_REV:
+       case MSR_IA32_PERF_STATUS:
                /* MTRR registers */
        case 0xfe:
        case 0x200 ... 0x2ff:
                data = 0;
                break;
+       case 0xcd: /* fsb frequency */
+               data = 3;
+               break;
        case MSR_IA32_APICBASE:
                data = vcpu->apic_base;
                break;