Changeset 105409 in vbox
- Timestamp:
- Jul 19, 2024 12:27:32 AM (4 months ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/DBGFR3BugCheck.cpp
r105169 r105409 62 62 PCFGMNODE const pCfgNode = CFGMR3GetChild(CFGMR3GetRoot(pVM), "DBGF/"); 63 63 64 /** @cfgm{/DBGF/SuspendOnBsod, boolean, false} 65 * Enables suspending (pausing) of the VM on a BSOD. 66 */ 67 int rc = CFGMR3QueryBoolDef(pCfgNode, "SuspendOnBsod", &pVM->dbgf.s.BugCheck.fCfgSuspendOnBsod, false); 68 AssertLogRelRCReturn(rc, rc); 69 64 70 /** @cfgm{/DBGF/PowerOffOnBsod, boolean, false} 65 71 * Enables powering off the VM automatically on a BSOD. 66 72 */ 67 pVM->dbgf.s.BugCheck.fCfgPowerOffOnBsod; 68 int rc = CFGMR3QueryBoolDef(pCfgNode, "PowerOffOnBsod", &pVM->dbgf.s.BugCheck.fCfgPowerOffOnBsod, false); 73 rc = CFGMR3QueryBoolDef(pCfgNode, "PowerOffOnBsod", &pVM->dbgf.s.BugCheck.fCfgPowerOffOnBsod, false); 69 74 AssertLogRelRCReturn(rc, rc); 70 75 … … 889 894 VMR3ReqCallNoWaitU(pUVM, VMCPUID_ANY_QUEUE, (PFNRT)VMR3PowerOff, 1, pUVM); 890 895 } 896 else if (pVM->dbgf.s.BugCheck.fCfgSuspendOnBsod) 897 { 898 RTMsgError("Suspending - guest BSOD: %s\n", szDetails); 899 PUVM const pUVM = pVM->pUVM; 900 VMR3ReqCallNoWaitU(pUVM, VMCPUID_ANY_QUEUE, (PFNRT)VMR3Suspend, 2, pUVM, VMSUSPENDREASON_RUNTIME_ERROR); 901 } 891 902 return rc; 892 903 } -
trunk/src/VBox/VMM/include/DBGFInternal.h
r105168 r105409 1167 1167 struct 1168 1168 { 1169 /** Whether to power off VM on BSOD. */1169 /** Whether to power off the VM on BSOD. */ 1170 1170 bool fCfgPowerOffOnBsod; 1171 /** Whether to suspend the VM on BSOD. */ 1172 bool fCfgSuspendOnBsod; 1171 1173 /** Explicit padding. */ 1172 bool afReserved[ 3];1174 bool afReserved[2]; 1173 1175 1174 1176 /** The ID of the CPU reporting it. */
Note:
See TracChangeset
for help on using the changeset viewer.