Home
last modified time | relevance | path

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

/linux-6.6.21/arch/arm64/kvm/
Dmmu.c872 u32 phys_shift; in kvm_init_stage2_mmu() local
877 phys_shift = KVM_VM_TYPE_ARM_IPA_SIZE(type); in kvm_init_stage2_mmu()
879 phys_shift = kvm_ipa_limit; in kvm_init_stage2_mmu()
880 } else if (phys_shift) { in kvm_init_stage2_mmu()
881 if (phys_shift > kvm_ipa_limit || in kvm_init_stage2_mmu()
882 phys_shift < ARM64_MIN_PARANGE_BITS) in kvm_init_stage2_mmu()
885 phys_shift = KVM_PHYS_SHIFT; in kvm_init_stage2_mmu()
886 if (phys_shift > kvm_ipa_limit) { in kvm_init_stage2_mmu()
895 kvm->arch.vtcr = kvm_get_vtcr(mmfr0, mmfr1, phys_shift); in kvm_init_stage2_mmu()
/linux-6.6.21/arch/arm64/kvm/hyp/nvhe/
Dmem_protect.c126 u32 parange, phys_shift; in prepare_host_vtcr() local
130 phys_shift = id_aa64mmfr0_parange_to_phys_shift(parange); in prepare_host_vtcr()
133 id_aa64mmfr1_el1_sys_val, phys_shift); in prepare_host_vtcr()
/linux-6.6.21/arch/arm64/include/asm/
Dkvm_pgtable.h431 u64 kvm_get_vtcr(u64 mmfr0, u64 mmfr1, u32 phys_shift);
/linux-6.6.21/arch/arm64/kvm/hyp/
Dpgtable.c624 u64 kvm_get_vtcr(u64 mmfr0, u64 mmfr1, u32 phys_shift) in kvm_get_vtcr() argument
630 vtcr |= VTCR_EL2_T0SZ(phys_shift); in kvm_get_vtcr()
635 lvls = stage2_pgtable_levels(phys_shift); in kvm_get_vtcr()