Changeset 51644 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jun 18, 2014 11:08:40 AM (10 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/GIMAllHv.cpp
r51643 r51644 104 104 105 105 case MSR_GIM_HV_TSC_FREQ: 106 #ifndef IN_RING3 107 return VERR_EM_INTERPRETER; 108 #else 109 LogRel(("GIM: MSR_GIM_HV_TSC_FREQ %u\n", TMCpuTicksPerSecond(pVM))); 110 //*puValue = TMCpuTicksPerSecond(pVM); 111 *puValue = 2690000000; 112 return VINF_SUCCESS; 113 #endif 106 *puValue = TMCpuTicksPerSecond(pVM); 107 return VINF_SUCCESS; 114 108 115 109 case MSR_GIM_HV_APIC_FREQ: -
trunk/src/VBox/VMM/VMMR3/GIMHv.cpp
r51643 r51644 474 474 uint64_t const u64TscKHz = TMCpuTicksPerSecond(pVM) / UINT64_C(1000); 475 475 pRefTsc->u32TscSequence = 1; 476 //pRefTsc->u64TscScale = ((UINT64_C(10000) << 32) / u64TscKHz) << 32; 477 pRefTsc->u64TscScale = 0xf4000000000000; 476 pRefTsc->u64TscScale = ((UINT64_C(10000) << 32) / u64TscKHz) << 32; 478 477 479 478 LogRel(("GIM: HyperV: Enabled TSC page at %#RGp (u64TscScale=%#RX64 u64TscKHz=%#RX64)\n", GCPhysTscPage,
Note:
See TracChangeset
for help on using the changeset viewer.