VirtualBox

Ignore:
Timestamp:
Mar 30, 2007 12:52:55 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20014
Message:

Cleaned up cpl checking.

File:
1 edited

Legend:

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

    r1634 r1828  
    12031203     */
    12041204    uint32_t efl = CPUMRawGetEFlags(pVM, pCtxCore);
    1205     uint32_t cpl = (pCtxCore->ss & X86_SEL_RPL);
    1206 
    1207     if (    (    cpl > 1
     1205    uint32_t cpl = CPUMGetGuestCPL(pVM, pCtxCore);
     1206
     1207    if (    (    cpl > 0
    12081208             &&  X86_EFL_GET_IOPL(efl) < cpl)
    12091209        ||  pCtxCore->eflags.Bits.u1VM      /* IOPL is ignored in V86 mode; always check TSS bitmap */
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