Lines Matching refs:pages
83 static void copy_in_guest_info(struct lg_cpu *cpu, struct lguest_pages *pages) in copy_in_guest_info() argument
89 if (__get_cpu_var(last_cpu) != cpu || cpu->last_pages != pages) { in copy_in_guest_info()
91 cpu->last_pages = pages; in copy_in_guest_info()
97 pages->state.host_cr3 = __pa(current->mm->pgd); in copy_in_guest_info()
100 map_switcher_in_guest(cpu, pages); in copy_in_guest_info()
104 pages->state.guest_tss.sp1 = cpu->esp1; in copy_in_guest_info()
105 pages->state.guest_tss.ss1 = cpu->ss1; in copy_in_guest_info()
109 copy_traps(cpu, pages->state.guest_idt, default_idt_entries); in copy_in_guest_info()
113 copy_gdt(cpu, pages->state.guest_gdt); in copy_in_guest_info()
116 copy_gdt_tls(cpu, pages->state.guest_gdt); in copy_in_guest_info()
123 static void run_guest_once(struct lg_cpu *cpu, struct lguest_pages *pages) in run_guest_once() argument
130 copy_in_guest_info(cpu, pages); in run_guest_once()
153 : "0"(pages), "1"(__pa(cpu->lg->pgdirs[cpu->cpu_pgd].pgdir)) in run_guest_once()
404 struct lguest_pages *pages = lguest_pages(i); in lguest_arch_host_init() local
407 struct lguest_ro_state *state = &pages->state; in lguest_arch_host_init()
432 state->guest_tss.sp0 = (long)(&pages->regs + 1); in lguest_arch_host_init()