VirtualBox

Changeset 10523 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 11, 2008 1:17:02 PM (16 years ago)
Author:
vboxsync
Message:

Backed out CPL change; fixes ACP2 installation regression for VT-x.

File:
1 edited

Legend:

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

    r10154 r10523  
    18181818    uint32_t cpl;
    18191819
    1820     /*
    1821      * The hidden CS.DPL register is always equal to the CPL, it is
    1822      * not affected by loading a conforming coding segment.
    1823      */
    18241820    if (CPUMAreHiddenSelRegsValid(pVM))
    1825         cpl = pCtxCore->csHid.Attr.n.u2Dpl;
     1821    {
     1822        /*
     1823         * The hidden CS.DPL register is always equal to the CPL, it is
     1824         * not affected by loading a conforming coding segment.
     1825         *
     1826         * This only seems to apply to AMD-V; in the VT-x case we *do* need to look at SS. (ACP2 regression during install after a far call to ring 2)
     1827         */
     1828        cpl = pCtxCore->ssHid.Attr.n.u2Dpl;
     1829    }
    18261830    else if (RT_LIKELY(pVM->cpum.s.Guest.cr0 & X86_CR0_PE))
    18271831    {
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