VirtualBox

Changeset 50600 in vbox


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

VMM/HMVMXR0: This should not be necessary, while in preemption hook we're already non-preemptible and no-long-jump guaranteed.

File:
1 edited

Legend:

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

    r50509 r50600  
    55965596    NOREF(pMixedCtx);
    55975597
    5598     /* Since this can be called from our preemption hook it's safer to make the guest-CR0 update non-preemptible. */
    5599     VMMRZCallRing3Disable(pVCpu);
    5600     HM_DISABLE_PREEMPT_IF_NEEDED();
    5601 
     5598    int rc = VINF_SUCCESS:
    56025599    if (!HMVMXCPU_GST_IS_UPDATED(pVCpu, HMVMX_UPDATED_GUEST_CR0))
    56035600    {
    56045601        uint32_t uVal    = 0;
    5605         int rc = VMXReadVmcs32(VMX_VMCS_GUEST_CR0,            &uVal);
     5602        rc = VMXReadVmcs32(VMX_VMCS_GUEST_CR0,            &uVal);
    56065603        AssertRCReturn(rc, rc);
    56075604
     
    56145611        HMVMXCPU_GST_SET_UPDATED(pVCpu, HMVMX_UPDATED_GUEST_CR0);
    56155612    }
    5616 
    5617     HM_RESTORE_PREEMPT_IF_NEEDED();
    5618     VMMRZCallRing3Enable(pVCpu);
    5619 
    5620     return VINF_SUCCESS;
     5613    return rc;
    56215614}
    56225615
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