VirtualBox

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


Ignore:
Timestamp:
Jun 19, 2014 3:25:54 AM (10 years ago)
Author:
vboxsync
Message:

VMM/GIM: Bits, try to find out why it breaks on mac2-rel.

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

Legend:

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

    r51643 r51658  
    55
    66/*
    7  * Copyright (C) 2006-2013 Oracle Corporation
     7 * Copyright (C) 2006-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
  • trunk/src/VBox/VMM/VMMAll/GIMAllHv.cpp

    r51644 r51658  
    7979        case MSR_GIM_HV_TIME_REF_COUNT:
    8080        {
     81            /** @todo r=ramshankar: Shouldn't we add the TSC offset here? */
    8182            /* Hyper-V reports the time in 100 ns units (10 MHz). */
    8283            uint64_t u64Tsc      = TMCpuTickGet(pVCpu);
  • trunk/src/VBox/VMM/VMMR3/GIMHv.cpp

    r51647 r51658  
    474474        uint64_t const u64TscKHz = TMCpuTicksPerSecond(pVM) / UINT64_C(1000);
    475475        pRefTsc->u32TscSequence  = 1;
    476         pRefTsc->u64TscScale     = (((uint64_t)(10000) << 32) / u64TscKHz) << 32;
     476        pRefTsc->u64TscScale     = UINT64_C(10000) << 32;
     477        pRefTsc->u64TscScale    /= (u64TscKHz << 32);
    477478
    478479        LogRel(("GIM: HyperV: Enabled TSC page at %#RGp (u64TscScale=%#RX64 u64TscKHz=%#RX64)\n", GCPhysTscPage,
  • trunk/src/VBox/VMM/include/GIMHvInternal.h

    r51643 r51658  
    425425/**
    426426 * MMIO2 region indices.
     427 * Note!! Saved-state are dependent on the index values, do -not- change!
    427428 */
    428429/** The hypercall page region. */
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