VirtualBox

Ignore:
Timestamp:
Feb 26, 2014 11:20:12 AM (11 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Undo r92473. We -do- need it, better comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r50600 r50601  
    55965596    NOREF(pMixedCtx);
    55975597
    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
    55995605    if (!HMVMXCPU_GST_IS_UPDATED(pVCpu, HMVMX_UPDATED_GUEST_CR0))
    56005606    {
    56015607        uint32_t uVal    = 0;
    5602         rc = VMXReadVmcs32(VMX_VMCS_GUEST_CR0,            &uVal);
     5608        int rc = VMXReadVmcs32(VMX_VMCS_GUEST_CR0,            &uVal);
    56035609        AssertRCReturn(rc, rc);
    56045610
     
    56115617        HMVMXCPU_GST_SET_UPDATED(pVCpu, HMVMX_UPDATED_GUEST_CR0);
    56125618    }
    5613     return rc;
     5619
     5620    HM_RESTORE_PREEMPT_IF_NEEDED();
     5621    VMMRZCallRing3Enable(pVCpu);
     5622    return VINF_SUCCESS;
    56145623}
    56155624
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette