Changeset 2150 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Apr 18, 2007 8:46:36 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r2134 r2150 456 456 457 457 /* 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; 465 459 466 460 /* RAX/EAX too, as VMRUN uses RAX as an implicit parameter. */
Note:
See TracChangeset
for help on using the changeset viewer.