Changeset 56381 in vbox
- Timestamp:
- Jun 12, 2015 11:50:53 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 100980
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/err.h
r56080 r56381 89 89 /** Invalid CPU index. */ 90 90 #define VERR_INVALID_CPU_INDEX (-1022) 91 /** This VirtualBox build does not support raw-mode. */ 92 #define VERR_RAW_MODE_NOT_SUPPORTED (-1023) 91 93 /** @} */ 92 94 -
trunk/include/VBox/vmm/hm.h
r55863 r56381 175 175 VMMR0_INT_DECL(int) HMR0TermVM(PVM pVM); 176 176 VMMR0_INT_DECL(int) HMR0EnableAllCpus(PVM pVM); 177 # ifdef VBOX_WITH_RAW_MODE 177 178 VMMR0_INT_DECL(int) HMR0EnterSwitcher(PVM pVM, VMMSWITCHER enmSwitcher, bool *pfVTxDisabled); 178 179 VMMR0_INT_DECL(void) HMR0LeaveSwitcher(PVM pVM, bool fVTxDisabled); 180 # endif 179 181 180 182 VMMR0_INT_DECL(void) HMR0SavePendingIOPortWrite(PVMCPU pVCpu, RTGCPTR GCPtrRip, RTGCPTR GCPtrRipNext, -
trunk/src/VBox/VMM/VMMR0/HMR0.cpp
r56365 r56381 1626 1626 } 1627 1627 1628 #ifdef VBOX_WITH_RAW_MODE 1628 1629 1629 1630 /** … … 1726 1727 } 1727 1728 1729 #endif /* VBOX_WITH_RAW_MODE */ 1728 1730 #ifdef VBOX_STRICT 1729 1731 -
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r56287 r56381 875 875 case VMMR0_DO_RAW_RUN: 876 876 { 877 #ifndef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 877 #ifdef VBOX_WITH_RAW_MODE 878 # ifndef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 878 879 /* Some safety precautions first. */ 879 880 if (RT_UNLIKELY(!PGMGetHyperCR3(pVCpu))) … … 882 883 break; 883 884 } 884 # endif885 # endif 885 886 886 887 /* … … 902 903 * Commit the CPU identifiers and update the periodict preemption timer if it's active. 903 904 */ 904 # ifdef VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI905 # ifdef VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI 905 906 CPUMR0SetLApic(pVCpu, iHostCpuSet); 906 # endif907 # endif 907 908 pVCpu->iHostCpuSet = iHostCpuSet; 908 909 ASMAtomicWriteU32(&pVCpu->idHostCpu, idHostCpu); … … 954 955 /* Fire dtrace probe and collect statistics. */ 955 956 VBOXVMM_R0_VMM_RETURN_TO_RING3_RC(pVCpu, CPUMQueryGuestCtxPtr(pVCpu), rc); 956 # ifdef VBOX_WITH_STATISTICS957 # ifdef VBOX_WITH_STATISTICS 957 958 STAM_COUNTER_INC(&pVM->vmm.s.StatRunRC); 958 959 vmmR0RecordRC(pVM, pVCpu, rc); 959 # endif960 # endif 960 961 } 961 962 else … … 989 990 pVCpu->vmm.s.iLastGZRc = VERR_INVALID_CPU_INDEX; 990 991 } 992 993 #else /* !VBOX_WITH_RAW_MODE */ 994 pVCpu->vmm.s.iLastGZRc = VERR_RAW_MODE_NOT_SUPPORTED; 995 #endif 991 996 break; 992 997 } … … 1342 1347 case VMMR0_DO_CALL_HYPERVISOR: 1343 1348 { 1349 #ifdef VBOX_WITH_RAW_MODE 1344 1350 /* 1345 1351 * Validate input / context. … … 1350 1356 return VERR_INVALID_PARAMETER; 1351 1357 PVMCPU pVCpu = &pVM->aCpus[idCpu]; 1352 # ifndef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R01358 # ifndef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 1353 1359 if (RT_UNLIKELY(!PGMGetHyperCR3(pVCpu))) 1354 1360 return VERR_PGM_NO_CR3_SHADOW_ROOT; 1355 # endif1361 # endif 1356 1362 1357 1363 /* … … 1384 1390 * Commit the CPU identifiers. 1385 1391 */ 1386 # ifdef VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI1392 # ifdef VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI 1387 1393 CPUMR0SetLApic(pVCpu, iHostCpuSet); 1388 # endif1394 # endif 1389 1395 pVCpu->iHostCpuSet = iHostCpuSet; 1390 1396 ASMAtomicWriteU32(&pVCpu->idHostCpu, idHostCpu); … … 1419 1425 ASMSetFlags(fFlags); 1420 1426 return rc; 1427 1428 #else /* !VBOX_WITH_RAW_MODE */ 1429 return VERR_RAW_MODE_NOT_SUPPORTED; 1430 #endif 1421 1431 } 1422 1432
Note:
See TracChangeset
for help on using the changeset viewer.