Changeset 57411 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Aug 18, 2015 10:16:15 AM (9 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/TMAllVirtual.cpp
r57358 r57411 46 46 * @interface_method_impl{RTTIMENANOTSDATA, pfnBadPrev} 47 47 */ 48 DECL EXPORT(void) tmVirtualNanoTSBadPrev(PRTTIMENANOTSDATA pData, uint64_t u64NanoTS, uint64_t u64DeltaPrev,49 uint64_t u64PrevNanoTS)48 DECLCALLBACK(DECLEXPORT(void)) tmVirtualNanoTSBadPrev(PRTTIMENANOTSDATA pData, uint64_t u64NanoTS, uint64_t u64DeltaPrev, 49 uint64_t u64PrevNanoTS) 50 50 { 51 51 PVM pVM = RT_FROM_MEMBER(pData, VM, CTX_SUFF(tm.s.VirtualGetRawData)); … … 68 68 * last two events may occur as CPUs are taken online. 69 69 */ 70 DECL EXPORT(uint64_t) tmVirtualNanoTSRediscover(PRTTIMENANOTSDATA pData)70 DECLCALLBACK(DECLEXPORT(uint64_t)) tmVirtualNanoTSRediscover(PRTTIMENANOTSDATA pData) 71 71 { 72 72 PVM pVM = RT_FROM_MEMBER(pData, VM, CTX_SUFF(tm.s.VirtualGetRawData)); -
trunk/src/VBox/VMM/VMMR3/PATM.cpp
r57389 r57411 2186 2186 * 2187 2187 */ 2188 int patmr3DisasmCallback(PVM pVM, DISCPUSTATE *pCpu, RCPTRTYPE(uint8_t *) pInstrGC, RCPTRTYPE(uint8_t *) pCurInstrGC, PPATMP2GLOOKUPREC pCacheRec) 2188 DECLCALLBACK(int) patmR3DisasmCallback(PVM pVM, DISCPUSTATE *pCpu, RCPTRTYPE(uint8_t *) pInstrGC, 2189 RCPTRTYPE(uint8_t *) pCurInstrGC, PPATMP2GLOOKUPREC pCacheRec) 2189 2190 { 2190 2191 PPATCHINFO pPatch = (PPATCHINFO)pCacheRec->pPatch; … … 2940 2941 #ifdef LOG_ENABLED 2941 2942 Log(("Patch code ----------------------------------------------------------\n")); 2942 patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patm r3DisasmCallback, &cacheRec);2943 patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patmR3DisasmCallback, &cacheRec); 2943 2944 /* Free leftover lock if any. */ 2944 2945 if (cacheRec.Lock.pvMap) … … 3124 3125 #ifdef LOG_ENABLED 3125 3126 Log(("Patch code ----------------------------------------------------------\n")); 3126 patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patm r3DisasmCallback, pCacheRec);3127 patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patmR3DisasmCallback, pCacheRec); 3127 3128 Log(("Patch code ends -----------------------------------------------------\n")); 3128 3129 #endif … … 3198 3199 #ifdef LOG_ENABLED 3199 3200 Log(("Patch code ----------------------------------------------------------\n")); 3200 patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patm r3DisasmCallback, pCacheRec);3201 patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patmR3DisasmCallback, pCacheRec); 3201 3202 Log(("Patch code ends -----------------------------------------------------\n")); 3202 3203 #endif … … 3345 3346 #ifdef LOG_ENABLED 3346 3347 Log(("Patch code ----------------------------------------------------------\n")); 3347 patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patm r3DisasmCallback, pCacheRec);3348 patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patmR3DisasmCallback, pCacheRec); 3348 3349 Log(("Patch code ends -----------------------------------------------------\n")); 3349 3350 #endif -
trunk/src/VBox/VMM/VMMR3/PATMGuest.cpp
r57358 r57411 156 156 cacheRec.pPatch = pPatch; 157 157 158 patmr3DisasmCodeStream(pVM, pInstrGC, pInstrGC, patm r3DisasmCallback, &cacheRec);158 patmr3DisasmCodeStream(pVM, pInstrGC, pInstrGC, patmR3DisasmCallback, &cacheRec); 159 159 /* Free leftover lock if any. */ 160 160 if (cacheRec.Lock.pvMap) -
trunk/src/VBox/VMM/include/PATMInternal.h
r56287 r57411 677 677 678 678 #ifdef LOG_ENABLED 679 int patmr3DisasmCallback(PVM pVM, DISCPUSTATE *pCpu, RCPTRTYPE(uint8_t *) pInstrGC, RCPTRTYPE(uint8_t *) pCurInstrGC, PPATMP2GLOOKUPREC pCacheRec);679 DECLCALLBACK(int) patmR3DisasmCallback(PVM pVM, DISCPUSTATE *pCpu, RCPTRTYPE(uint8_t *) pInstrGC, RCPTRTYPE(uint8_t *) pCurInstrGC, PPATMP2GLOOKUPREC pCacheRec); 680 680 int patmr3DisasmCodeStream(PVM pVM, RCPTRTYPE(uint8_t *) pInstrGC, RCPTRTYPE(uint8_t *) pCurInstrGC, PFN_PATMR3ANALYSE pfnPATMR3Analyse, PPATMP2GLOOKUPREC pCacheRec); 681 681 #endif -
trunk/src/VBox/VMM/include/TMInternal.h
r54308 r57411 767 767 int tmVirtualPauseLocked(PVM pVM); 768 768 int tmVirtualResumeLocked(PVM pVM); 769 DECLEXPORT(void) tmVirtualNanoTSBadPrev(PRTTIMENANOTSDATA pData, uint64_t u64NanoTS, 770 uint64_t u64DeltaPrev, uint64_t u64PrevNanoTS); 771 DECLEXPORT(uint64_t) tmVirtualNanoTSRediscover(PRTTIMENANOTSDATA pData); 772 DECLEXPORT(uint64_t) tmVirtualNanoTSBadCpuIndex(PRTTIMENANOTSDATA pData, uint16_t idApic, uint16_t iCpuSet, uint16_t iGipCpu); 769 DECLCALLBACK(DECLEXPORT(void)) tmVirtualNanoTSBadPrev(PRTTIMENANOTSDATA pData, uint64_t u64NanoTS, 770 uint64_t u64DeltaPrev, uint64_t u64PrevNanoTS); 771 DECLCALLBACK(DECLEXPORT(uint64_t)) tmVirtualNanoTSRediscover(PRTTIMENANOTSDATA pData); 772 DECLCALLBACK(DECLEXPORT(uint64_t)) tmVirtualNanoTSBadCpuIndex(PRTTIMENANOTSDATA pData, uint16_t idApic, 773 uint16_t iCpuSet, uint16_t iGipCpu); 773 774 774 775 #ifdef IN_RING3 -
trunk/src/VBox/VMM/testcase/tstPDMAsyncCompletion.cpp
r57358 r57411 60 60 RTSEMEVENT g_FinishedEventSem; 61 61 62 void pfnAsyncTaskCompleted(PVM pVM, void *pvUser, void *pvUser2, int rc)62 static DECLCALLBACK(void) AsyncTaskCompleted(PVM pVM, void *pvUser, void *pvUser2, int rc) 63 63 { 64 64 LogFlow((TESTCASE ": %s: pVM=%p pvUser=%p pvUser2=%p\n", __FUNCTION__, pVM, pvUser, pvUser2)); … … 106 106 */ 107 107 PPDMASYNCCOMPLETIONTEMPLATE pTemplate; 108 rc = PDMR3AsyncCompletionTemplateCreateInternal(pVM, &pTemplate, pfnAsyncTaskCompleted, NULL, "Test");108 rc = PDMR3AsyncCompletionTemplateCreateInternal(pVM, &pTemplate, AsyncTaskCompleted, NULL, "Test"); 109 109 if (RT_FAILURE(rc)) 110 110 { -
trunk/src/VBox/VMM/testcase/tstPDMAsyncCompletionStress.cpp
r57358 r57411 157 157 PDMACTESTFILE g_aTestFiles[NR_OPEN_ENDPOINTS]; 158 158 159 static voidtstPDMACStressTestFileTaskCompleted(PVM pVM, void *pvUser, void *pvUser2, int rcReq);159 static DECLCALLBACK(void) tstPDMACStressTestFileTaskCompleted(PVM pVM, void *pvUser, void *pvUser2, int rcReq); 160 160 161 161 static void tstPDMACStressTestFileVerify(PPDMACTESTFILE pTestFile, PPDMACTESTFILETASK pTestTask) … … 328 328 } 329 329 330 static inttstPDMACTestFileThread(PVM pVM, PPDMTHREAD pThread)330 static DECLCALLBACK(int) tstPDMACTestFileThread(PVM pVM, PPDMTHREAD pThread) 331 331 { 332 332 PPDMACTESTFILE pTestFile = (PPDMACTESTFILE)pThread->pvUser; … … 389 389 } 390 390 391 static voidtstPDMACStressTestFileTaskCompleted(PVM pVM, void *pvUser, void *pvUser2, int rcReq)391 static DECLCALLBACK(void) tstPDMACStressTestFileTaskCompleted(PVM pVM, void *pvUser, void *pvUser2, int rcReq) 392 392 { 393 393 PPDMACTESTFILE pTestFile = (PPDMACTESTFILE)pvUser2; … … 459 459 460 460 RTStrPrintf(szDesc, sizeof(szDesc), "Template-%d", iTestId); 461 rc = PDMR3AsyncCompletionTemplateCreateInternal(pVM, &pTestFile->pTemplate, tstPDMACStressTestFileTaskCompleted, pTestFile, szDesc); 461 rc = PDMR3AsyncCompletionTemplateCreateInternal(pVM, &pTestFile->pTemplate, tstPDMACStressTestFileTaskCompleted, 462 pTestFile, szDesc); 462 463 if (RT_SUCCESS(rc)) 463 464 {
Note:
See TracChangeset
for help on using the changeset viewer.