| /linux-6.15/arch/x86/include/asm/ |
| H A D | kfence.h | 33 if (level != PG_LEVEL_4K) in arch_kfence_init_pool() 46 if (WARN_ON(!pte || level != PG_LEVEL_4K)) in kfence_protect_page()
|
| H A D | sev.h | 101 #define RMP_TO_PG_LEVEL(level) (((level) == RMP_PG_SIZE_4K) ? PG_LEVEL_4K : PG_LEVEL_2M) 102 #define PG_LEVEL_TO_RMP(level) (((level) == PG_LEVEL_4K) ? RMP_PG_SIZE_4K : RMP_PG_SIZE_2M)
|
| H A D | pgtable_types.h | 552 PG_LEVEL_4K, enumerator
|
| /linux-6.15/arch/x86/coco/tdx/ |
| H A D | tdx-shared.c | 24 case PG_LEVEL_4K: in try_accept_one() 64 accept_size = try_accept_one(start, len, PG_LEVEL_4K); in tdx_accept_memory()
|
| /linux-6.15/arch/x86/kvm/mmu/ |
| H A D | spte.c | 199 if (level > PG_LEVEL_4K && (pte_access & ACC_EXEC_MASK) && in make_spte() 212 if (level > PG_LEVEL_4K) in make_spte() 264 WARN_ON_ONCE(level > PG_LEVEL_4K); in make_spte() 319 if (role.level == PG_LEVEL_4K) { in make_small_spte() 338 KVM_BUG_ON(!is_shadow_present_pte(small_spte) || level == PG_LEVEL_4K, kvm); in make_huge_spte()
|
| H A D | page_track.c | 80 index = gfn_to_index(gfn, slot->base_gfn, PG_LEVEL_4K); in update_gfn_write_track() 109 if (kvm_mmu_slot_gfn_write_protect(kvm, slot, gfn, PG_LEVEL_4K)) in __kvm_write_track_add_gfn() 147 index = gfn_to_index(gfn, slot->base_gfn, PG_LEVEL_4K); in kvm_gfn_is_write_tracked()
|
| H A D | paging_tmpl.h | 74 #define gpte_to_gfn(pte) gpte_to_gfn_lvl((pte), PG_LEVEL_4K) 163 if (FNAME(is_rsvd_bits_set)(vcpu->arch.mmu, gpte, PG_LEVEL_4K)) in FNAME() 295 gpte |= level - PG_LEVEL_4K - 1; in FNAME() 444 if (walker->level > PG_LEVEL_4K && is_cpuid_PSE36()) in FNAME() 556 if (level == PG_LEVEL_4K) { in FNAME() 581 if (sp->role.level > PG_LEVEL_4K) in FNAME() 847 WARN_ON_ONCE(sp->role.level != PG_LEVEL_4K); in FNAME()
|
| H A D | mmu.c | 1387 PG_LEVEL_4K, slot); in kvm_mmu_write_protect_pt_masked() 1410 PG_LEVEL_4K, slot); in kvm_mmu_clear_dirty_pt_masked() 1629 return walk_slot_rmaps(kvm, slot, fn, PG_LEVEL_4K, PG_LEVEL_4K, flush_on_yield); in walk_slot_rmaps_4k() 2121 if (level == PG_LEVEL_4K) in mmu_pages_next() 3198 int level = PG_LEVEL_4K; in host_pfn_mapping_level() 3276 if (max_level == PG_LEVEL_4K) in __kvm_mmu_max_mapping_level() 3277 return PG_LEVEL_4K; in __kvm_mmu_max_mapping_level() 4465 return PG_LEVEL_4K; in kvm_max_level_for_order() 4474 return PG_LEVEL_4K; in kvm_max_private_mapping_level() 4478 return PG_LEVEL_4K; in kvm_max_private_mapping_level() [all …]
|
| H A D | mmu_internal.h | 364 .req_level = PG_LEVEL_4K, in kvm_mmu_do_page_fault() 365 .goal_level = PG_LEVEL_4K, in kvm_mmu_do_page_fault()
|
| H A D | tdp_iter.h | 134 for_each_tdp_pte_min_level(iter, kvm, root, PG_LEVEL_4K, start, end)
|
| H A D | tdp_mmu.c | 582 WARN_ON_ONCE(level < PG_LEVEL_4K); in handle_changed_spte() 919 __tdp_mmu_zap_root(kvm, root, shared, PG_LEVEL_4K); in tdp_mmu_zap_root() 967 for_each_tdp_pte_min_level(iter, kvm, root, PG_LEVEL_4K, start, end) { in tdp_mmu_zap_leafs() 1708 if (iter.level > PG_LEVEL_4K || in clear_dirty_pt_masked()
|
| H A D | spte.h | 336 return (level == PG_LEVEL_4K) || is_large_pte(pte); in is_last_spte()
|
| /linux-6.15/arch/x86/xen/ |
| H A D | p2m.c | 240 BUG_ON(!ptep || level != PG_LEVEL_4K); in xen_build_mfn_list_list() 438 BUG_ON(!ptep || level != PG_LEVEL_4K); in get_phys_to_machine() 532 BUG_ON(!ptep || level != PG_LEVEL_4K); in xen_alloc_p2m_entry() 656 BUG_ON(!ptep || level != PG_LEVEL_4K); in __set_phys_to_machine()
|
| /linux-6.15/tools/testing/selftests/kvm/lib/x86/ |
| H A D | vmx.c | 427 for (int level = PG_LEVEL_512G; level >= PG_LEVEL_4K; level--) { in __nested_pg_map() 451 __nested_pg_map(vmx, vm, nested_paddr, paddr, PG_LEVEL_4K); in nested_pg_map() 491 __nested_map(vmx, vm, nested_paddr, paddr, size, PG_LEVEL_4K); in nested_map()
|
| H A D | processor.c | 225 pte = virt_get_pte(vm, pde, vaddr, PG_LEVEL_4K); in __virt_pg_map() 242 __virt_pg_map(vm, vaddr, paddr, PG_LEVEL_4K); in virt_arch_pg_map() 312 return virt_get_pte(vm, pde, vaddr, PG_LEVEL_4K); in __vm_get_page_table_entry() 317 int level = PG_LEVEL_4K; in vm_get_page_table_entry()
|
| /linux-6.15/arch/x86/mm/ |
| H A D | mem_encrypt_amd.c | 221 case PG_LEVEL_4K: in pg_level_to_pfn() 410 if (level == PG_LEVEL_4K) { in early_set_memory_enc_dec()
|
| H A D | pti.c | 288 if (!pte || WARN_ON(level != PG_LEVEL_4K) || pte_none(*pte)) in pti_setup_vsyscall()
|
| H A D | kmmio.c | 174 case PG_LEVEL_4K: in clear_page_presence()
|
| H A D | init_32.c | 372 update_page_count(PG_LEVEL_4K, pages_4k); in kernel_physical_mapping_init()
|
| H A D | init_64.c | 498 update_page_count(PG_LEVEL_4K, pages); in phys_pte_init() 1121 update_page_count(PG_LEVEL_4K, -pages); in remove_pte_table()
|
| /linux-6.15/tools/testing/selftests/kvm/x86/ |
| H A D | nx_huge_pages_test.c | 145 virt_map_level(vm, HPAGE_GVA, HPAGE_GPA, nr_bytes, PG_LEVEL_4K); in run_test()
|
| /linux-6.15/arch/x86/kvm/svm/ |
| H A D | sev.c | 305 if (kvm_rmp_make_shared(kvm, pfn, PG_LEVEL_4K)) in snp_page_reclaim() 2282 fw_args.page_size = PG_LEVEL_TO_RMP(PG_LEVEL_4K); in sev_gmem_post_populate() 2325 kvm_rmp_make_shared(kvm, pfn + i, PG_LEVEL_4K); in sev_gmem_post_populate() 4733 if (rmp_level == PG_LEVEL_4K) in sev_handle_rmp_fault() 4744 assigned && rmp_level == PG_LEVEL_4K) in sev_handle_rmp_fault() 4790 return PG_LEVEL_4K; in max_level_for_order() 4802 if (max_level_for_order(order) > PG_LEVEL_4K && in is_large_rmp_possible() 4838 level = PG_LEVEL_4K; in sev_gmem_prepare() 4876 rmp_level > PG_LEVEL_4K; in sev_gmem_invalidate() 4883 if (!use_2m_update && rmp_level > PG_LEVEL_4K) { in sev_gmem_invalidate() [all …]
|
| /linux-6.15/arch/x86/kvm/vmx/ |
| H A D | capabilities.h | 328 return PG_LEVEL_4K; in ept_caps_to_lpage_level()
|
| /linux-6.15/arch/x86/mm/pat/ |
| H A D | cpa-test.c | 206 if (level != PG_LEVEL_4K) { in pageattr_test()
|
| H A D | set_memory.c | 124 direct_pages_count[PG_LEVEL_4K] << 2); in arch_report_meminfo() 581 if (lookup_address(start, &level) && (level != PG_LEVEL_4K)) in protect_kernel_text_ro() 765 *level = PG_LEVEL_4K; in lookup_address_in_pgd_attr() 1850 if (level == PG_LEVEL_4K) { in __change_page_attr()
|