Lines Matching refs:max_level
2773 int max_level, kvm_pfn_t *pfnp, in kvm_mmu_hugepage_adjust() argument
2784 if (unlikely(max_level == PG_LEVEL_4K)) in kvm_mmu_hugepage_adjust()
2794 max_level = min(max_level, max_huge_page_level); in kvm_mmu_hugepage_adjust()
2795 for ( ; max_level > PG_LEVEL_4K; max_level--) { in kvm_mmu_hugepage_adjust()
2796 linfo = lpage_info_slot(gfn, slot, max_level); in kvm_mmu_hugepage_adjust()
2801 if (max_level == PG_LEVEL_4K) in kvm_mmu_hugepage_adjust()
2808 *req_level = level = min(level, max_level); in kvm_mmu_hugepage_adjust()
2851 int map_writable, int max_level, kvm_pfn_t pfn, in __direct_map() argument
2867 level = kvm_mmu_hugepage_adjust(vcpu, gfn, max_level, &pfn, in __direct_map()
3690 bool prefault, int max_level, bool is_tdp) in direct_page_fault() argument
3731 r = kvm_tdp_mmu_map(vcpu, gpa, error_code, map_writable, max_level, in direct_page_fault()
3734 r = __direct_map(vcpu, gpa, error_code, map_writable, max_level, pfn, in direct_page_fault()
3789 int max_level; in kvm_tdp_page_fault() local
3791 for (max_level = KVM_MAX_HUGEPAGE_LEVEL; in kvm_tdp_page_fault()
3792 max_level > PG_LEVEL_4K; in kvm_tdp_page_fault()
3793 max_level--) { in kvm_tdp_page_fault()
3794 int page_num = KVM_PAGES_PER_HPAGE(max_level); in kvm_tdp_page_fault()
3802 max_level, true); in kvm_tdp_page_fault()