VirtualBox

Changeset 2150 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Apr 18, 2007 8:46:36 AM (18 years ago)
Author:
vboxsync
Message:

Get cpl from hidden ss selector register.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r2134 r2150  
    456456
    457457    /* Set CPL */
    458     if (!(pCtx->cr0 & X86_CR0_PE))
    459         pVMCB->guest.u8CPL     = 0;
    460     else
    461     if (pCtx->eflags.Bits.u1VM)
    462         pVMCB->guest.u8CPL     = 3;
    463     else
    464         pVMCB->guest.u8CPL     = (pCtx->ss & X86_SEL_RPL);
     458    pVMCB->guest.u8CPL     = pCtx->ssHid.Attr.n.u2Dpl;
    465459
    466460    /* RAX/EAX too, as VMRUN uses RAX as an implicit parameter. */
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