Searched refs:va_bits (Results 1 – 14 of 14) sorted by relevance
/linux/tools/testing/selftests/kvm/lib/aarch64/ |
A D | processor.c | 27 uint64_t mask = (1UL << (vm->va_bits - shift)) - 1; in pgd_index() 62 uint64_t mask = ((1UL << (vm->va_bits - vm->page_shift)) - 1) << vm->page_shift; in pte_addr() 69 return 1 << (vm->va_bits - shift); in ptrs_per_pgd() 274 tcr_el1 |= (64 - vm->va_bits) /* T0SZ */; in aarch64_vcpu_setup()
|
A D | ucall.c | 54 bits = vm->va_bits - 1; in ucall_init()
|
/linux/arch/powerpc/include/asm/book3s/64/ |
A D | mmu-hash.h | 774 unsigned long va_bits = VA_BITS; in get_vsid() local 785 va_bits = 65; in get_vsid() 788 vsid_bits = va_bits - SID_SHIFT; in get_vsid() 794 vsid_bits = va_bits - SID_SHIFT_1T; in get_vsid()
|
/linux/tools/testing/selftests/kvm/lib/ |
A D | kvm_util.c | 236 vm->va_bits = vm_guest_mode_params[mode].va_bits; in vm_create() 262 kvm_get_cpu_address_width(&vm->pa_bits, &vm->va_bits); in vm_create() 268 TEST_ASSERT(vm->va_bits == 48 || vm->va_bits == 57, in vm_create() 270 vm->va_bits); in vm_create() 274 vm->va_bits = 48; in vm_create() 299 0, (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in vm_create() 301 (~((1ULL << (vm->va_bits - 1)) - 1)) >> vm->page_shift, in vm_create() 302 (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in vm_create()
|
A D | kvm_util_internal.h | 56 unsigned int va_bits; member
|
/linux/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 | 220 int kvm_pgtable_hyp_init(struct kvm_pgtable *pgt, u32 va_bits,
|
/linux/drivers/iommu/ |
A D | io-pgtable-arm.c | 786 int levels, va_bits, pg_shift; in arm_lpae_alloc_pgtable() local 806 va_bits = cfg->ias - pg_shift; in arm_lpae_alloc_pgtable() 807 levels = DIV_ROUND_UP(va_bits, data->bits_per_level); in arm_lpae_alloc_pgtable() 811 data->pgd_bits = va_bits - (data->bits_per_level * (levels - 1)); in arm_lpae_alloc_pgtable()
|
/linux/arch/powerpc/platforms/pseries/ |
A D | lpar.c | 1938 unsigned long va_bits = VA_BITS; in vsid_unscramble() local 1943 va_bits = 65; in vsid_unscramble() 1947 vsid_modulus = ((1UL << (va_bits - SID_SHIFT)) - 1); in vsid_unscramble() 1950 vsid_modulus = ((1UL << (va_bits - SID_SHIFT_1T)) - 1); in vsid_unscramble()
|
/linux/arch/arm64/kvm/hyp/ |
A D | pgtable.c | 463 int kvm_pgtable_hyp_init(struct kvm_pgtable *pgt, u32 va_bits, in kvm_pgtable_hyp_init() argument 466 u64 levels = ARM64_HW_PGTABLE_LEVELS(va_bits); in kvm_pgtable_hyp_init() 472 pgt->ia_bits = va_bits; in kvm_pgtable_hyp_init()
|
/linux/tools/testing/selftests/kvm/include/x86_64/ |
A D | processor.h | 381 void kvm_get_cpu_address_width(unsigned int *pa_bits, unsigned int *va_bits);
|
/linux/tools/testing/selftests/kvm/lib/x86_64/ |
A D | processor.c | 1227 void kvm_get_cpu_address_width(unsigned int *pa_bits, unsigned int *va_bits) in kvm_get_cpu_address_width() argument 1236 *va_bits = 32; in kvm_get_cpu_address_width() 1240 *va_bits = (entry->eax >> 8) & 0xff; in kvm_get_cpu_address_width()
|
/linux/tools/testing/selftests/kvm/include/ |
A D | kvm_util.h | 79 unsigned int va_bits; member
|
/linux/arch/x86/kvm/ |
A D | emulate.c | 716 u8 va_bits; in __linearize() local 723 va_bits = ctxt_virt_addr_bits(ctxt); in __linearize() 724 if (get_canonical(la, va_bits) != la) in __linearize() 727 *max_size = min_t(u64, ~0u, (1ull << va_bits) - la); in __linearize()
|
Completed in 57 milliseconds