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>
This commit is contained in:
Avi Kivity 2006-12-29 16:49:51 -08:00 коммит произвёл Linus Torvalds
Родитель 3bab1f5dda
Коммит a8d13ea28b
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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+12:
case MSR_IA32_MC0_MISC+16: case MSR_IA32_MC0_MISC+16:
case MSR_IA32_UCODE_REV: case MSR_IA32_UCODE_REV:
case MSR_IA32_PERF_STATUS:
/* MTRR registers */ /* MTRR registers */
case 0xfe: case 0xfe:
case 0x200 ... 0x2ff: case 0x200 ... 0x2ff:
data = 0; data = 0;
break; break;
case 0xcd: /* fsb frequency */
data = 3;
break;
case MSR_IA32_APICBASE: case MSR_IA32_APICBASE:
data = vcpu->apic_base; data = vcpu->apic_base;
break; break;