Home
last modified time | relevance | path

Searched refs:va_bits (Results 1 – 6 of 6) sorted by relevance

/tools/testing/selftests/kvm/lib/
Dkvm_util_internal.h42 unsigned int va_bits; member
Dkvm_util.c147 unsigned int va_bits; member
200 vm->va_bits = vm_guest_mode_params[mode].va_bits; in vm_create()
226 kvm_get_cpu_address_width(&vm->pa_bits, &vm->va_bits); in vm_create()
232 TEST_ASSERT(vm->va_bits == 48 || vm->va_bits == 57, in vm_create()
234 vm->va_bits); in vm_create()
238 vm->va_bits = 48; in vm_create()
257 0, (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in vm_create()
259 (~((1ULL << (vm->va_bits - 1)) - 1)) >> vm->page_shift, in vm_create()
260 (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in vm_create()
/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c27 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()
296 tcr_el1 |= (64 - vm->va_bits) /* T0SZ */; in aarch64_vcpu_setup()
Ducall.c54 bits = vm->va_bits - 1; in ucall_init()
/tools/testing/selftests/kvm/include/x86_64/
Dprocessor.h346 void kvm_get_cpu_address_width(unsigned int *pa_bits, unsigned int *va_bits);
/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c1115 void kvm_get_cpu_address_width(unsigned int *pa_bits, unsigned int *va_bits) in kvm_get_cpu_address_width() argument
1124 *va_bits = 32; in kvm_get_cpu_address_width()
1128 *va_bits = (entry->eax >> 8) & 0xff; in kvm_get_cpu_address_width()