Changeset 90997 in vbox for trunk/src/VBox/VMM/VMMAll/VMAll.cpp
- Timestamp:
- Aug 30, 2021 2:04:48 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/VMAll.cpp
r82968 r90997 33 33 34 34 35 #ifdef IN_RING3 36 35 37 /** 36 38 * Sets the error message. … … 73 75 VMMDECL(int) VMSetErrorV(PVMCC pVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list args) 74 76 { 75 # ifdef IN_RING377 # ifdef IN_RING3 76 78 /* 77 79 * Switch to EMT. … … 83 85 va_end(va2); 84 86 85 # else87 # else 86 88 /* 87 89 * We're already on the EMT thread and can safely create a VMERROR chunk. … … 89 91 vmSetErrorCopy(pVM, rc, RT_SRC_POS_ARGS, pszFormat, args); 90 92 VMMRZCallRing3NoCpu(pVM, VMMCALLRING3_VM_SET_ERROR, 0); 91 # endif93 # endif 92 94 return rc; 93 95 } … … 111 113 { 112 114 NOREF(pVM); NOREF(rc); RT_SRC_POS_NOREF(); NOREF(pszFormat); NOREF(args); 113 # if 0 /// @todo implement Ring-0 and GC VMSetError115 # if 0 /// @todo implement Ring-0 and GC VMSetError 114 116 /* 115 117 * Create the untranslated message copy. … … 169 171 pVM->vm.s.pErrorR3 = MMHyper2HC(pVM, (uintptr_t)pArgs.pErr); 170 172 } 171 #endif 172 } 173 173 # endif 174 } 175 176 #endif /* IN_RING3 */ 177 #ifdef IN_RING3 174 178 175 179 /** … … 245 249 Assert(RTStrEnd(pszFormat, 512) != NULL); 246 250 247 # ifdef IN_RING3251 # ifdef IN_RING3 248 252 /* 249 253 * Switch to EMT. … … 274 278 } 275 279 276 # else280 # else 277 281 /* 278 282 * We're already on the EMT and can safely create a VMRUNTIMEERROR chunk. … … 282 286 283 287 int rc = VMMRZCallRing3NoCpu(pVM, VMMCALLRING3_VM_SET_RUNTIME_ERROR, 0); 284 # endif288 # endif 285 289 286 290 Log(("VMSetRuntimeErrorV: returns %Rrc (pszErrorId=%s)\n", rc, pszErrorId)); … … 307 311 { 308 312 NOREF(pVM); NOREF(fFlags); NOREF(pszErrorId); NOREF(pszFormat); NOREF(va); 309 # if 0 /// @todo implement Ring-0 and GC VMSetError313 # if 0 /// @todo implement Ring-0 and GC VMSetError 310 314 /* 311 315 * Create the untranslated message copy. … … 356 360 pVM->vm.s.pErrorRuntimeR3 = MMHyper2HC(pVM, (uintptr_t)pArgs.pErr); 357 361 } 358 #endif 359 } 360 362 # endif 363 } 364 365 #endif /* IN_RING3 */ 361 366 362 367 /**
Note:
See TracChangeset
for help on using the changeset viewer.