Lines Matching refs:pgdir
88 return &cpu->lg->pgdirs[i].pgdir[index]; in spgd_addr()
659 release_pgd(lg->pgdirs[idx].pgdir + i); in flush_user_mappings()
737 if (lg->pgdirs[i].pgdir && lg->pgdirs[i].gpgdir == pgtable) in find_pgdir()
759 if (!cpu->lg->pgdirs[next].pgdir) { in new_pgdir()
760 cpu->lg->pgdirs[next].pgdir = in new_pgdir()
763 if (!cpu->lg->pgdirs[next].pgdir) in new_pgdir()
833 if (!lg->pgdirs[i].pgdir) in release_all_pagetables()
838 release_pgd(lg->pgdirs[i].pgdir + j); in release_all_pagetables()
1005 if (cpu->lg->pgdirs[i].pgdir) in guest_set_pte()
1009 int pgdir = find_pgdir(cpu->lg, gpgdir); in guest_set_pte() local
1010 if (pgdir != ARRAY_SIZE(cpu->lg->pgdirs)) in guest_set_pte()
1012 __guest_set_pte(cpu, pgdir, vaddr, gpte); in guest_set_pte()
1032 int pgdir; in guest_set_pgd() local
1041 pgdir = find_pgdir(lg, gpgdir); in guest_set_pgd()
1042 if (pgdir < ARRAY_SIZE(lg->pgdirs)) { in guest_set_pgd()
1044 release_pgd(lg->pgdirs[pgdir].pgdir + idx); in guest_set_pgd()
1050 lg->pgdirs[pgdir].last_host_cpu = -1; in guest_set_pgd()
1136 free_page((long)lg->pgdirs[i].pgdir); in free_guest_pagetable()
1172 struct pgdir *pgdir = &cpu->lg->pgdirs[cpu->cpu_pgd]; in map_switcher_in_guest() local
1175 BUG_ON(!pgdir->switcher_mapped); in map_switcher_in_guest()
1184 if (pgdir->last_host_cpu == raw_smp_processor_id()) in map_switcher_in_guest()
1188 if (pgdir->last_host_cpu == -1) { in map_switcher_in_guest()
1194 remove_switcher_percpu_map(cpu, pgdir->last_host_cpu); in map_switcher_in_guest()
1225 pgdir->last_host_cpu = raw_smp_processor_id(); in map_switcher_in_guest()