VirtualBox

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


Ignore:
Timestamp:
Apr 29, 2013 1:28:34 PM (12 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Reset TSC to 0 on CPUMR3ResetCpu().

File:
1 edited

Legend:

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

    r45752 r45812  
    855855    bool fCmpXchg16b;
    856856    rc = CFGMR3QueryBoolDef(pCpumCfg, "CMPXCHG16B", &fCmpXchg16b, false); AssertRCReturn(rc, rc);
    857    
     857
    858858    bool fMonitor;
    859859    rc = CFGMR3QueryBoolDef(pCpumCfg, "MONITOR", &fMonitor, true); AssertRCReturn(rc, rc);
     
    15571557    pCtx->msrPAT                    = UINT64_C(0x0007040600070406); /** @todo correct? */
    15581558
    1559     /* Reset EFER; see AMD64 Architecture Programmer's Manual Volume 2: Table 14-1. Initial Processor State
    1560     * The Intel docs don't mention it.
    1561     */
    1562     pCtx->msrEFER                   = 0;
     1559    /* EFER MBZ; see AMD64 Architecture Programmer's Manual Volume 2: Table 14-1. Initial Processor State.
     1560     * The Intel docs don't mention it. */
     1561    Assert(!pCtx->msrEFER);
     1562
     1563    /* TSC must be 0. Intel spec. Table 9-1. "IA-32 Processor States Following Power-up, Reset, or INIT." */
     1564    CPUMSetGuestMsr(pVCpu, MSR_IA32_TSC, 0);
    15631565
    15641566    /*
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