Changeset 63465 in vbox
- Timestamp:
- Aug 15, 2016 10:00:20 AM (8 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/APICAll.cpp
r62878 r63465 92 92 93 93 94 #if 0 /* unused */ 94 95 /** 95 96 * Checks if a vector is set in an APIC Pending-Interrupt Bitmap (PIB). … … 103 104 return ASMBitTest(pvPib, uVector); 104 105 } 106 #endif /* unused */ 105 107 106 108 … … 140 142 } 141 143 142 144 #if 0 /* unused */ 143 145 /** 144 146 * Clears the vector in an APIC Pending-Interrupt Bitmap (PIB). … … 151 153 ASMAtomicBitClear(pvPib, uVector); 152 154 } 153 154 155 #endif /* unused */ 156 157 #if 0 /* unused */ 155 158 /** 156 159 * Atomically OR's a fragment (32 vectors) into an APIC 256-bit sparse … … 167 170 ASMAtomicOrU32(&pApicReg->u[idxFragment].u32Reg, u32Fragment); 168 171 } 169 170 172 #endif /* unused */ 173 174 175 #if 0 /* unused */ 171 176 /** 172 177 * Atomically AND's a fragment (32 vectors) into an APIC … … 183 188 ASMAtomicAndU32(&pApicReg->u[idxFragment].u32Reg, u32Fragment); 184 189 } 190 #endif /* unused */ 185 191 186 192 -
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r62869 r63465 277 277 int rc = PDMCritSectEnter(&pVM->em.s.CritSectREM, VERR_SEM_BUSY); 278 278 AssertRCSuccess(rc); 279 #else 280 RT_NOREF(pVM); 279 281 #endif 280 282 } … … 293 295 294 296 PDMCritSectLeave(&pVM->em.s.CritSectREM); 297 #else 298 RT_NOREF(pVM); 295 299 #endif 296 300 } … … 311 315 return PDMCritSectIsOwner(&pVM->em.s.CritSectREM); 312 316 #else 317 RT_NOREF(pVM); 313 318 return true; 314 319 #endif … … 330 335 return PDMCritSectTryEnter(&pVM->em.s.CritSectREM); 331 336 #else 337 RT_NOREF(pVM); 332 338 return VINF_SUCCESS; 333 339 #endif … … 420 426 421 427 428 #if !defined(VBOX_WITH_IEM) || defined(VBOX_COMPARE_IEM_AND_EM) 422 429 DECLINLINE(int) emDisCoreOne(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDis, RTGCUINTPTR InstrGC, uint32_t *pOpsize) 423 430 { … … 425 432 return DISInstrWithReader(InstrGC, (DISCPUMODE)pDis->uCpuMode, emReadBytes, pVCpu, pDis, pOpsize); 426 433 } 434 #endif 427 435 428 436 -
trunk/src/VBox/VMM/VMMAll/IEMAllAImplC.cpp
r62601 r63465 29 29 * Global Variables * 30 30 *********************************************************************************************************************************/ 31 #ifdef RT_ARCH_X86 31 32 /** 32 33 * Parity calculation table. … … 324 325 /* 0xff = 11111111b */ X86_EFL_PF, 325 326 }; 327 #endif /* RT_ARCH_X86 */ 326 328 327 329 -
trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp
r62653 r63465 551 551 } 552 552 553 554 /**555 * Internal - statistics only.556 */557 DECLINLINE(void) iomMMIOStatLength(PVM pVM, unsigned cb)558 {559 #ifdef VBOX_WITH_STATISTICS560 switch (cb)561 {562 case 1:563 STAM_COUNTER_INC(&pVM->iom.s.StatRZMMIO1Byte);564 break;565 case 2:566 STAM_COUNTER_INC(&pVM->iom.s.StatRZMMIO2Bytes);567 break;568 case 4:569 STAM_COUNTER_INC(&pVM->iom.s.StatRZMMIO4Bytes);570 break;571 case 8:572 STAM_COUNTER_INC(&pVM->iom.s.StatRZMMIO8Bytes);573 break;574 default:575 /* No way. */576 AssertMsgFailed(("Invalid data length %d\n", cb));577 break;578 }579 #else580 NOREF(pVM); NOREF(cb);581 #endif582 }583 584 585 586 553 /** 587 554 * Common worker for the \#PF handler and IOMMMIOPhysHandler (APIC+VT-x). -
trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp
r62478 r63465 420 420 !!pCurType->pfnHandlerR3, fRestoreAsRAM); 421 421 # endif 422 #else 423 RT_NOREF_PV(pCurType); 422 424 #endif 423 425 } -
trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
r62606 r63465 45 45 *********************************************************************************************************************************/ 46 46 RT_C_DECLS_BEGIN 47 #if 0 /* unused */ 47 48 DECLINLINE(unsigned) pgmPoolTrackGetShadowEntrySize(PGMPOOLKIND enmKind); 48 49 DECLINLINE(unsigned) pgmPoolTrackGetGuestEntrySize(PGMPOOLKIND enmKind); 50 #endif /* unused */ 49 51 static void pgmPoolTrackClearPageUsers(PPGMPOOL pPool, PPGMPOOLPAGE pPage); 50 52 static void pgmPoolTrackDeref(PPGMPOOL pPool, PPGMPOOLPAGE pPage); … … 66 68 67 69 70 #if 0 /* unused */ 68 71 /** 69 72 * Checks if the specified page pool kind is for a 4MB or 2MB guest page. … … 84 87 } 85 88 } 89 #endif /* unused */ 86 90 87 91 … … 3118 3122 3119 3123 3124 #if 0 /* unused */ 3120 3125 /** 3121 3126 * Gets the entry size of a shadow table. … … 3166 3171 } 3167 3172 } 3168 3169 3173 #endif /* unused */ 3174 3175 #if 0 /* unused */ 3170 3176 /** 3171 3177 * Gets the entry size of a guest table. … … 3220 3226 } 3221 3227 } 3228 #endif /* unused */ 3222 3229 3223 3230 -
trunk/src/VBox/VMM/VMMAll/TMAllCpu.cpp
r62654 r63465 188 188 189 189 190 #ifdef VBOX_WITH_STATISTICS 190 191 /** 191 192 * Record why we refused to use offsetted TSC. … … 222 223 } 223 224 } 225 #endif /* VBOX_WITH_STATISTICS */ 224 226 225 227 -
trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
r62478 r63465 1850 1850 1851 1851 1852 #if 0 /* unused */ 1852 1853 /** 1853 1854 * Gets the host physical address for a page given by it's ID. … … 1864 1865 return NIL_RTHCPHYS; 1865 1866 } 1867 #endif /* unused */ 1866 1868 1867 1869 -
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r63127 r63465 598 598 599 599 600 #ifdef VBOX_STRICT 600 601 /** 601 602 * Reads the VM-entry exception error code field from the VMCS into … … 613 614 return VINF_SUCCESS; 614 615 } 615 616 616 #endif /* VBOX_STRICT */ 617 618 619 #ifdef VBOX_STRICT 617 620 /** 618 621 * Reads the VM-entry exception error code field from the VMCS into … … 630 633 return VINF_SUCCESS; 631 634 } 635 #endif /* VBOX_STRICT */ 632 636 633 637 … … 7845 7849 7846 7850 7851 #if 0 /* unused */ 7847 7852 /** 7848 7853 * Sets a general-protection (\#GP) exception as pending-for-injection into the … … 7863 7868 hmR0VmxSetPendingEvent(pVCpu, u32IntInfo, 0 /* cbInstr */, u32ErrorCode, 0 /* GCPtrFaultAddress */); 7864 7869 } 7870 #endif /* unused */ 7865 7871 7866 7872 -
trunk/src/VBox/VMM/VMMR3/CPUM.cpp
r62637 r63465 371 371 }; 372 372 373 #if 0 /** @todo */ 373 374 /** Saved state field descriptors for X86XSAVEOPMASK. */ 374 375 static const SSMFIELD g_aCpumOpmaskFields[] = … … 384 385 SSMFIELD_ENTRY_TERM() 385 386 }; 387 #endif 386 388 387 389 /** Saved state field descriptors for X86XSAVEZMMHI256. */ -
trunk/src/VBox/VMM/VMMR3/CPUMDbg.cpp
r62637 r63465 1086 1086 }; 1087 1087 1088 #if 0 /** @todo */ 1088 1089 /** Sub-fields for the SF_MASK MSR. */ 1089 1090 static DBGFREGSUBFIELD const g_aCpumRegFields_sf_mask[] = … … 1092 1093 DBGFREGSUBFIELD_TERMINATOR() 1093 1094 }; 1095 #endif 1094 1096 1095 1097 -
trunk/src/VBox/VMM/VMMR3/CPUMR3Db.cpp
r62478 r63465 183 183 /** @} */ 184 184 185 #ifndef CPUM_DB_STANDALONE 185 186 186 187 #include "cpus/Intel_Core_i7_6700K.h" … … 295 296 296 297 297 #ifndef CPUM_DB_STANDALONE298 298 299 299 /** -
trunk/src/VBox/VMM/VMMR3/EM.cpp
r62659 r63465 92 92 #endif 93 93 static VBOXSTRICTRC emR3Debug(PVM pVM, PVMCPU pVCpu, VBOXSTRICTRC rc); 94 #if defined(VBOX_WITH_REM) || defined(DEBUG) 94 95 static int emR3RemStep(PVM pVM, PVMCPU pVCpu); 96 #endif 95 97 static int emR3RemExecute(PVM pVM, PVMCPU pVCpu, bool *pfFFDone); 96 98 int emR3HighPriorityPostForcedActions(PVM pVM, PVMCPU pVCpu, int rc); … … 519 521 #ifdef VBOX_WITH_REM 520 522 PDMR3CritSectDelete(&pVM->em.s.CritSectREM); 523 #else 524 RT_NOREF(pVM); 521 525 #endif 522 526 return VINF_SUCCESS; … … 990 994 991 995 996 #if defined(VBOX_WITH_REM) || defined(DEBUG) 992 997 /** 993 998 * Steps recompiled code. … … 1003 1008 Log3(("emR3RemStep: cs:eip=%04x:%08x\n", CPUMGetGuestCS(pVCpu), CPUMGetGuestEIP(pVCpu))); 1004 1009 1005 # ifdef VBOX_WITH_REM1010 # ifdef VBOX_WITH_REM 1006 1011 EMRemLock(pVM); 1007 1012 … … 1017 1022 EMRemUnlock(pVM); 1018 1023 1019 # else1024 # else 1020 1025 int rc = VBOXSTRICTRC_TODO(IEMExecOne(pVCpu)); NOREF(pVM); 1021 # endif1026 # endif 1022 1027 1023 1028 Log3(("emR3RemStep: returns %Rrc cs:eip=%04x:%08x\n", rc, CPUMGetGuestCS(pVCpu), CPUMGetGuestEIP(pVCpu))); 1024 1029 return rc; 1025 1030 } 1026 1027 1031 #endif /* VBOX_WITH_REM || DEBUG */ 1032 1033 1034 #ifdef VBOX_WITH_REM 1028 1035 /** 1029 1036 * emR3RemExecute helper that syncs the state back from REM and leave the REM … … 1036 1043 DECLINLINE(bool) emR3RemExecuteSyncBack(PVM pVM, PVMCPU pVCpu) 1037 1044 { 1038 #ifdef VBOX_WITH_REM1039 1045 STAM_PROFILE_START(&pVCpu->em.s.StatREMSync, a); 1040 1046 REMR3StateBack(pVM, pVCpu); … … 1042 1048 1043 1049 EMRemUnlock(pVM); 1044 #endif1045 1050 return false; 1046 1051 } 1052 #endif 1047 1053 1048 1054 -
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r63128 r63465 2871 2871 else 2872 2872 { 2873 #ifdef VBOX_WITH_REM 2873 2874 RTGCPHYS cb = pCur->RamRange.cb; 2875 #endif 2874 2876 2875 2877 /* Clear the tracking data of pages we're going to reactivate. */ -
trunk/src/VBox/VMM/VMMR3/SELM.cpp
r63429 r63465 107 107 * Global Variables * 108 108 *********************************************************************************************************************************/ 109 #if def LOG_ENABLED109 #if defined(VBOX_WITH_RAW_MODE) && defined(LOG_ENABLED) 110 110 /** Segment register names. */ 111 111 static char const g_aszSRegNms[X86_SREG_COUNT][4] = { "ES", "CS", "SS", "DS", "FS", "GS" }; -
trunk/src/VBox/VMM/VMMR3/SSM.cpp
r62869 r63465 869 869 * Global Variables * 870 870 *********************************************************************************************************************************/ 871 #ifndef SSM_STANDALONE 871 872 /** Zeros used by the struct putter. 872 873 * This must be at least 8 bytes or the code breaks. */ 873 874 static uint8_t const g_abZero[_1K] = {0}; 875 #endif 874 876 875 877 -
trunk/src/VBox/VMM/VMMR3/VMEmt.cpp
r62650 r63465 962 962 && pUVCpu->pVCpu->enmState == VMCPUSTATE_STARTED_EXEC_REM) 963 963 REMR3NotifyFF(pUVCpu->pVM); 964 #else 965 RT_NOREF(fFlags); 964 966 #endif 965 967 }
Note:
See TracChangeset
for help on using the changeset viewer.