Lines Matching defs:Desc

2108     X86DESC64   Desc;
2133 int rc = PGMPhysSimpleReadGCPtr(pVCpu, &Desc, GCPtrDesc, sizeof(Desc));
2136 rc = PGMPhysSimpleReadGCPtr(pVCpu, &Desc, GCPtrDesc, sizeof(X86DESC));
2139 Desc.au64[1] = 0;
2148 pSelInfo->u.Raw64 = Desc;
2149 if (Desc.Gen.u1DescType)
2158 if ( Desc.Gen.u1Long
2159 && !Desc.Gen.u1DefBig
2160 && (Desc.Gen.u4Type & X86_SEL_TYPE_CODE))
2168 pSelInfo->cbLimit = X86DESC_LIMIT_G(&Desc);
2169 pSelInfo->GCPtrBase = X86DESC_BASE(&Desc);
2173 else if ( Desc.Gen.u4Type == AMD64_SEL_TYPE_SYS_LDT
2174 || Desc.Gen.u4Type == AMD64_SEL_TYPE_SYS_TSS_AVAIL
2175 || Desc.Gen.u4Type == AMD64_SEL_TYPE_SYS_TSS_BUSY)
2179 pSelInfo->GCPtrBase = X86DESC64_BASE(&Desc);
2180 pSelInfo->cbLimit = X86DESC_LIMIT_G(&Desc);
2183 else if ( Desc.Gen.u4Type == AMD64_SEL_TYPE_SYS_CALL_GATE
2184 || Desc.Gen.u4Type == AMD64_SEL_TYPE_SYS_TRAP_GATE
2185 || Desc.Gen.u4Type == AMD64_SEL_TYPE_SYS_INT_GATE)
2187 pSelInfo->cbLimit = X86DESC64_BASE(&Desc);
2188 pSelInfo->GCPtrBase = Desc.Gate.u16OffsetLow
2189 | ((uint32_t)Desc.Gate.u16OffsetHigh << 16)
2190 | ((uint64_t)Desc.Gate.u32OffsetTop << 32);
2191 pSelInfo->SelGate = Desc.Gate.u16Sel;
2201 if (!Desc.Gen.u1Present)
2269 X86DESC Desc;
2287 Desc = pVM->selm.s.paGdtR3[Sel >> X86_SEL_SHIFT];
2320 int rc = PGMPhysSimpleReadGCPtr(pVCpu, &Desc, GCPtrDesc, sizeof(Desc));
2343 selmR3SelInfoFromDesc32(pSelInfo, &Desc);
2408 X86DESC Desc;
2414 Desc = pVM->selm.s.paGdtR3[Sel >> X86_SEL_SHIFT];
2430 Desc = paLDT[Sel >> X86_SEL_SHIFT];
2444 selmR3SelInfoFromDesc32(pSelInfo, &Desc);
2453 * @param Desc Descriptor to format.
2458 static void selmR3FormatDescriptor(X86DESC Desc, RTSEL Sel, char *pszOutput, size_t cchOutput)
2509 unsigned i = Desc.Gen.u1DescType << 4 | Desc.Gen.u4Type;
2513 if (Desc.Gen.u1Present)
2517 if (Desc.Gen.u1Granularity)
2519 if (Desc.Gen.u1DefBig)
2529 uint32_t u32Limit = X86DESC_LIMIT_G(&Desc);
2530 uint32_t u32Base = X86DESC_BASE(&Desc);
2533 Sel, Desc.au32[0], Desc.au32[1], u32Base, u32Limit, Desc.Gen.u2Dpl, szMsg);
2540 * @param Desc Descriptor to dump.
2544 VMMR3DECL(void) SELMR3DumpDescriptor(X86DESC Desc, RTSEL Sel, const char *pszMsg)
2547 selmR3FormatDescriptor(Desc, Sel, &szOutput[0], sizeof(szOutput));