Changeset 54467 in vbox
- Timestamp:
- Feb 24, 2015 6:23:18 PM (10 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp
r54375 r54467 245 245 { "RTMpCpuIdFromSetIndex", (void *)RTMpCpuIdFromSetIndex }, 246 246 { "RTMpCpuIdToSetIndex", (void *)RTMpCpuIdToSetIndex }, 247 { "RTMpCurSetIndex", (void *)RTMpCurSetIndex }, 248 { "RTMpCurSetIndexAndId", (void *)RTMpCurSetIndexAndId }, 247 249 { "RTMpGetArraySize", (void *)RTMpGetArraySize }, 248 250 { "RTMpGetCount", (void *)RTMpGetCount }, -
trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h
r54373 r54467 215 215 * - (nothing) 216 216 */ 217 #define SUPDRV_IOC_VERSION 0x001f000 2217 #define SUPDRV_IOC_VERSION 0x001f0003 218 218 219 219 /** SUP_IOCTL_COOKIE. */ -
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r54339 r54467 280 280 CookieReq.u.In.u32ReqVersion = SUPDRV_IOC_VERSION; 281 281 const uint32_t uMinVersion = (SUPDRV_IOC_VERSION & 0xffff0000) == 0x001f0000 282 ? 0x001f000 2282 ? 0x001f0003 283 283 : SUPDRV_IOC_VERSION & 0xffff0000; 284 284 CookieReq.u.In.u32MinVersion = uMinVersion; -
trunk/src/VBox/Runtime/common/time/timesupref.h
r54279 r54467 78 78 #if TMPL_MODE == TMPL_MODE_ASYNC || TMPL_MODE == TMPL_MODE_SYNC_INVAR_WITH_DELTA 79 79 # if defined(IN_RING0) 80 uint32_t const iCpuSet = RTMpC puIdToSetIndex(RTMpCpuId());80 uint32_t const iCpuSet = RTMpCurSetIndex(); 81 81 uint16_t const iGipCpu = iCpuSet < RT_ELEMENTS(pGip->aiCpuFromCpuSetIdx) 82 82 ? pGip->aiCpuFromCpuSetIdx[iCpuSet] : UINT16_MAX; -
trunk/src/VBox/VMM/VMMAll/VMMAll.cpp
r49486 r54467 284 284 RTNATIVETHREAD hThread = RTThreadNativeSelf(); 285 285 286 /** @todo optimize for large number of VCPUs when that becomes more common. */ 286 /** @todo optimize for large number of VCPUs when that becomes more common. 287 * Use a map like GIP does that's indexed by the host CPU index. */ 287 288 for (VMCPUID idCpu = 0; idCpu < pVM->cCpus; idCpu++) 288 289 { -
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r54339 r54467 566 566 567 567 /* We need to update the VCPU <-> host CPU mapping. */ 568 RTCPUID idHostCpu = RTMpCpuId();569 uint32_t iHostCpuSet = RTMpC puIdToSetIndex(idHostCpu);568 RTCPUID idHostCpu; 569 uint32_t iHostCpuSet = RTMpCurSetIndexAndId(&idHostCpu); 570 570 pVCpu->iHostCpuSet = iHostCpuSet; 571 571 ASMAtomicWriteU32(&pVCpu->idHostCpu, idHostCpu); … … 879 879 * we've got a TSC delta for the CPU. 880 880 */ 881 RTCPUID idHostCpu = RTMpCpuId();882 uint32_t iHostCpuSet = RTMpC puIdToSetIndex(idHostCpu);881 RTCPUID idHostCpu; 882 uint32_t iHostCpuSet = RTMpCurSetIndexAndId(&idHostCpu); 883 883 if (RT_LIKELY( iHostCpuSet < RTCPUSET_MAX_CPUS 884 884 && SUPIsTscDeltaAvailableForCpuSetIndex(iHostCpuSet))) … … 993 993 * we've got a TSC delta for the CPU. 994 994 */ 995 RTCPUID idHostCpu = RTMpCpuId();996 uint32_t iHostCpuSet = RTMpC puIdToSetIndex(idHostCpu);995 RTCPUID idHostCpu; 996 uint32_t iHostCpuSet = RTMpCurSetIndexAndId(&idHostCpu); 997 997 if (RT_LIKELY( iHostCpuSet < RTCPUSET_MAX_CPUS 998 998 && SUPIsTscDeltaAvailableForCpuSetIndex(iHostCpuSet))) … … 1327 1327 * we've got a TSC delta for the CPU. 1328 1328 */ 1329 RTCPUID idHostCpu = RTMpCpuId();1330 uint32_t iHostCpuSet = RTMpC puIdToSetIndex(idHostCpu);1329 RTCPUID idHostCpu; 1330 uint32_t iHostCpuSet = RTMpCurSetIndexAndId(&idHostCpu); 1331 1331 if (RT_UNLIKELY(iHostCpuSet >= RTCPUSET_MAX_CPUS)) 1332 1332 { -
trunk/src/VBox/VMM/VMMRZ/PGMRZDynMap.cpp
r54367 r54467 130 130 # define PGMRZDYNMAP_CUR_CPU() (0) 131 131 #else 132 # define PGMRZDYNMAP_CUR_CPU() RTMpC puIdToSetIndex(RTMpCpuId())132 # define PGMRZDYNMAP_CUR_CPU() RTMpCurSetIndex() 133 133 #endif 134 134
Note:
See TracChangeset
for help on using the changeset viewer.