Changeset 47988 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Aug 22, 2013 1:01:54 PM (11 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r47942 r47988 1103 1103 case MSR_IA32_MC0_CTL: 1104 1104 case MSR_IA32_MC0_STATUS: 1105 case MSR_RAPL_POWER_UNIT: 1105 1106 *puValue = 0; 1106 1107 if (CPUMGetGuestCpuVendor(pVCpu->CTX_SUFF(pVM)) != CPUMCPUVENDOR_INTEL) … … 1108 1109 Log(("MSR %#x is Intel, the virtual CPU isn't an Intel one -> #GP\n", idMsr)); 1109 1110 rc = VERR_CPUM_RAISE_GP_0; 1111 break; 1112 } 1113 1114 /* Provide more plausive values for some of them. */ 1115 switch (idMsr) 1116 { 1117 case MSR_RAPL_POWER_UNIT: 1118 *puValue = RT_MAKE_U32_FROM_U8(3 /* power units (1/8 W)*/, 1119 16 /* 15.3 micro-Joules */, 1120 10 /* 976 microseconds increments */, 1121 0); 1122 break; 1110 1123 } 1111 1124 break; -
trunk/src/VBox/VMM/VMMAll/IEMAllCImpl.cpp.h
r47821 r47988 4668 4668 if (rc != VINF_SUCCESS) 4669 4669 { 4670 #ifdef IN_RING3 4671 static uint32_t s_cTimes = 0; 4672 if (s_cTimes++ < 10) 4673 LogRel(("IEM: rdmsr(%#x) -> GP(0)\n", pCtx->ecx)); 4674 #endif 4670 4675 Log(("IEM: rdmsr(%#x) -> GP(0)\n", pCtx->ecx)); 4671 4676 AssertMsgReturn(rc == VERR_CPUM_RAISE_GP_0, ("%Rrc\n", rc), VERR_IPE_UNEXPECTED_STATUS);
Note:
See TracChangeset
for help on using the changeset viewer.