VirtualBox

Changeset 49152 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Oct 17, 2013 7:30:41 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90012
Message:

HMR0VMX.cpp: Clear the TF bit in the single step loop, instead on later in the common exit-to-ring3 code.

File:
1 edited

Legend:

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

    r49085 r49152  
    64236423    }
    64246424
    6425     /*
    6426      * Clear the X86_EFL_TF if necessary.
    6427      */
    6428     if (pVCpu->hm.s.fClearTrapFlag)
    6429     {
    6430         Assert(pVCpu->hm.s.vmx.fUpdatedGuestState & HMVMX_UPDATED_GUEST_RFLAGS);
    6431         pMixedCtx->eflags.Bits.u1TF = 0;
    6432         pVCpu->hm.s.fClearTrapFlag = false;
    6433     }
    6434     /** @todo there seems to be issues with the resume flag when the monitor trap
    6435      *        flag is pending without being used. Seen early in bios init when
    6436      *        accessing APIC page in prot mode. */
     6425    Assert(!pVCpu->hm.s.fClearTrapFlag);
    64376426
    64386427    /* On our way back from ring-3 reload the guest state if there is a possibility of it being changed. */
     
    79847973        VMCPU_HMCF_SET(pVCpu, HM_CHANGED_GUEST_DEBUG);
    79857974    }
     7975
     7976    /*
     7977     * Clear the X86_EFL_TF if necessary.
     7978     */
     7979    if (pVCpu->hm.s.fClearTrapFlag)
     7980    {
     7981        int rc2 = hmR0VmxSaveGuestRflags(pVCpu, pCtx);
     7982        AssertRCReturn(rc2, rc2);
     7983        pVCpu->hm.s.fClearTrapFlag = false;
     7984        pCtx->eflags.Bits.u1TF = 0;
     7985    }
     7986    /** @todo there seems to be issues with the resume flag when the monitor trap
     7987     *        flag is pending without being used. Seen early in bios init when
     7988     *        accessing APIC page in prot mode. */
    79867989
    79877990    STAM_PROFILE_ADV_STOP(&pVCpu->hm.s.StatEntry, x);
Note: See TracChangeset for help on using the changeset viewer.

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