VirtualBox

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


Ignore:
Timestamp:
Sep 25, 2008 2:07:53 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37058
Message:

CPUMGetGuestCPL fix for real mode in VT-x.

File:
1 edited

Legend:

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

    r12657 r12735  
    19231923         * at SS. (ACP2 regression during install after a far call to ring 2)
    19241924         */
    1925         cpl = pCtxCore->ssHid.Attr.n.u2Dpl;
     1925        if (RT_LIKELY(pVM->cpum.s.Guest.cr0 & X86_CR0_PE))
     1926            cpl = pCtxCore->ssHid.Attr.n.u2Dpl;
     1927        else
     1928            cpl = 0;  /* CPL set to 3 for VT-x real-mode emulation. */
    19261929    }
    19271930    else if (RT_LIKELY(pVM->cpum.s.Guest.cr0 & X86_CR0_PE))
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