VirtualBox

Changeset 12578 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Sep 18, 2008 2:58:57 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
36800
Message:

Enable hardware breakpoint support for VT-x and AMD-V.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp

    r11704 r12578  
    18061806
    18071807
     1808
     1809/**
     1810 * Checks if the guest debug state is active
     1811 *
     1812 * @returns boolean
     1813 * @param   pVM         VM handle.
     1814 */
     1815CPUMDECL(bool) CPUMIsGuestDebugStateActive(PVM pVM)
     1816{
     1817    return (pVM->cpum.s.fUseFlags & CPUM_USE_DEBUG_REGS) != 0;
     1818}
     1819
     1820/**
     1821 * Mark the guest's debug state as inactive
     1822 *
     1823 * @returns boolean
     1824 * @param   pVM         VM handle.
     1825 */
     1826CPUMDECL(void) CPUMDeactivateGuestDebugtate(PVM pVM)
     1827{
     1828    pVM->cpum.s.fUseFlags &= ~CPUM_USE_DEBUG_REGS;
     1829}
     1830
     1831
    18081832/**
    18091833 * Checks if the hidden selector registers are valid
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