VirtualBox

Changeset 50800 in vbox


Ignore:
Timestamp:
Mar 17, 2014 12:59:48 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HMR0: Start with invalid Cpu Ids while initializing, resetting HMGLOBALCPUINFO structs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMR0.cpp

    r50789 r50800  
    614614    g_HvmR0.EnableAllCpusOnce = s_OnceInit;
    615615    for (unsigned i = 0; i < RT_ELEMENTS(g_HvmR0.aCpuInfo); i++)
     616    {
    616617        g_HvmR0.aCpuInfo[i].hMemObj = NIL_RTR0MEMOBJ;
     618        g_HvmR0.aCpuInfo[i].idCpu   = NIL_RTCPUID;
     619    }
    617620
    618621    /* Fill in all callbacks with placeholders. */
     
    11011104
    11021105        pCpu->fConfigured = false;
     1106        pCpu->idCpu = NIL_RTCPUID;
    11031107    }
    11041108    else
     
    13901394    /* Reload host-state (back from ring-3/migrated CPUs) and shared guest/host bits. */
    13911395    HMCPU_CF_SET(pVCpu, HM_CHANGED_HOST_CONTEXT | HM_CHANGED_HOST_GUEST_SHARED_STATE);
     1396
     1397    Assert(pCpu->idCpu == idCpu && pCpu->idCpu != NIL_RTCPUID);
    13921398    pVCpu->hm.s.idEnteredCpu = idCpu;
    13931399    return rc;
     
    14671473        AssertRCReturn(rc, rc);
    14681474        Assert(!pCpu->fConfigured);
     1475        Assert(pCpu->idCpu == NIL_RTCPUID);
    14691476
    14701477        /* For obtaining a non-zero ASID/VPID on next re-entry. */
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