Lines Matching defs:pSelInfo

385 static DECLCALLBACK(int) dbgfR3SelQueryInfo(PUVM pUVM, VMCPUID idCpu, RTSEL Sel, uint32_t fFlags, PDBGFSELINFO pSelInfo)
398 rc = SELMR3GetSelectorInfo(pVM, pVCpu, Sel, pSelInfo);
408 && (pSelInfo->fFlags & ( DBGFSELINFO_FLAGS_LONG_MODE | DBGFSELINFO_FLAGS_REAL_MODE | DBGFSELINFO_FLAGS_PROT_MODE
412 && pSelInfo->cbLimit != ~(RTGCPTR)0
415 pSelInfo->GCPtrBase = 0;
416 pSelInfo->cbLimit = ~(RTGCPTR)0;
421 pSelInfo->GCPtrBase = 0;
422 pSelInfo->cbLimit = ~(RTGCPTR)0;
423 pSelInfo->Sel = 0;
424 pSelInfo->SelGate = 0;
425 pSelInfo->fFlags = DBGFSELINFO_FLAGS_LONG_MODE;
426 pSelInfo->u.Raw64.Gen.u1Present = 1;
427 pSelInfo->u.Raw64.Gen.u1Long = 1;
428 pSelInfo->u.Raw64.Gen.u1DescType = 1;
438 rc = SELMR3GetShadowSelectorInfo(pVM, Sel, pSelInfo);
464 * @param pSelInfo Where to store the information. This will always be
470 VMMR3DECL(int) DBGFR3SelQueryInfo(PUVM pUVM, VMCPUID idCpu, RTSEL Sel, uint32_t fFlags, PDBGFSELINFO pSelInfo)
479 memset(pSelInfo, 0, sizeof(*pSelInfo));
484 return VMR3ReqPriorityCallWaitU(pUVM, idCpu, (PFNRT)dbgfR3SelQueryInfo, 5, pUVM, idCpu, Sel, fFlags, pSelInfo);
492 * @param pSelInfo Pointer to the selector information for the CS selector.
495 VMMDECL(int) DBGFR3SelInfoValidateCS(PCDBGFSELINFO pSelInfo, RTSEL SelCPL)
500 if (pSelInfo->u.Raw.Gen.u1Present)
505 if ( pSelInfo->u.Raw.Gen.u1DescType == 1
506 && (pSelInfo->u.Raw.Gen.u4Type & X86_SEL_TYPE_CODE))
511 unsigned uLevel = RT_MAX(SelCPL & X86_SEL_RPL, pSelInfo->Sel & X86_SEL_RPL);
512 if ( !(pSelInfo->u.Raw.Gen.u4Type & X86_SEL_TYPE_CONF)
513 ? uLevel <= pSelInfo->u.Raw.Gen.u2Dpl
514 : uLevel >= pSelInfo->u.Raw.Gen.u2Dpl /* hope I got this right now... */