Changeset 98644 in vbox
- Timestamp:
- Feb 20, 2023 12:05:56 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 155944
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/vmapi.h
r98267 r98644 384 384 385 385 386 VMMR3DECL(int) VMR3Create(uint32_t cCpus, PCVMM2USERMETHODS pVm2UserCbs, 386 VMMR3DECL(int) VMR3Create(uint32_t cCpus, PCVMM2USERMETHODS pVm2UserCbs, uint64_t fFlags, 387 387 PFNVMATERROR pfnVMAtError, void *pvUserVM, 388 388 PFNCFGMCONSTRUCTOR pfnCFGMConstructor, void *pvUserCFGM, 389 389 PVM *ppVM, PUVM *ppUVM); 390 /** @name VMCREATE_F_XXX - VMR3Create flags. 391 * @{ */ 392 /** Create the VM with SUPLib in driverless mode. */ 393 #define VMCREATE_F_DRIVERLESS RT_BIT_64(0) 394 /** @} */ 390 395 VMMR3DECL(int) VMR3PowerOn(PUVM pUVM); 391 396 VMMR3DECL(int) VMR3Suspend(PUVM pUVM, VMSUSPENDREASON enmReason); -
trunk/src/VBox/HostDrivers/Support/win/SUPLib-win.cpp
r98103 r98644 151 151 #endif 152 152 } 153 154 #if !defined(IN_SUP_HARDENED_R3) 155 /* 156 * Driverless? 157 */ 158 if (fFlags & SUPR3INIT_F_DRIVERLESS) 159 { 160 pThis->fDriverless = true; 161 return VINF_SUCCESS; 162 } 163 #endif 153 164 154 165 /* … … 274 285 pErrInfo->pszMsg[0] = '\0'; 275 286 } 287 288 /* 289 * Do fallback. 290 */ 291 if ( (fFlags & SUPR3INIT_F_DRIVERLESS_MASK) 292 && rcNt != -1 /** @todo */ ) 293 { 294 LogRel(("Failed to open '%.*ls' rc=%Rrc rcNt=%#x - Switching to driverless mode.\n", 295 NtName.Length / sizeof(WCHAR), NtName.Buffer, rc, rcNt)); 296 pThis->fDriverless = true; 297 return VINF_SUCCESS; 298 } 299 276 300 #else 277 301 RT_NOREF1(penmWhat); -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r98340 r98644 11022 11022 vrc = pVMM->pfnVMR3Create(cCpus, 11023 11023 pConsole->mpVmm2UserMethods, 11024 0 /*fFlags*/, 11024 11025 Console::i_genericVMSetErrorCallback, 11025 11026 &pTask->mErrorMsg, -
trunk/src/VBox/VMM/VMMR3/CFGM.cpp
r98103 r98644 1085 1085 rc = CFGMR3InsertInteger(pRoot, "TimerMillies", 10); 1086 1086 UPDATERC(); 1087 1088 /* 1089 * HM. 1090 */ 1091 PCFGMNODE pHm; 1092 rc = CFGMR3InsertNode(pRoot, "HM", &pHm); 1093 UPDATERC(); 1094 rc = CFGMR3InsertInteger(pHm, "FallbackToIEM", 1); /* boolean */ 1095 UPDATERC(); 1096 1087 1097 1088 1098 /* … … 3293 3303 LogRel(("************************* CFGM dump *************************\n")); 3294 3304 cfgmR3Dump(pRoot, 0, DBGFR3InfoLogRelHlp()); 3305 #ifdef LOG_ENABLED 3306 if (LogIsEnabled()) 3307 cfgmR3Dump(pRoot, 0, DBGFR3InfoLogHlp()); 3308 #endif 3295 3309 LogRel(("********************* End of CFGM dump **********************\n")); 3296 3310 RTLogRelSetBuffering(fOldBuffered); -
trunk/src/VBox/VMM/VMMR3/VM.cpp
r98103 r98644 133 133 * to make the user perform various action, like 134 134 * for instance state saving. 135 * @param fFlags VMCREATE_F_XXX 135 136 * @param pfnVMAtError Pointer to callback function for setting VM 136 137 * errors. This was added as an implicit call to … … 151 152 * VMR3ReleaseUVM() once done with the handle. 152 153 */ 153 VMMR3DECL(int) VMR3Create(uint32_t cCpus, PCVMM2USERMETHODS pVmm2UserMethods, 154 VMMR3DECL(int) VMR3Create(uint32_t cCpus, PCVMM2USERMETHODS pVmm2UserMethods, uint64_t fFlags, 154 155 PFNVMATERROR pfnVMAtError, void *pvUserVM, 155 156 PFNCFGMCONSTRUCTOR pfnCFGMConstructor, void *pvUserCFGM, 156 157 PVM *ppVM, PUVM *ppUVM) 157 158 { 158 LogFlow(("VMR3Create: cCpus=%RU32 pVmm2UserMethods=%p pfnVMAtError=%p pvUserVM=%p pfnCFGMConstructor=%p pvUserCFGM=%p ppVM=%p ppUVM=%p\n",159 cCpus, pVmm2UserMethods, pfnVMAtError, pvUserVM, pfnCFGMConstructor, pvUserCFGM, ppVM, ppUVM));159 LogFlow(("VMR3Create: cCpus=%RU32 pVmm2UserMethods=%p fFlags=%#RX64 pfnVMAtError=%p pvUserVM=%p pfnCFGMConstructor=%p pvUserCFGM=%p ppVM=%p ppUVM=%p\n", 160 cCpus, pVmm2UserMethods, fFlags, pfnVMAtError, pvUserVM, pfnCFGMConstructor, pvUserCFGM, ppVM, ppUVM)); 160 161 161 162 if (pVmm2UserMethods) … … 177 178 AssertPtrNullReturn(ppUVM, VERR_INVALID_POINTER); 178 179 AssertReturn(ppVM || ppUVM, VERR_INVALID_PARAMETER); 180 AssertMsgReturn(!(fFlags & ~VMCREATE_F_DRIVERLESS), ("%#RX64\n", fFlags), VERR_INVALID_FLAGS); 179 181 180 182 /* … … 198 200 * Initialize the support library creating the session for this VM. 199 201 */ 200 rc = SUPR3Init(&pUVM->vm.s.pSession); 202 if (fFlags & VMCREATE_F_DRIVERLESS) 203 rc = SUPR3InitEx(SUPR3INIT_F_DRIVERLESS | SUPR3INIT_F_DRIVERLESS_IEM_ALLOWED, &pUVM->vm.s.pSession); 204 else 205 rc = SUPR3Init(&pUVM->vm.s.pSession); 201 206 if (RT_SUCCESS(rc)) 202 207 { -
trunk/src/VBox/VMM/testcase/tstAnimate.cpp
r98103 r98644 839 839 PVM pVM; 840 840 PUVM pUVM; 841 rc = VMR3Create(1 , NULL, NULL, NULL, cfgmR3CreateDefault, &cbMem, &pVM, &pUVM);841 rc = VMR3Create(1 /*cCpus*/, NULL, 0 /*fFlags*/, NULL, NULL, cfgmR3CreateDefault, &cbMem, &pVM, &pUVM); 842 842 if (RT_SUCCESS(rc)) 843 843 { -
trunk/src/VBox/VMM/testcase/tstPDMAsyncCompletion.cpp
r98103 r98644 103 103 PVM pVM; 104 104 PUVM pUVM; 105 int rc = VMR3Create(1 , NULL, NULL, NULL, NULL, NULL, &pVM, &pUVM);105 int rc = VMR3Create(1 /*cCpus*/, NULL, 0 /*fFlags*/, NULL, NULL, NULL, NULL, &pVM, &pUVM); 106 106 if (RT_SUCCESS(rc)) 107 107 { -
trunk/src/VBox/VMM/testcase/tstPDMAsyncCompletionStress.cpp
r98103 r98644 592 592 PVM pVM; 593 593 PUVM pUVM; 594 int rc = VMR3Create(1 , NULL, NULL, NULL, NULL, NULL, &pVM, &pUVM);594 int rc = VMR3Create(1 /*cCpus*/, NULL, 0 /*fFlags*/, NULL, NULL, NULL, NULL, &pVM, &pUVM); 595 595 if (RT_SUCCESS(rc)) 596 596 { -
trunk/src/VBox/VMM/testcase/tstPDMQueue.cpp
r98103 r98644 424 424 PVM pVM; 425 425 PUVM pUVM; 426 RTTESTI_CHECK_RC_OK_RETV(VMR3Create(1 , NULL, NULL, NULL, NULL, NULL, &pVM, &pUVM));426 RTTESTI_CHECK_RC_OK_RETV(VMR3Create(1 /*cCpus*/, NULL, VMCREATE_F_DRIVERLESS, NULL, NULL, NULL, NULL, &pVM, &pUVM)); 427 427 428 428 /* -
trunk/src/VBox/VMM/testcase/tstVMM-HM.cpp
r98103 r98644 98 98 PVM pVM; 99 99 PUVM pUVM; 100 int rc = VMR3Create(1 , NULL, NULL, NULL, tstVmmHmConfigConstructor, NULL, &pVM, &pUVM);100 int rc = VMR3Create(1 /*cCpus*/, NULL, 0 /*fFlags*/, NULL, NULL, tstVmmHmConfigConstructor, NULL, &pVM, &pUVM); 101 101 if (RT_SUCCESS(rc)) 102 102 { -
trunk/src/VBox/VMM/testcase/tstVMMFork.cpp
r98103 r98644 78 78 PVM pVM; 79 79 PUVM pUVM; 80 int rc = VMR3Create(1 , NULL, NULL, NULL, NULL, NULL, &pVM, &pUVM);80 int rc = VMR3Create(1 /*cCpus*/, NULL, 0 /*fFlags*/, NULL, NULL, NULL, NULL, &pVM, &pUVM); 81 81 if (RT_SUCCESS(rc)) 82 82 { -
trunk/src/VBox/VMM/testcase/tstVMREQ.cpp
r98103 r98644 240 240 */ 241 241 PUVM pUVM; 242 int rc = VMR3Create(1 , NULL, NULL, NULL, tstVMREQConfigConstructor, NULL, NULL, &pUVM);242 int rc = VMR3Create(1 /*cCpus*/, NULL, 0 /*fFlags*/, NULL, NULL, tstVMREQConfigConstructor, NULL, NULL, &pUVM); 243 243 if (RT_SUCCESS(rc)) 244 244 {
Note:
See TracChangeset
for help on using the changeset viewer.