Searched refs:pgdirs (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/drivers/lguest/
H A Dpage_tables.c88 return &cpu->lg->pgdirs[i].pgdir[index]; spgd_addr()
139 return cpu->lg->pgdirs[cpu->cpu_pgd].gpgdir + index * sizeof(pgd_t); gpgd_addr()
659 release_pgd(lg->pgdirs[idx].pgdir + i); flush_user_mappings()
736 for (i = 0; i < ARRAY_SIZE(lg->pgdirs); i++) find_pgdir()
737 if (lg->pgdirs[i].pgdir && lg->pgdirs[i].gpgdir == pgtable) find_pgdir()
757 next = prandom_u32() % ARRAY_SIZE(cpu->lg->pgdirs); new_pgdir()
759 if (!cpu->lg->pgdirs[next].pgdir) { new_pgdir()
760 cpu->lg->pgdirs[next].pgdir = new_pgdir()
763 if (!cpu->lg->pgdirs[next].pgdir) new_pgdir()
774 cpu->lg->pgdirs[next].gpgdir = gpgdir; new_pgdir()
779 cpu->lg->pgdirs[next].last_host_cpu = -1; new_pgdir()
818 cpu->lg->pgdirs[cpu->cpu_pgd].switcher_mapped = true; allocate_switcher_mapping()
832 for (i = 0; i < ARRAY_SIZE(lg->pgdirs); i++) { release_all_pagetables()
833 if (!lg->pgdirs[i].pgdir) release_all_pagetables()
838 release_pgd(lg->pgdirs[i].pgdir + j); release_all_pagetables()
839 lg->pgdirs[i].switcher_mapped = false; release_all_pagetables()
840 lg->pgdirs[i].last_host_cpu = -1; release_all_pagetables()
879 newpgdir = ARRAY_SIZE(cpu->lg->pgdirs); guest_new_pagetable()
889 if (newpgdir == ARRAY_SIZE(cpu->lg->pgdirs)) guest_new_pagetable()
900 if (!cpu->lg->pgdirs[cpu->cpu_pgd].switcher_mapped) { guest_new_pagetable()
1004 for (i = 0; i < ARRAY_SIZE(cpu->lg->pgdirs); i++) guest_set_pte()
1005 if (cpu->lg->pgdirs[i].pgdir) guest_set_pte()
1010 if (pgdir != ARRAY_SIZE(cpu->lg->pgdirs)) guest_set_pte()
1042 if (pgdir < ARRAY_SIZE(lg->pgdirs)) { guest_set_pgd()
1044 release_pgd(lg->pgdirs[pgdir].pgdir + idx); guest_set_pgd()
1050 lg->pgdirs[pgdir].last_host_cpu = -1; guest_set_pgd()
1135 for (i = 0; i < ARRAY_SIZE(lg->pgdirs); i++) free_guest_pagetable()
1136 free_page((long)lg->pgdirs[i].pgdir); free_guest_pagetable()
1172 struct pgdir *pgdir = &cpu->lg->pgdirs[cpu->cpu_pgd]; map_switcher_in_guest()
H A Dlg.h103 struct pgdir pgdirs[4]; member in struct:lguest
/linux-4.1.27/arch/openrisc/mm/
H A Dfault.c71 * mappings we don't have to walk all processes pgdirs and do_page_fault()
/linux-4.1.27/arch/cris/mm/
H A Dfault.c80 * mappings we don't have to walk all processes pgdirs and do_page_fault()
/linux-4.1.27/drivers/lguest/x86/
H A Dcore.c174 "1"(__pa(cpu->lg->pgdirs[cpu->cpu_pgd].pgdir)), run_guest_once()

Completed in 74 milliseconds