Lines Matching defs:pGstDesc
103 * @param pGstDesc The guest descriptor table entry.
107 DECLINLINE(bool) selmIsGstDescGoodForSReg(PVMCPU pVCpu, PCCPUMSELREG pSReg, PCX86DESC pGstDesc, uint32_t iSReg, uint32_t uCpl)
113 if (!pGstDesc->Gen.u1Present)
119 if (!pGstDesc->Gen.u1DescType)
127 if ((pGstDesc->Gen.u4Type & (X86_SEL_TYPE_CODE | X86_SEL_TYPE_WRITE)) != X86_SEL_TYPE_WRITE)
132 if (uCpl > pGstDesc->Gen.u2Dpl)
134 Log(("selmIsGstDescGoodForSReg: CPL(%d) > DPL(%d)\n", uCpl, pGstDesc->Gen.u2Dpl));
142 if (!(pGstDesc->Gen.u4Type & X86_SEL_TYPE_CODE))
148 else if ((pGstDesc->Gen.u4Type & (X86_SEL_TYPE_CODE | X86_SEL_TYPE_READ)) == X86_SEL_TYPE_CODE)
154 if ( (pGstDesc->Gen.u4Type & (X86_SEL_TYPE_CODE | X86_SEL_TYPE_CONF))
156 && ( ( (pSReg->Sel & X86_SEL_RPL) > pGstDesc->Gen.u2Dpl
159 || uCpl > (unsigned)pGstDesc->Gen.u2Dpl
164 pGstDesc->Gen.u2Dpl, uCpl, pSReg->Sel & X86_SEL_RPL, CPUMIsGuestInRawMode(pVCpu)));
297 * @param pGstDesc The guest descriptor table entry.
299 DECLINLINE(void) selmLoadHiddenSRegFromGuestDesc(PVMCPU pVCpu, PCPUMSELREG pSReg, PCX86DESC pGstDesc)
301 pSReg->Attr.u = X86DESC_GET_HID_ATTR(pGstDesc);
303 pSReg->u32Limit = X86DESC_LIMIT_G(pGstDesc);
304 pSReg->u64Base = X86DESC_BASE(pGstDesc);