Changeset 1926 in vbox for trunk/src/VBox/VMM/PATM
- Timestamp:
- Apr 4, 2007 12:07:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/PATM.cpp
r1921 r1926 3951 3951 /* Make sure the code selector is wide open; otherwise refuse. */ 3952 3952 CPUMQueryGuestCtxPtr(pVM, &pCtx); 3953 Assert(CPUMGetGuestCPL(pVM, CPUMCTX2CORE(pCtx)) == 0); 3954 RTGCPTR pInstrGCFlat = SELMToFlat(pVM, pCtx->eflags, pCtx->cs, &pCtx->csHid, pInstrGC); 3955 if (pInstrGCFlat != pInstrGC) 3956 { 3957 Log(("PATMR3InstallPatch: code selector not wide open: %04x:%VGv != %VGv eflags=%08x\n", pCtx->cs, pInstrGCFlat, pInstrGC, pCtx->eflags.u32)); 3958 return VERR_PATCHING_REFUSED; 3953 if (CPUMGetGuestCPL(pVM, CPUMCTX2CORE(pCtx)) == 0) 3954 { 3955 RTGCPTR pInstrGCFlat = SELMToFlat(pVM, pCtx->eflags, pCtx->cs, &pCtx->csHid, pInstrGC); 3956 if (pInstrGCFlat != pInstrGC) 3957 { 3958 Log(("PATMR3InstallPatch: code selector not wide open: %04x:%VGv != %VGv eflags=%08x\n", pCtx->cs, pInstrGCFlat, pInstrGC, pCtx->eflags.u32)); 3959 return VERR_PATCHING_REFUSED; 3960 } 3959 3961 } 3960 3962
Note:
See TracChangeset
for help on using the changeset viewer.