Changeset 50601 in vbox for trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
- Timestamp:
- Feb 26, 2014 11:20:12 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r50600 r50601 5596 5596 NOREF(pMixedCtx); 5597 5597 5598 int rc = VINF_SUCCESS: 5598 /* 5599 * While in the middle of saving guest-CR0, we could get preempted and re-invoked from the preemption hook, 5600 * see hmR0VmxLeave(). Safer to just make this code non-preemptible. 5601 */ 5602 VMMRZCallRing3Disable(pVCpu); 5603 HM_DISABLE_PREEMPT_IF_NEEDED(); 5604 5599 5605 if (!HMVMXCPU_GST_IS_UPDATED(pVCpu, HMVMX_UPDATED_GUEST_CR0)) 5600 5606 { 5601 5607 uint32_t uVal = 0; 5602 rc = VMXReadVmcs32(VMX_VMCS_GUEST_CR0, &uVal);5608 int rc = VMXReadVmcs32(VMX_VMCS_GUEST_CR0, &uVal); 5603 5609 AssertRCReturn(rc, rc); 5604 5610 … … 5611 5617 HMVMXCPU_GST_SET_UPDATED(pVCpu, HMVMX_UPDATED_GUEST_CR0); 5612 5618 } 5613 return rc; 5619 5620 HM_RESTORE_PREEMPT_IF_NEEDED(); 5621 VMMRZCallRing3Enable(pVCpu); 5622 return VINF_SUCCESS; 5614 5623 } 5615 5624
Note:
See TracChangeset
for help on using the changeset viewer.