Home
last modified time | relevance | path

Searched refs:kpte (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/arch/x86/mm/
Dmem_encrypt_amd.c252 static unsigned long pg_level_to_pfn(int level, pte_t *kpte, pgprot_t *ret_prot) in pg_level_to_pfn() argument
259 pfn = pte_pfn(*kpte); in pg_level_to_pfn()
260 prot = pte_pgprot(*kpte); in pg_level_to_pfn()
263 pfn = pmd_pfn(*(pmd_t *)kpte); in pg_level_to_pfn()
264 prot = pmd_pgprot(*(pmd_t *)kpte); in pg_level_to_pfn()
267 pfn = pud_pfn(*(pud_t *)kpte); in pg_level_to_pfn()
268 prot = pud_pgprot(*(pud_t *)kpte); in pg_level_to_pfn()
300 pte_t *kpte; in enc_dec_hypercall() local
302 kpte = lookup_address(vaddr, &level); in enc_dec_hypercall()
303 if (!kpte || pte_none(*kpte)) { in enc_dec_hypercall()
[all …]
/linux-6.1.9/arch/powerpc/include/asm/
Dkfence.h35 pte_t *kpte = virt_to_kpte(addr); in kfence_protect_page() local
38 pte_update(&init_mm, addr, kpte, _PAGE_PRESENT, 0, 0); in kfence_protect_page()
41 pte_update(&init_mm, addr, kpte, 0, _PAGE_PRESENT, 0); in kfence_protect_page()
/linux-6.1.9/arch/x86/mm/pat/
Dset_memory.c768 static void __set_pmd_pte(pte_t *kpte, unsigned long address, pte_t pte) in __set_pmd_pte() argument
771 set_pte_atomic(kpte, pte); in __set_pmd_pte()
809 static int __should_split_large_page(pte_t *kpte, unsigned long address, in __should_split_large_page() argument
822 if (tmp != kpte) in __should_split_large_page()
827 old_prot = pmd_pgprot(*(pmd_t *)kpte); in __should_split_large_page()
828 old_pfn = pmd_pfn(*(pmd_t *)kpte); in __should_split_large_page()
832 old_prot = pud_pgprot(*(pud_t *)kpte); in __should_split_large_page()
833 old_pfn = pud_pfn(*(pud_t *)kpte); in __should_split_large_page()
948 __set_pmd_pte(kpte, address, new_pte); in __should_split_large_page()
954 static int should_split_large_page(pte_t *kpte, unsigned long address, in should_split_large_page() argument
[all …]
/linux-6.1.9/arch/arm64/kvm/
Dmmu.c1356 kvm_pte_t kpte; in handle_access_fault() local
1363 kpte = kvm_pgtable_stage2_mkyoung(mmu->pgt, fault_ipa); in handle_access_fault()
1366 pte = __pte(kpte); in handle_access_fault()
1560 kvm_pte_t kpte; in kvm_age_gfn() local
1568 kpte = kvm_pgtable_stage2_mkold(kvm->arch.mmu.pgt, in kvm_age_gfn()
1570 pte = __pte(kpte); in kvm_age_gfn()