VirtualBox

Changeset 31361 in vbox


Ignore:
Timestamp:
Aug 4, 2010 3:38:35 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64412
Message:

Reapplied 64410 with previous lookup added

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/VMMAll.cpp

    r31360 r31361  
    8484        PVMCPU pVCpu = &pVM->aCpus[idCpu];
    8585
    86         if (pVCpu->hNativeThread == hThread)
     86        if (pVCpu->hNativeThreadR0 == hThread)
    8787            return pVCpu->idCpu;
    8888    }
     
    139139        PVMCPU pVCpu = &pVM->aCpus[idCpu];
    140140
    141         if (pVCpu->hNativeThread == hThread)
     141        if (pVCpu->hNativeThreadR0 == hThread)
    142142            return pVCpu;
    143143    }
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r31360 r31361  
    965965            PVMCPU pVCpu = &pVM->aCpus[idCpu];
    966966
     967            /* Initialize the r0 native thread handle on the fly. */
     968            if (pVCpu->hNativeThreadR0 == NIL_RTNATIVETHREAD)
     969                pVCpu->hNativeThreadR0 = RTThreadNativeSelf();
     970
    967971            /* Make sure that log flushes can jump back to ring-3; annoying to get an incomplete log (this is risky though as the code doesn't take this into account). */
    968972            int rc = GMMR0CheckSharedModulesStart(pVM);
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