[HVM] Hide contents of IA32_MCG_STATUS MSR from the guest.

It can't clear the MCE, and it probably can't understand it anyway.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
This commit is contained in:
Tim Deegan committed 2007-07-18 09:06:41 +01:00
1 parent e82c10cd36
commit 8dc28d5ce5
2 files changed
+9

No files matched your search

+5
View File
@@ -2154,6 +2154,11 @@ static void svm_do_msr_access(
svm_inject_exception(v, TRAP_gp_fault, 1, 0);
break;
case MSR_IA32_MCG_STATUS:
/* No point in letting the guest see real MCEs */
msr_content = 0;
break;
default:
if ( rdmsr_hypervisor_regs(ecx, &eax, &edx) ||
rdmsr_safe(ecx, eax, edx) == 0 )
+4
View File
@@ -2622,6 +2622,10 @@ static int vmx_do_msr_read(struct cpu_user_regs *regs)
break;
case MSR_IA32_VMX_BASIC...MSR_IA32_VMX_PROCBASED_CTLS2:
goto gp_fault;
case MSR_IA32_MCG_STATUS:
/* No point in letting the guest see real MCEs */
msr_content = 0;
break;
default:
switch ( long_mode_do_msr_read(regs) )
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.