Changeset 1918 in vbox for trunk/src/VBox
- Timestamp:
- Apr 4, 2007 10:02:24 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/PATM.cpp
r1917 r1918 3916 3916 uint32_t opsize; 3917 3917 PPATMPATCHREC pPatchRec; 3918 PCPUMCTX pCtx = 0; 3918 3919 bool disret; 3919 3920 int rc; … … 3948 3949 return VERR_PATCHING_REFUSED; 3949 3950 3950 #ifdef VBOX_STRICT 3951 PCPUMCTX pCtx = 0; 3952 3951 /* Make sure the code selector is wide open; otherwise refuse. */ 3953 3952 CPUMQueryGuestCtxPtr(pVM, &pCtx); 3954 3955 if ( !pCtx->eflags.Bits.u1VM 3956 && (pCtx->ss & X86_SEL_RPL) == 0) 3957 { 3958 RTGCPTR pInstrGCFlat = SELMToFlat(pVM, pCtx->eflags, pCtx->cs, &pCtx->csHid, pInstrGC); 3959 AssertMsg(pInstrGCFlat == pInstrGC, ("%04x:%VGv != %VGv eflags=%08x\n", pCtx->cs, pInstrGCFlat, pInstrGC, pCtx->eflags.u32)); 3960 } 3961 #endif 3953 Assert(!pCtx->eflags.Bits.u1VM && (pCtx->ss & X86_SEL_RPL) == 0); 3954 RTGCPTR pInstrGCFlat = SELMToFlat(pVM, pCtx->eflags, pCtx->cs, &pCtx->csHid, pInstrGC); 3955 AssertMsgReturn(pInstrGCFlat == pInstrGC, ("%04x:%VGv != %VGv eflags=%08x\n", pCtx->cs, pInstrGCFlat, pInstrGC, pCtx->eflags.u32), VERR_PATCHING_REFUSED); 3962 3956 3963 3957 /** @note the OpenBSD specific check will break if we allow additional patches to be installed (int 3)) */
Note:
See TracChangeset
for help on using the changeset viewer.