Home
last modified time | relevance | path

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

/Linux-v5.10/tools/testing/selftests/kvm/lib/
Dkvm_util.c145 struct vm_guest_mode_params { struct
152 static const struct vm_guest_mode_params vm_guest_mode_params[] = { argument
161 _Static_assert(sizeof(vm_guest_mode_params)/sizeof(struct vm_guest_mode_params) == NUM_VM_MODES,
199 vm->pa_bits = vm_guest_mode_params[mode].pa_bits; in vm_create()
200 vm->va_bits = vm_guest_mode_params[mode].va_bits; in vm_create()
201 vm->page_size = vm_guest_mode_params[mode].page_size; in vm_create()
202 vm->page_shift = vm_guest_mode_params[mode].page_shift; in vm_create()
1849 vm_guest_mode_params[mode].page_shift, in vm_num_host_pages()
1857 vm_guest_mode_params[mode].page_shift, false); in vm_num_guest_pages()
1863 n = DIV_ROUND_UP(size, vm_guest_mode_params[mode].page_size); in vm_calc_num_guest_pages()