aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2006-12-29 19:49:51 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-30 13:56:44 -0500
commita8d13ea28bcb63baf69aba84b61cad4c3ff7adb9 (patch)
tree7ce34541839ed4b55846f329c2861913fc24b707 /drivers/kvm
parent3bab1f5dda3443043cc8fe68c5ae75530339f28f (diff)
[PATCH] KVM: More msr misery
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>
Diffstat (limited to 'drivers/kvm')
-rw-r--r--drivers/kvm/kvm_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index 567121d9142a..0e618bcfe1da 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -1122,11 +1122,15 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata)
1122 case MSR_IA32_MC0_MISC+12: 1122 case MSR_IA32_MC0_MISC+12:
1123 case MSR_IA32_MC0_MISC+16: 1123 case MSR_IA32_MC0_MISC+16:
1124 case MSR_IA32_UCODE_REV: 1124 case MSR_IA32_UCODE_REV:
1125 case MSR_IA32_PERF_STATUS:
1125 /* MTRR registers */ 1126 /* MTRR registers */
1126 case 0xfe: 1127 case 0xfe:
1127 case 0x200 ... 0x2ff: 1128 case 0x200 ... 0x2ff:
1128 data = 0; 1129 data = 0;
1129 break; 1130 break;
1131 case 0xcd: /* fsb frequency */
1132 data = 3;
1133 break;
1130 case MSR_IA32_APICBASE: 1134 case MSR_IA32_APICBASE:
1131 data = vcpu->apic_base; 1135 data = vcpu->apic_base;
1132 break; 1136 break;