VirtualBox

Changeset 47660 in vbox for trunk/src/VBox/VMM/VMMRZ


Ignore:
Timestamp:
Aug 12, 2013 12:37:34 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87863
Message:

VMM: Debug register handling redo. (only partly tested on AMD-V so far.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMRZ/DBGFRZ.cpp

    r44528 r47660  
    4141 * @param   pVCpu       Pointer to the VMCPU.
    4242 * @param   pRegFrame   Pointer to the register frame for the trap.
    43  * @param   uDr6        The DR6 register value.
     43 * @param   uDr6        The DR6 hypervisor register value.
    4444 */
    4545VMMRZ_INT_DECL(int) DBGFRZTrap01Handler(PVM pVM, PVMCPU pVCpu, PCPUMCTXCORE pRegFrame, RTGCUINTREG uDr6)
     
    8585    }
    8686
    87 #ifdef IN_RC
    8887    /*
    89      * Currently we only implement single stepping in the guest,
    90      * so we'll bitch if this is not a BS event.
     88     * Either an ICEBP in hypervisor code or a guest related debug exception
     89     * of sorts.
    9190     */
    92     AssertMsg(uDr6 & X86_DR6_BS, ("hey! we're not doing guest BPs yet! dr6=%RTreg %04x:%RGv\n",
    93                                   uDr6, pRegFrame->cs.Sel, pRegFrame->rip));
    94 #endif
     91    if (RT_UNLIKELY(fInHyper))
     92    {
     93        LogFlow(("DBGFRZTrap01Handler: unabled bp at %04x:%RGv\n", pRegFrame->cs.Sel, pRegFrame->rip));
     94        return VERR_DBGF_HYPER_DB_XCPT;
     95    }
    9596
    9697    LogFlow(("DBGFRZTrap01Handler: guest debug event %RTreg at %04x:%RGv!\n", uDr6, pRegFrame->cs.Sel, pRegFrame->rip));
    97     return fInHyper ? VERR_DBGF_HYPER_DB_XCPT : VINF_EM_RAW_GUEST_TRAP;
     98    return VINF_EM_RAW_GUEST_TRAP;
    9899}
    99100
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