We report 0 for perf capabilities because we don't want to support perf tools yet, and we report 0 for MCG to prevent linux from trying to setup machine checks.
Signed-off-by: Gan Shun <[email protected]> Change-Id: Ieef80e16536a8448a570b69342e4a58ef82b15f0 --- kern/arch/x86/vmm/vmm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kern/arch/x86/vmm/vmm.c b/kern/arch/x86/vmm/vmm.c index 072f320..c0172d6 100644 --- a/kern/arch/x86/vmm/vmm.c +++ b/kern/arch/x86/vmm/vmm.c @@ -268,14 +268,16 @@ struct emmsr emmsrs[] = { {MSR_PEBS_LD_LAT_THRESHOLD, "MSR_PEBS_LD_LAT_THRESHOLD", emsr_ok}, // aaaaaahhhhhhhhhhhhhhhhhhhhh {MSR_ARCH_PERFMON_EVENTSEL0, "MSR_ARCH_PERFMON_EVENTSEL0", emsr_ok}, - {MSR_ARCH_PERFMON_EVENTSEL1, "MSR_ARCH_PERFMON_EVENTSEL0", emsr_ok}, - {MSR_IA32_PERF_CAPABILITIES, "MSR_IA32_PERF_CAPABILITIES", emsr_ok}, + {MSR_ARCH_PERFMON_EVENTSEL1, "MSR_ARCH_PERFMON_EVENTSEL1", emsr_ok}, + {MSR_IA32_PERF_CAPABILITIES, "MSR_IA32_PERF_CAPABILITIES", emsr_readzero}, // unsafe. {MSR_IA32_APICBASE, "MSR_IA32_APICBASE", emsr_fake_apicbase}, // mostly harmless. {MSR_TSC_AUX, "MSR_TSC_AUX", emsr_fakewrite}, {MSR_RAPL_POWER_UNIT, "MSR_RAPL_POWER_UNIT", emsr_readzero}, + {MSR_IA32_MCG_CAP, "MSR_IA32_MCG_CAP", emsr_readzero}, + {MSR_IA32_DEBUGCTLMSR, "MSR_IA32_DEBUGCTLMSR", emsr_fakewrite}, // TBD {MSR_IA32_TSC_DEADLINE, "MSR_IA32_TSC_DEADLINE", emsr_fakewrite}, -- 2.8.0.rc3.226.g39d4020 -- You received this message because you are subscribed to the Google Groups "Akaros" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
