Searched refs:va_bits (Results 1 – 13 of 13) sorted by relevance
/linux-6.3-rc2/tools/testing/selftests/kvm/lib/aarch64/ |
A D | processor.c | 28 uint64_t mask = (1UL << (vm->va_bits - shift)) - 1; in pgd_index() 63 uint64_t mask = ((1UL << (vm->va_bits - vm->page_shift)) - 1) << vm->page_shift; in pte_addr() 70 return 1 << (vm->va_bits - shift); in ptrs_per_pgd() 308 tcr_el1 |= (64 - vm->va_bits) /* T0SZ */; in aarch64_vcpu_setup() 552 (1ULL << vm->va_bits) >> vm->page_shift); in vm_vaddr_populate_bitmap()
|
/linux-6.3-rc2/arch/powerpc/include/asm/book3s/64/ |
A D | mmu-hash.h | 781 unsigned long va_bits = VA_BITS; in get_vsid() local 792 va_bits = 65; in get_vsid() 795 vsid_bits = va_bits - SID_SHIFT; in get_vsid() 801 vsid_bits = va_bits - SID_SHIFT_1T; in get_vsid()
|
/linux-6.3-rc2/tools/testing/selftests/kvm/lib/ |
A D | kvm_util.c | 201 0, (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in vm_vaddr_populate_bitmap() 203 (~((1ULL << (vm->va_bits - 1)) - 1)) >> vm->page_shift, in vm_vaddr_populate_bitmap() 204 (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in vm_vaddr_populate_bitmap() 223 vm->va_bits = vm_guest_mode_params[mode].va_bits; in ____vm_create() 259 kvm_get_cpu_address_width(&vm->pa_bits, &vm->va_bits); in ____vm_create() 265 TEST_ASSERT(vm->va_bits == 48 || vm->va_bits == 57, in ____vm_create() 267 vm->va_bits); in ____vm_create() 271 vm->va_bits = 48; in ____vm_create()
|
/linux-6.3-rc2/drivers/iommu/ |
A D | io-pgtable-dart.c | 370 int tbl_bits, bits_per_level, va_bits, pg_shift; in dart_alloc_pgtable() local 375 va_bits = cfg->ias - pg_shift; in dart_alloc_pgtable() 377 tbl_bits = max_t(int, 0, va_bits - (bits_per_level * DART_LEVELS)); in dart_alloc_pgtable()
|
A D | io-pgtable-arm.c | 761 int levels, va_bits, pg_shift; in arm_lpae_alloc_pgtable() local 781 va_bits = cfg->ias - pg_shift; in arm_lpae_alloc_pgtable() 782 levels = DIV_ROUND_UP(va_bits, data->bits_per_level); in arm_lpae_alloc_pgtable() 786 data->pgd_bits = va_bits - (data->bits_per_level * (levels - 1)); in arm_lpae_alloc_pgtable()
|
/linux-6.3-rc2/arch/arm64/include/asm/ |
A D | pgtable-hwdef.h | 26 #define ARM64_HW_PGTABLE_LEVELS(va_bits) (((va_bits) - 4) / (PAGE_SHIFT - 3)) argument
|
A D | kvm_pgtable.h | 335 int kvm_pgtable_hyp_init(struct kvm_pgtable *pgt, u32 va_bits,
|
/linux-6.3-rc2/arch/powerpc/platforms/pseries/ |
A D | lpar.c | 1934 unsigned long va_bits = VA_BITS; in vsid_unscramble() local 1939 va_bits = 65; in vsid_unscramble() 1943 vsid_modulus = ((1UL << (va_bits - SID_SHIFT)) - 1); in vsid_unscramble() 1946 vsid_modulus = ((1UL << (va_bits - SID_SHIFT_1T)) - 1); in vsid_unscramble()
|
/linux-6.3-rc2/arch/arm64/kvm/hyp/ |
A D | pgtable.c | 532 int kvm_pgtable_hyp_init(struct kvm_pgtable *pgt, u32 va_bits, in kvm_pgtable_hyp_init() argument 535 u64 levels = ARM64_HW_PGTABLE_LEVELS(va_bits); in kvm_pgtable_hyp_init() 541 pgt->ia_bits = va_bits; in kvm_pgtable_hyp_init()
|
/linux-6.3-rc2/tools/testing/selftests/kvm/lib/x86_64/ |
A D | processor.c | 1013 void kvm_get_cpu_address_width(unsigned int *pa_bits, unsigned int *va_bits) in kvm_get_cpu_address_width() argument 1017 *va_bits = 32; in kvm_get_cpu_address_width() 1020 *va_bits = kvm_cpu_property(X86_PROPERTY_MAX_VIRT_ADDR); in kvm_get_cpu_address_width()
|
/linux-6.3-rc2/tools/testing/selftests/kvm/include/ |
A D | kvm_util_base.h | 98 unsigned int va_bits; member 207 unsigned int va_bits; member
|
/linux-6.3-rc2/tools/testing/selftests/kvm/include/x86_64/ |
A D | processor.h | 940 void kvm_get_cpu_address_width(unsigned int *pa_bits, unsigned int *va_bits);
|
/linux-6.3-rc2/arch/x86/kvm/ |
A D | emulate.c | 698 u8 va_bits; in __linearize() local 705 va_bits = ctxt_virt_addr_bits(ctxt); in __linearize() 706 if (!__is_canonical_address(la, va_bits)) in __linearize() 709 *max_size = min_t(u64, ~0u, (1ull << va_bits) - la); in __linearize()
|
Completed in 54 milliseconds