VirtualBox

Changeset 51644 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jun 18, 2014 11:08:40 AM (10 years ago)
Author:
vboxsync
Message:

VMM/GIM: Fix wrongly committed testing bits.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/GIMAllHv.cpp

    r51643 r51644  
    104104
    105105        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;
    114108
    115109        case MSR_GIM_HV_APIC_FREQ:
  • trunk/src/VBox/VMM/VMMR3/GIMHv.cpp

    r51643 r51644  
    474474        uint64_t const u64TscKHz = TMCpuTicksPerSecond(pVM) / UINT64_C(1000);
    475475        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;
    478477
    479478        LogRel(("GIM: HyperV: Enabled TSC page at %#RGp (u64TscScale=%#RX64 u64TscKHz=%#RX64)\n", GCPhysTscPage,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette