VirtualBox

Changeset 26081 in vbox for trunk/src/VBox/VMM/PATM


Ignore:
Timestamp:
Jan 28, 2010 9:25:26 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57026
Message:

PATMSSM.cpp: Forward ported r if (*pFixup - (patmInfo.pCPUMCtxGC & UINT32_C(0xffc00000)) < UINT32_C(8192)).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/PATMSSM.cpp

    r25272 r26081  
    11491149        }
    11501150        else
     1151        /* Boldly ASSUMES:
     1152         * 1. That pCPUMCtxGC is in the VM structure and that its location is
     1153         *    at the first page of the same 4 MB chunk.
     1154         * 2. That the forced actions were in the first 32 bytes of the VM
     1155         *    structure.
     1156         * 3. That the CPUM leafs are less than 8KB into the structure. */
    11511157        if (    ulSSMVersion <= PATM_SSM_VERSION_FIXUP_HACK
    1152             &&  *pFixup >= pVM->pVMRC
    1153             &&  *pFixup < pVM->pVMRC + 32)
    1154         {
    1155             LogFlow(("Changing fLocalForcedActions fixup from %x to %x\n", *pFixup, pVM->pVMRC + RT_OFFSETOF(VM, aCpus[0].fLocalForcedActions)));
     1158            &&  *pFixup - (patmInfo.pCPUMCtxGC & UINT32_C(0xffc00000)) < UINT32_C(32))
     1159        {
     1160            LogFlow(("Changing fLocalForcedActions fixup from %RRv to %RRv\n", *pFixup, pVM->pVMRC + RT_OFFSETOF(VM, aCpus[0].fLocalForcedActions)));
    11561161            *pFixup = pVM->pVMRC + RT_OFFSETOF(VM, aCpus[0].fLocalForcedActions);
    11571162        }
    11581163        else
    11591164        if (    ulSSMVersion <= PATM_SSM_VERSION_FIXUP_HACK
    1160             &&  *pFixup >= pVM->pVMRC
    1161             &&  *pFixup < pVM->pVMRC + 8192)
     1165            &&  *pFixup - (patmInfo.pCPUMCtxGC & UINT32_C(0xffc00000)) < UINT32_C(8192))
    11621166        {
    11631167            static int cCpuidFixup = 0;
     
    11811185                break;
    11821186            }
    1183             LogFlow(("Changing cpuid fixup %d from %x to %x\n", cCpuidFixup, oldFixup, *pFixup));
     1187            LogFlow(("Changing cpuid fixup %d from %RRv to %RRv\n", cCpuidFixup, oldFixup, *pFixup));
    11841188            cCpuidFixup++;
    11851189        }
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