Changeset 48448 in vbox
- Timestamp:
- Sep 12, 2013 12:53:17 PM (11 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMR0.cpp
r48426 r48448 800 800 { 801 801 PHMR0FIRSTRC pFirstRc = (PHMR0FIRSTRC)pvUser1; 802 Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD)); 802 803 Assert(idCpu == (RTCPUID)RTMpCpuIdToSetIndex(idCpu)); /** @todo fix idCpu == index assumption (rainy day) */ 803 Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));804 804 NOREF(pvUser2); 805 805 … … 904 904 * @param pVM Pointer to the VM (can be NULL). 905 905 * @param idCpu The identifier for the CPU the function is called on. 906 * 907 * @remarks Maybe called with interrupts disabled! 906 908 */ 907 909 static int hmR0EnableCpu(PVM pVM, RTCPUID idCpu) … … 1071 1073 1072 1074 Assert(!g_HvmR0.vmx.fSupported || !g_HvmR0.vmx.fUsingSUPR0EnableVTx); 1075 Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD)); 1073 1076 Assert(idCpu == (RTCPUID)RTMpCpuIdToSetIndex(idCpu)); /** @todo fix idCpu == index assumption (rainy day) */ 1074 1077 Assert(idCpu < RT_ELEMENTS(g_HvmR0.aCpuInfo)); 1075 1078 Assert(!pCpu->fConfigured || pCpu->hMemObj != NIL_RTR0MEMOBJ); 1076 Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));1077 1079 1078 1080 if (pCpu->hMemObj == NIL_RTR0MEMOBJ) -
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r48394 r48448 948 948 rc = vmmR0CallRing3SetJmp(&pVCpu->vmm.s.CallRing3JmpBufR0, HMR0RunGuestCode, pVM, pVCpu); 949 949 950 /* Manual assert as normal assertions are going to crash in this case. */ 950 951 if (RT_UNLIKELY( VMCPU_GET_STATE(pVCpu) != VMCPUSTATE_STARTED_HM 951 952 && RT_SUCCESS_NP(rc) && rc != VINF_VMM_CALL_HOST )) 952 953 { 953 /* Manual assert as normal assertions are going to crash in this case. */954 954 pVM->vmm.s.szRing0AssertMsg1[0] = '\0'; 955 955 RTStrPrintf(pVM->vmm.s.szRing0AssertMsg2, sizeof(pVM->vmm.s.szRing0AssertMsg2), … … 957 957 rc = VERR_VMM_WRONG_HM_VMCPU_STATE; 958 958 } 959 else if (RT_UNLIKELY(VMMR0ThreadCtxHooksAreRegistered(pVCpu))) 960 { 961 pVM->vmm.s.szRing0AssertMsg1[0] = '\0'; 962 RTStrPrintf(pVM->vmm.s.szRing0AssertMsg2, sizeof(pVM->vmm.s.szRing0AssertMsg2), 963 "Thread-context hooks still registered! VCPU=%p Id=%u rc=%d.\n", pVCpu, pVCpu->idCpu, rc); 964 rc = VERR_INVALID_STATE; 965 } 966 959 967 VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED); 960 968 }
Note:
See TracChangeset
for help on using the changeset viewer.