VirtualBox

Ignore:
Timestamp:
Sep 19, 2013 10:16:57 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HMR0: Start using the HM-context flags macros slowly.

File:
1 edited

Legend:

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

    r48506 r48566  
    13501350    /* On first entry we'll sync everything. */
    13511351    for (VMCPUID i = 0; i < pVM->cCpus; i++)
    1352         pVM->aCpus[i].hm.s.fContextUseFlags = (HM_CHANGED_HOST_CONTEXT | HM_CHANGED_ALL_GUEST);
     1352        VMCPU_HMCF_RESET_TO(&pVM->aCpus[i], HM_CHANGED_HOST_CONTEXT | HM_CHANGED_ALL_GUEST);
    13531353
    13541354    /* Enable VT-x or AMD-V if local init is required. */
     
    13981398
    13991399    /* Reload host-context (back from ring-3/migrated CPUs), reload host context & shared bits. */
    1400     pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_HOST_CONTEXT | HM_CHANGED_HOST_GUEST_SHARED_STATE;
     1400    VMCPU_HMCF_SET(pVCpu, HM_CHANGED_HOST_CONTEXT | HM_CHANGED_HOST_GUEST_SHARED_STATE);
    14011401    pVCpu->hm.s.idEnteredCpu = idCpu;
    14021402    return rc;
     
    14331433    Assert(pCpu);
    14341434    Assert(pCtx);
    1435     Assert(pVCpu->hm.s.fContextUseFlags & (HM_CHANGED_HOST_CONTEXT | HM_CHANGED_HOST_GUEST_SHARED_STATE));
     1435    Assert(VMCPU_HMCF_IS_PENDING(pVCpu, HM_CHANGED_HOST_CONTEXT | HM_CHANGED_HOST_GUEST_SHARED_STATE));
    14361436
    14371437    rc = g_HvmR0.pfnEnterSession(pVM, pVCpu, pCpu);
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