VirtualBox

Changeset 47706 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 13, 2013 7:08:07 PM (11 years ago)
Author:
vboxsync
Message:

Must be careful in ring-3 too.

File:
1 edited

Legend:

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

    r47661 r47706  
    22592259    {
    22602260        Assert(!CPUMIsGuestDebugStateActive(pVCpu));
     2261#ifdef IN_RC
     2262        bool const fHmEnabled = false;
     2263#elif defined(IN_RING3)
     2264        bool const fHmEnabled = HMIsEnabled(pVM);
     2265#endif
    22612266
    22622267        /*
     
    22772282        {
    22782283            uNewDr0 = CPUMGetGuestDR0(pVCpu);
    2279 #ifdef IN_RC
    2280             if (MMHyperIsInsideArea(pVM, uNewDr0))
     2284#ifndef IN_RING0
     2285            if (fHmEnabled && MMHyperIsInsideArea(pVM, uNewDr0))
    22812286                uNewDr0 = 0;
    22822287            else
     
    22972302        {
    22982303            uNewDr1 = CPUMGetGuestDR1(pVCpu);
    2299 #ifdef IN_RC
    2300             if (MMHyperIsInsideArea(pVM, uNewDr1))
     2304#ifndef IN_RING0
     2305            if (fHmEnabled && MMHyperIsInsideArea(pVM, uNewDr1))
    23012306                uNewDr1 = 0;
    23022307            else
     
    23172322        {
    23182323            uNewDr2 = CPUMGetGuestDR2(pVCpu);
    2319 #ifdef IN_RC
    2320             if (MMHyperIsInsideArea(pVM, uNewDr2))
     2324#ifndef IN_RING0
     2325            if (fHmEnabled && MMHyperIsInsideArea(pVM, uNewDr2))
    23212326                uNewDr2 = 0;
    23222327            else
     
    23372342        {
    23382343            uNewDr3 = CPUMGetGuestDR3(pVCpu);
    2339 #ifdef IN_RC
    2340             if (MMHyperIsInsideArea(pVM, uNewDr3))
     2344#ifndef IN_RING0
     2345            if (fHmEnabled && MMHyperIsInsideArea(pVM, uNewDr3))
    23412346                uNewDr3 = 0;
    23422347            else
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