Lines Matching defs:pHyperCtx
615 #define SYNC_SEL(pHyperCtx, reg) \
616 if (pHyperCtx->reg.Sel) \
619 int rc2 = SELMR3GetShadowSelectorInfo(pVM, pHyperCtx->reg.Sel, &selInfo); \
622 pHyperCtx->reg.u64Base = selInfo.GCPtrBase; \
623 pHyperCtx->reg.u32Limit = selInfo.cbLimit; \
624 pHyperCtx->reg.Attr.n.u1Present = selInfo.u.Raw.Gen.u1Present; \
625 pHyperCtx->reg.Attr.n.u1DefBig = selInfo.u.Raw.Gen.u1DefBig; \
626 pHyperCtx->reg.Attr.n.u1Granularity = selInfo.u.Raw.Gen.u1Granularity; \
627 pHyperCtx->reg.Attr.n.u4Type = selInfo.u.Raw.Gen.u4Type; \
628 pHyperCtx->reg.Attr.n.u2Dpl = selInfo.u.Raw.Gen.u2Dpl; \
629 pHyperCtx->reg.Attr.n.u1DescType = selInfo.u.Raw.Gen.u1DescType; \
630 pHyperCtx->reg.Attr.n.u1Long = selInfo.u.Raw.Gen.u1Long; \
638 PCPUMCTX pHyperCtx, pGuestCtx;
665 pHyperCtx = CPUMGetHyperCtxPtr(pVCpu);
667 pHyperCtx->cr0 = X86_CR0_PE | X86_CR0_WP | X86_CR0_PG | X86_CR0_TS | X86_CR0_ET | X86_CR0_NE | X86_CR0_MP;
668 pHyperCtx->cr4 = X86_CR4_PGE | X86_CR4_OSFXSR | X86_CR4_OSXMMEEXCPT;
669 PGMChangeMode(pVCpu, pHyperCtx->cr0, pHyperCtx->cr4, pHyperCtx->msrEFER);
670 PGMSyncCR3(pVCpu, pHyperCtx->cr0, CR3Phys, pHyperCtx->cr4, true);
686 pHyperCtx = CPUMGetHyperCtxPtr(pVCpu);
689 SYNC_SEL(pHyperCtx, cs);
690 SYNC_SEL(pHyperCtx, ds);
691 SYNC_SEL(pHyperCtx, es);
692 SYNC_SEL(pHyperCtx, fs);
693 SYNC_SEL(pHyperCtx, gs);
694 SYNC_SEL(pHyperCtx, ss);
695 SYNC_SEL(pHyperCtx, tr);
714 pHyperCtx = CPUMGetHyperCtxPtr(pVCpu);
718 *pGuestCtx = *pHyperCtx;