Lines Matching refs:vp_context
155 input->vp_context.rip = rip;
156 input->vp_context.rsp = rsp;
157 input->vp_context.rflags = 0x0000000000000002;
158 input->vp_context.efer = native_rdmsrq(MSR_EFER);
159 input->vp_context.cr0 = native_read_cr0();
160 input->vp_context.cr3 = __native_read_cr3();
161 input->vp_context.cr4 = native_read_cr4();
162 input->vp_context.msr_cr_pat = native_rdmsrq(MSR_IA32_CR_PAT);
163 input->vp_context.idtr.limit = idt_ptr.size;
164 input->vp_context.idtr.base = idt_ptr.address;
165 input->vp_context.gdtr.limit = gdt_ptr.size;
166 input->vp_context.gdtr.base = gdt_ptr.address;
169 input->vp_context.cs.selector = __KERNEL_CS;
170 input->vp_context.cs.base = 0;
171 input->vp_context.cs.limit = 0xffffffff;
172 input->vp_context.cs.attributes = 0xa09b;
174 input->vp_context.ss.selector = __KERNEL_DS;
175 input->vp_context.ss.base = 0;
176 input->vp_context.ss.limit = 0xffffffff;
177 input->vp_context.ss.attributes = 0xc093;
180 input->vp_context.ldtr.selector = GDT_ENTRY_LDT * 8;
181 input->vp_context.ldtr.base = hv_vtl_system_desc_base(ldt);
182 input->vp_context.ldtr.limit = hv_vtl_system_desc_limit(ldt);
183 input->vp_context.ldtr.attributes = 0x82;
186 input->vp_context.tr.selector = GDT_ENTRY_TSS * 8;
187 input->vp_context.tr.base = hv_vtl_system_desc_base(tss);
188 input->vp_context.tr.limit = hv_vtl_system_desc_limit(tss);
189 input->vp_context.tr.attributes = 0x8b;