Lines Matching refs:ctxt
263 struct vcpu_guest_context *ctxt; in cpu_initialize_context() local
272 ctxt = kzalloc(sizeof(*ctxt), GFP_KERNEL); in cpu_initialize_context()
273 if (ctxt == NULL) in cpu_initialize_context()
283 ctxt->user_regs.eip = (unsigned long)asm_cpu_bringup_and_idle; in cpu_initialize_context()
284 ctxt->flags = VGCF_IN_KERNEL; in cpu_initialize_context()
285 ctxt->user_regs.eflags = 0x1000; /* IOPL_RING1 */ in cpu_initialize_context()
286 ctxt->user_regs.ds = __USER_DS; in cpu_initialize_context()
287 ctxt->user_regs.es = __USER_DS; in cpu_initialize_context()
288 ctxt->user_regs.ss = __KERNEL_DS; in cpu_initialize_context()
289 ctxt->user_regs.cs = __KERNEL_CS; in cpu_initialize_context()
290 ctxt->user_regs.esp = (unsigned long)task_pt_regs(idle); in cpu_initialize_context()
292 xen_copy_trap_info(ctxt->trap_ctxt); in cpu_initialize_context()
300 ctxt->gdt_frames[0] = gdt_mfn; in cpu_initialize_context()
301 ctxt->gdt_ents = GDT_ENTRIES; in cpu_initialize_context()
308 ctxt->kernel_ss = __KERNEL_DS; in cpu_initialize_context()
309 ctxt->kernel_sp = task_top_of_stack(idle); in cpu_initialize_context()
311 ctxt->gs_base_kernel = per_cpu_offset(cpu); in cpu_initialize_context()
312 ctxt->event_callback_eip = in cpu_initialize_context()
314 ctxt->failsafe_callback_eip = in cpu_initialize_context()
318 ctxt->ctrlreg[3] = xen_pfn_to_cr3(virt_to_gfn(swapper_pg_dir)); in cpu_initialize_context()
319 if (HYPERVISOR_vcpu_op(VCPUOP_initialise, xen_vcpu_nr(cpu), ctxt)) in cpu_initialize_context()
322 kfree(ctxt); in cpu_initialize_context()