Home
last modified time | relevance | path

Searched refs:new_pgd (Results 1 - 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/arch/nds32/mm/
H A Dmm-nds32.c17 pgd_t *new_pgd, *init_pgd; in pgd_alloc() local
20 new_pgd = (pgd_t *) __get_free_pages(GFP_KERNEL, 0); in pgd_alloc()
21 if (!new_pgd) in pgd_alloc()
24 (*new_pgd) = 1; in pgd_alloc()
25 new_pgd++; in pgd_alloc()
27 new_pgd -= PTRS_PER_PGD; in pgd_alloc()
31 memcpy(new_pgd + FIRST_KERNEL_PGD_NR, init_pgd + FIRST_KERNEL_PGD_NR, in pgd_alloc()
34 cpu_dcache_wb_range((unsigned long)new_pgd, in pgd_alloc()
35 (unsigned long)new_pgd + in pgd_alloc()
37 inc_zone_page_state(virt_to_page((unsigned long *)new_pgd), in pgd_alloc()
[all...]
/kernel/linux/linux-5.10/arch/arm/mm/
H A Dpgd.c32 pgd_t *new_pgd, *init_pgd; in pgd_alloc() local
38 new_pgd = __pgd_alloc(); in pgd_alloc()
39 if (!new_pgd) in pgd_alloc()
42 memset(new_pgd, 0, USER_PTRS_PER_PGD * sizeof(pgd_t)); in pgd_alloc()
48 memcpy(new_pgd + USER_PTRS_PER_PGD, init_pgd + USER_PTRS_PER_PGD, in pgd_alloc()
51 clean_dcache_area(new_pgd, PTRS_PER_PGD * sizeof(pgd_t)); in pgd_alloc()
57 new_p4d = p4d_alloc(mm, new_pgd + pgd_index(MODULES_VADDR), in pgd_alloc()
91 new_p4d = p4d_alloc(mm, new_pgd, 0); in pgd_alloc()
127 return new_pgd; in pgd_alloc()
137 __pgd_free(new_pgd); in pgd_alloc()
[all...]
/kernel/linux/linux-6.6/arch/arm/mm/
H A Dpgd.c32 pgd_t *new_pgd, *init_pgd; in pgd_alloc() local
38 new_pgd = __pgd_alloc(); in pgd_alloc()
39 if (!new_pgd) in pgd_alloc()
42 memset(new_pgd, 0, USER_PTRS_PER_PGD * sizeof(pgd_t)); in pgd_alloc()
48 memcpy(new_pgd + USER_PTRS_PER_PGD, init_pgd + USER_PTRS_PER_PGD, in pgd_alloc()
51 clean_dcache_area(new_pgd, PTRS_PER_PGD * sizeof(pgd_t)); in pgd_alloc()
57 new_p4d = p4d_alloc(mm, new_pgd + pgd_index(MODULES_VADDR), in pgd_alloc()
91 new_p4d = p4d_alloc(mm, new_pgd, 0); in pgd_alloc()
127 return new_pgd; in pgd_alloc()
137 __pgd_free(new_pgd); in pgd_alloc()
[all...]
/kernel/linux/linux-6.6/arch/m68k/include/asm/
H A Dsun3_pgalloc.h44 pgd_t *new_pgd; in pgd_alloc() local
46 new_pgd = (pgd_t *)get_zeroed_page(GFP_KERNEL); in pgd_alloc()
47 memcpy(new_pgd, swapper_pg_dir, PAGE_SIZE); in pgd_alloc()
48 memset(new_pgd, 0, (PAGE_OFFSET >> PGDIR_SHIFT)); in pgd_alloc()
49 return new_pgd; in pgd_alloc()
H A Dmcf_pgalloc.h81 pgd_t *new_pgd; in pgd_alloc() local
87 new_pgd = ptdesc_address(ptdesc); in pgd_alloc()
89 memcpy(new_pgd, swapper_pg_dir, PTRS_PER_PGD * sizeof(pgd_t)); in pgd_alloc()
90 memset(new_pgd, 0, PAGE_OFFSET >> PGDIR_SHIFT); in pgd_alloc()
91 return new_pgd; in pgd_alloc()
/kernel/linux/linux-5.10/arch/m68k/include/asm/
H A Dsun3_pgalloc.h45 pgd_t *new_pgd; in pgd_alloc() local
47 new_pgd = (pgd_t *)get_zeroed_page(GFP_KERNEL); in pgd_alloc()
48 memcpy(new_pgd, swapper_pg_dir, PAGE_SIZE); in pgd_alloc()
49 memset(new_pgd, 0, (PAGE_OFFSET >> PGDIR_SHIFT)); in pgd_alloc()
50 return new_pgd; in pgd_alloc()
H A Dmcf_pgalloc.h85 pgd_t *new_pgd; in pgd_alloc() local
87 new_pgd = (pgd_t *)__get_free_page(GFP_DMA | __GFP_NOWARN); in pgd_alloc()
88 if (!new_pgd) in pgd_alloc()
90 memcpy(new_pgd, swapper_pg_dir, PTRS_PER_PGD * sizeof(pgd_t)); in pgd_alloc()
91 memset(new_pgd, 0, PAGE_OFFSET >> PGDIR_SHIFT); in pgd_alloc()
92 return new_pgd; in pgd_alloc()
/kernel/linux/linux-5.10/arch/x86/power/
H A Dhibernate_64.c74 pgd_t new_pgd = __pgd(__pa(p4d) | pgprot_val(pgtable_prot)); in set_up_temporary_text_mapping() local
77 set_pgd(pgd + pgd_index(restore_jump_address), new_pgd); in set_up_temporary_text_mapping()
80 pgd_t new_pgd = __pgd(__pa(pud) | pgprot_val(pgtable_prot)); in set_up_temporary_text_mapping() local
81 set_pgd(pgd + pgd_index(restore_jump_address), new_pgd); in set_up_temporary_text_mapping()
/kernel/linux/linux-6.6/arch/x86/power/
H A Dhibernate_64.c74 pgd_t new_pgd = __pgd(__pa(p4d) | pgprot_val(pgtable_prot)); in set_up_temporary_text_mapping() local
77 set_pgd(pgd + pgd_index(restore_jump_address), new_pgd); in set_up_temporary_text_mapping()
80 pgd_t new_pgd = __pgd(__pa(pud) | pgprot_val(pgtable_prot)); in set_up_temporary_text_mapping() local
81 set_pgd(pgd + pgd_index(restore_jump_address), new_pgd); in set_up_temporary_text_mapping()
/kernel/linux/linux-6.6/arch/x86/kvm/mmu/
H A Dmmu.c4549 gpa_t new_pgd, in cached_root_find_and_keep_current()
4554 if (is_root_usable(&mmu->root, new_pgd, new_role)) in cached_root_find_and_keep_current()
4567 if (is_root_usable(&mmu->root, new_pgd, new_role)) in cached_root_find_and_keep_current()
4583 gpa_t new_pgd, in cached_root_find_without_current()
4589 if (is_root_usable(&mmu->prev_roots[i], new_pgd, new_role)) in cached_root_find_without_current()
4604 gpa_t new_pgd, union kvm_mmu_page_role new_role) in fast_pgd_switch()
4614 return cached_root_find_and_keep_current(kvm, mmu, new_pgd, new_role); in fast_pgd_switch()
4616 return cached_root_find_without_current(kvm, mmu, new_pgd, new_role); in fast_pgd_switch()
4619 void kvm_mmu_new_pgd(struct kvm_vcpu *vcpu, gpa_t new_pgd) in kvm_mmu_new_pgd() argument
4628 if (!fast_pgd_switch(vcpu->kvm, mmu, new_pgd, new_rol in kvm_mmu_new_pgd()
4548 cached_root_find_and_keep_current(struct kvm *kvm, struct kvm_mmu *mmu, gpa_t new_pgd, union kvm_mmu_page_role new_role) cached_root_find_and_keep_current() argument
4582 cached_root_find_without_current(struct kvm *kvm, struct kvm_mmu *mmu, gpa_t new_pgd, union kvm_mmu_page_role new_role) cached_root_find_without_current() argument
4603 fast_pgd_switch(struct kvm *kvm, struct kvm_mmu *mmu, gpa_t new_pgd, union kvm_mmu_page_role new_role) fast_pgd_switch() argument
[all...]
/kernel/linux/linux-5.10/arch/x86/kvm/mmu/
H A Dmmu.c3847 static bool cached_root_available(struct kvm_vcpu *vcpu, gpa_t new_pgd, in cached_root_available() argument
3857 if (is_root_usable(&root, new_pgd, new_role)) in cached_root_available()
3863 if (is_root_usable(&root, new_pgd, new_role)) in cached_root_available()
3873 static bool fast_pgd_switch(struct kvm_vcpu *vcpu, gpa_t new_pgd, in fast_pgd_switch() argument
3885 return cached_root_available(vcpu, new_pgd, new_role); in fast_pgd_switch()
3890 static void __kvm_mmu_new_pgd(struct kvm_vcpu *vcpu, gpa_t new_pgd, in __kvm_mmu_new_pgd() argument
3894 if (!fast_pgd_switch(vcpu, new_pgd, new_role)) { in __kvm_mmu_new_pgd()
3929 void kvm_mmu_new_pgd(struct kvm_vcpu *vcpu, gpa_t new_pgd, bool skip_tlb_flush, in kvm_mmu_new_pgd() argument
3932 __kvm_mmu_new_pgd(vcpu, new_pgd, kvm_mmu_calc_root_page_role(vcpu), in kvm_mmu_new_pgd()
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dkvm_host.h1573 void kvm_mmu_new_pgd(struct kvm_vcpu *vcpu, gpa_t new_pgd, bool skip_tlb_flush,
/kernel/linux/linux-6.6/arch/x86/include/asm/
H A Dkvm_host.h2073 void kvm_mmu_new_pgd(struct kvm_vcpu *vcpu, gpa_t new_pgd);

Completed in 33 milliseconds