VirtualBox

Ignore:
Timestamp:
Aug 12, 2013 10:57:18 PM (11 years ago)
Author:
vboxsync
Message:

adjustments.

File:
1 edited

Legend:

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

    r47681 r47682  
    91559155         * Note that the I/O breakpoint type is undefined if CR4.DE is 0.
    91569156         */
    9157         /** @todo We're not honoring I/O BPs if informational status code is returned.
    9158          *        We're also ignoring our own debugger's attempt at using I/O
    9159          *        breakpoints.  The whole host & guest debugger stuff needs to be
    9160          *        looked over at some point.  For now, it's just best effort. */
    91619157        int rc2 = hmR0VmxSaveGuestDR7(pVCpu, pMixedCtx);
    91629158        AssertRCReturn(rc2, rc2);
    91639159
     9160        /** @todo Optimize away the DBGFBpIsHwIoArmed call by having DBGF tell the
     9161         *  execution engines about whether hyper BPs and such are pending. */
    91649162        uint32_t const uDr7 = pMixedCtx->dr[7];
    9165         if (   (   (uDr7 & X86_DR7_ENABLED_MASK)
    9166                 && X86_DR7_ANY_RW_IO(uDr7)
    9167                 && (pMixedCtx->cr4 & X86_CR4_DE))
    9168             || DBGFBpIsHwIoArmed(pVM))
     9163        if (RT_UNLIKELY(   (   (uDr7 & X86_DR7_ENABLED_MASK)
     9164                            && X86_DR7_ANY_RW_IO(uDr7)
     9165                            && (pMixedCtx->cr4 & X86_CR4_DE))
     9166                        || DBGFBpIsHwIoArmed(pVM)))
    91699167        {
    91709168            STAM_COUNTER_INC(&pVCpu->hm.s.StatDRxIoCheck);
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