VirtualBox

Changeset 52676 in vbox


Ignore:
Timestamp:
Sep 10, 2014 2:06:18 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96000
Message:

VMM/GIM/Minimal: round up while reporting the frequency in KHz.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/GIMMinimal.cpp

    r52675 r52676  
    8282        HyperLeaf.uLeaf        = UINT32_C(0x40000010);
    8383        HyperLeaf.uEax         = TMCpuTicksPerSecond(pVM) / UINT64_C(1000);
    84         HyperLeaf.uEbx         = uApicFreq / UINT64_C(1000);
     84        HyperLeaf.uEbx         = (uApicFreq + 500) / UINT64_C(1000);
    8585        rc = CPUMR3CpuIdInsert(pVM, &HyperLeaf);
    8686        AssertLogRelRCReturn(rc, rc);
Note: See TracChangeset for help on using the changeset viewer.

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