Changeset 39070 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Oct 21, 2011 9:41:18 AM (13 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/Makefile.kmk
r38954 r39070 196 196 VMMR3/PDMAsyncCompletionFileNormal.cpp 197 197 endif 198 if defined(VBOX_WITH_WARNINGS_AS_ERRORS) && "$(KBUILD_TARGET)" == "win"199 ## @todo Alexander, please fix these warnings.200 VMMR3/PDMBlkCache.cpp_CXXFLAGS = -WX-201 endif202 198 203 199 ifdef VBOX_WITH_RAW_MODE … … 567 563 # Disable annoying warnings about array subscript above array bounds in aPages[] 568 564 # 569 VMMR3/PGMPool.cpp_CXXFLAGS = $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds)) 570 VMMAll/PGMAllPool.cpp_CXXFLAGS = $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds)) 565 ifneq ($(KBUILD_TARGET),win) 566 VMMR3/PGMPool.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds) 567 VMMAll/PGMAllPool.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds) 568 VMMAll/PGMAll.cpp_CXXFLAGS = -Wno-unused-function 569 VMMAll/IEMAll.cpp_CXXFLAGS = -Wno-unused-parameter 570 endif 571 571 572 572 # -
trunk/src/VBox/VMM/VMMAll/IEMAll.cpp
r38077 r39070 587 587 *******************************************************************************/ 588 588 static VBOXSTRICTRC iemRaiseTaskSwitchFaultCurrentTSS(PIEMCPU pIemCpu); 589 static VBOXSTRICTRC iemRaiseSelectorNotPresent(PIEMCPU pIemCpu, uint32_t iSegReg, uint32_t fAccess); 589 /*static VBOXSTRICTRC iemRaiseSelectorNotPresent(PIEMCPU pIemCpu, uint32_t iSegReg, uint32_t fAccess);*/ 590 590 static VBOXSTRICTRC iemRaiseSelectorNotPresentBySelector(PIEMCPU pIemCpu, uint16_t uSel); 591 591 static VBOXSTRICTRC iemRaiseSelectorNotPresentWithErr(PIEMCPU pIemCpu, uint16_t uErr); … … 2023 2023 2024 2024 2025 #ifdef SOME_UNUSED_FUNCTION 2025 2026 /** \#TS(err) - 0a. */ 2026 2027 DECL_NO_INLINE(static, VBOXSTRICTRC) iemRaiseTaskSwitchFaultWithErr(PIEMCPU pIemCpu, uint16_t uErr) … … 2028 2029 return iemRaiseXcptOrInt(pIemCpu, 0, X86_XCPT_TS, IEM_XCPT_FLAGS_T_CPU_XCPT | IEM_XCPT_FLAGS_ERR, uErr, 0); 2029 2030 } 2031 #endif 2030 2032 2031 2033 … … 3747 3749 3748 3750 3751 #ifdef SOME_UNUSED_FUNCTION 3749 3752 /** 3750 3753 * Fetches a data dword and sign extends it to a qword. … … 3773 3776 return rc; 3774 3777 } 3778 #endif 3775 3779 3776 3780 … … 4196 4200 4197 4201 4202 #ifdef SOME_UNUSED_FUNCTION 4198 4203 /** 4199 4204 * Pushes a dword onto the stack, using a temporary stack pointer. … … 4226 4231 return rc; 4227 4232 } 4233 #endif 4228 4234 4229 4235 -
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r39038 r39070 2020 2020 2021 2021 2022 #if def IN_RING32022 #if defined(IN_RING3) && defined(SOME_UNUSED_FUNCTION) 2023 2023 /** 2024 2024 * Cache PGMPhys memory access -
trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
r39038 r39070 45 45 *******************************************************************************/ 46 46 RT_C_DECLS_BEGIN 47 static void pgmPoolFlushAllInt(PPGMPOOL pPool);48 47 DECLINLINE(unsigned) pgmPoolTrackGetShadowEntrySize(PGMPOOLKIND enmKind); 49 48 DECLINLINE(unsigned) pgmPoolTrackGetGuestEntrySize(PGMPOOLKIND enmKind); … … 57 56 static const char *pgmPoolPoolKindToStr(uint8_t enmKind); 58 57 #endif 59 #if defined(VBOX_STRICT) && defined(PGMPOOL_WITH_OPTIMIZED_DIRTY_PT)58 #if 0 /*defined(VBOX_STRICT) && defined(PGMPOOL_WITH_OPTIMIZED_DIRTY_PT)*/ 60 59 static void pgmPoolTrackCheckPTPaePae(PPGMPOOL pPool, PPGMPOOLPAGE pPage, PPGMSHWPTPAE pShwPT, PCX86PTPAE pGstPT); 61 60 #endif … … 1341 1340 # ifdef PGMPOOL_WITH_OPTIMIZED_DIRTY_PT 1342 1341 1343 # ifdef VBOX_STRICT 1342 # if defined(VBOX_STRICT) && !defined(IN_RING3) 1343 1344 1344 /** 1345 1345 * Check references to guest physical memory in a PAE / PAE page table. … … 1472 1472 } 1473 1473 1474 # endif /* VBOX_STRICT */1474 # endif /* VBOX_STRICT && !IN_RING3 */ 1475 1475 1476 1476 /** … … 1743 1743 int rc = PGM_GCPHYS_2_PTR_EX(pVM, pPage->GCPhys, &pvGst); AssertReleaseRC(rc); 1744 1744 memcpy(&pPool->aDirtyPages[idxFree].aPage[0], pvGst, (pPage->enmKind == PGMPOOLKIND_PAE_PT_FOR_PAE_PT) ? PAGE_SIZE : PAGE_SIZE/2); 1745 # ifdef VBOX_STRICT1745 # ifdef VBOX_STRICT 1746 1746 void *pvShw = PGMPOOL_PAGE_2_PTR(pVM, pPage); 1747 1747 if (pPage->enmKind == PGMPOOLKIND_PAE_PT_FOR_PAE_PT) … … 1750 1750 pgmPoolTrackCheckPTPae32Bit(pPool, pPage, (PPGMSHWPTPAE)pvShw, (PCX86PT)pvGst); 1751 1751 PGM_DYNMAP_UNUSED_HINT_VM(pVM, pvShw); 1752 # endif1752 # endif 1753 1753 PGM_DYNMAP_UNUSED_HINT_VM(pVM, pvGst); 1754 1754 -
trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp
r38684 r39070 222 222 223 223 224 #ifdef VBOX_STRICT 224 225 /** 225 226 * Get the CPU ID on which the failure status code was reported. … … 232 233 return pFirstRc->idCpu; 233 234 } 235 #endif /* VBOX_STRICT */ 234 236 235 237 -
trunk/src/VBox/VMM/VMMR3/EM.cpp
r38838 r39070 84 84 static DECLCALLBACK(int) emR3Save(PVM pVM, PSSMHANDLE pSSM); 85 85 static DECLCALLBACK(int) emR3Load(PVM pVM, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass); 86 #if defined(LOG_ENABLED) || defined(VBOX_STRICT) 86 87 static const char *emR3GetStateName(EMSTATE enmState); 88 #endif 87 89 static int emR3Debug(PVM pVM, PVMCPU pVCpu, int rc); 88 90 static int emR3RemStep(PVM pVM, PVMCPU pVCpu); … … 672 674 673 675 676 #if defined(LOG_ENABLED) || defined(VBOX_STRICT) 674 677 /** 675 678 * Gets the EM state name. … … 697 700 } 698 701 } 702 #endif /* LOG_ENABLED || VBOX_STRICT */ 699 703 700 704 -
trunk/src/VBox/VMM/VMMR3/EMHwaccm.cpp
r39034 r39070 82 82 83 83 84 #if def DEBUG84 #if defined(DEBUG) && defined(SOME_UNUSED_FUNCTIONS) 85 85 86 86 /** -
trunk/src/VBox/VMM/VMMR3/EMRaw.cpp
r38324 r39070 76 76 static int emR3RawGuestTrap(PVM pVM, PVMCPU pVCpu); 77 77 static int emR3PatchTrap(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx, int gcret); 78 static int emR3SingleStepExecRem(PVM pVM, uint32_t cIterations);79 78 static int emR3RawPrivileged(PVM pVM, PVMCPU pVCpu); 80 79 static int emR3ExecuteIOInstruction(PVM pVM, PVMCPU pVCpu); -
trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletion.cpp
r39014 r39070 595 595 } 596 596 597 #ifdef SOME_UNUSED_FUNCTION 597 598 static void pdmacBwMgrUnlink(PPDMACBWMGR pBwMgr) 598 599 { … … 615 616 rc = RTCritSectLeave(&pEpClass->CritSect); AssertRC(rc); 616 617 } 618 #endif /* SOME_UNUSED_FUNCTION */ 617 619 618 620 static int pdmacAsyncCompletionBwMgrCreate(PPDMASYNCCOMPLETIONEPCLASS pEpClass, const char *pcszBwMgr, uint32_t cbTransferPerSecMax, -
trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletionFile.cpp
r39034 r39070 50 50 #ifdef VBOX_WITH_DEBUGGER 51 51 static DECLCALLBACK(int) pdmacEpFileErrorInject(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR pArgs, unsigned cArgs); 52 # ifdef PDM_ASYNC_COMPLETION_FILE_WITH_DELAY 52 53 static DECLCALLBACK(int) pdmacEpFileDelayInject(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR pArgs, unsigned cArgs); 54 # endif 53 55 #endif 54 56 … … 236 238 } 237 239 240 #ifdef SOME_UNUSED_FUNCTION 238 241 static int pdmacFileAioMgrRemoveEndpoint(PPDMACEPFILEMGR pAioMgr, PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint) 239 242 { … … 249 252 return rc; 250 253 } 254 #endif 251 255 252 256 static int pdmacFileAioMgrCloseEndpoint(PPDMACEPFILEMGR pAioMgr, PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint) -
trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletionFileNormal.cpp
r39035 r39070 102 102 } 103 103 104 #if 0 /* currently unused */ 104 105 /** 105 106 * Sorts the endpoint list with insertion sort. … … 178 179 #endif 179 180 } 181 #endif /* currently unused */ 180 182 181 183 /** … … 216 218 return true; 217 219 } 220 221 #if 0 /* currently unused */ 218 222 219 223 static bool pdmacFileAioMgrNormalIsBalancePossible(PPDMACEPFILEMGR pAioMgr) … … 315 319 Log(("AIOMgr: Load balancing would not improve anything\n")); 316 320 } 321 322 #endif /* unused */ 317 323 318 324 /** -
trunk/src/VBox/VMM/VMMR3/STAM.cpp
r35696 r39070 503 503 504 504 505 #ifdef VBOX_STRICT 505 506 /** 506 507 * Divide the strings into sub-strings using '/' as delimiter … … 536 537 } 537 538 } 539 #endif /* VBOX_STRICT */ 538 540 539 541 -
trunk/src/VBox/VMM/VMMR3/VM.cpp
r39034 r39070 127 127 static int vmR3InitGC(PVM pVM); 128 128 static int vmR3InitDoCompleted(PVM pVM, VMINITCOMPLETED enmWhat); 129 #ifdef LOG_ENABLED 129 130 static DECLCALLBACK(size_t) vmR3LogPrefixCallback(PRTLOGGER pLogger, char *pchBuf, size_t cchBuf, void *pvUser); 131 #endif 130 132 static void vmR3DestroyUVM(PUVM pUVM, uint32_t cMilliesEMTWait); 131 133 static void vmR3AtDtor(PVM pVM); … … 1115 1117 1116 1118 1119 #ifdef LOG_ENABLED 1117 1120 /** 1118 1121 * Logger callback for inserting a custom prefix. … … 1144 1147 return 2; 1145 1148 } 1149 #endif /* LOG_ENABLED */ 1146 1150 1147 1151 -
trunk/src/VBox/VMM/testcase/Makefile.kmk
r38152 r39070 195 195 tstIEMCheckMc_SOURCES = tstIEMCheckMc.cpp 196 196 tstIEMCheckMc_LIBS = $(LIB_RUNTIME) 197 ifneq ($(KBUILD_TARGET),win) 198 tstIEMCheckMc_CXXFLAGS = -Wno-unused-parameter 199 endif 197 200 198 201 tstMMHyperHeap_TEMPLATE = VBOXR3TSTEXE -
trunk/src/VBox/VMM/testcase/tstIEMCheckMc.cpp
r38077 r39070 39 39 40 40 #define CHK_TYPE(a_ExpectedType, a_Param) \ 41 do { a_ExpectedType const * pCheckType = &(a_Param); } while (0)41 do { a_ExpectedType const * pCheckType = &(a_Param); NOREF(pCheckType); } while (0) 42 42 #define CHK_PTYPE(a_ExpectedType, a_Param) \ 43 do { a_ExpectedType pCheckType = (a_Param); } while (0)43 do { a_ExpectedType pCheckType = (a_Param); NOREF(pCheckType); } while (0) 44 44 45 45 #define CHK_CONST(a_ExpectedType, a_Const) \ … … 173 173 * @{ */ 174 174 175 #define IEM_ARG_CHECK_CALLBACK(a_idx, a_User) int RT_CONCAT(iArgCheck_,a_idx) 175 #define IEM_ARG_CHECK_CALLBACK(a_idx, a_User) int RT_CONCAT(iArgCheck_,a_idx); NOREF(RT_CONCAT(iArgCheck_,a_idx)) 176 176 #define IEM_MC_BEGIN(a_cArgs, a_cLocals) \ 177 177 { \ … … 364 364 #define IEM_MC_POP_U32(a_pu32Value) do {} while (0) 365 365 #define IEM_MC_POP_U64(a_pu64Value) do {} while (0) 366 #define IEM_MC_MEM_MAP(a_pMem, a_fAccess, a_iSeg, a_GCPtrMem, a_iArg) do { } while (0)366 #define IEM_MC_MEM_MAP(a_pMem, a_fAccess, a_iSeg, a_GCPtrMem, a_iArg) do { NOREF(a_fAccess); } while (0) 367 367 #define IEM_MC_MEM_MAP_EX(a_pvMem, a_fAccess, a_cbMem, a_iSeg, a_GCPtrMem, a_iArg) do {} while (0) 368 368 #define IEM_MC_MEM_COMMIT_AND_UNMAP(a_pvMem, a_fAccess) do {} while (0) -
trunk/src/VBox/VMM/testcase/tstVMM.cpp
r38838 r39070 206 206 207 207 int ch; 208 int i = 1;209 208 RTGETOPTUNION ValueUnion; 210 209 RTGETOPTSTATE GetState;
Note:
See TracChangeset
for help on using the changeset viewer.