Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/kvm/lib/x86_64/
H A Dvmx.c416 TEST_ASSERT((nested_paddr >> vm->page_shift) <= vm->max_gfn, in __nested_pg_map()
419 paddr, vm->max_gfn, vm->page_size); in __nested_pg_map()
424 TEST_ASSERT((paddr >> vm->page_shift) <= vm->max_gfn, in __nested_pg_map()
427 paddr, vm->max_gfn, vm->page_size); in __nested_pg_map()
H A Dprocessor.c203 TEST_ASSERT((paddr >> vm->page_shift) <= vm->max_gfn, in __virt_pg_map()
206 paddr, vm->max_gfn, vm->page_size); in __virt_pg_map()
1197 unsigned long ht_gfn, max_gfn, max_pfn; in vm_compute_max_gfn() local
1211 max_gfn = (1ULL << (guest_maxphyaddr - vm->page_shift)) - 1; in vm_compute_max_gfn()
1215 return max_gfn; in vm_compute_max_gfn()
1219 return max_gfn; in vm_compute_max_gfn()
1242 return min(max_gfn, ht_gfn - 1); in vm_compute_max_gfn()
/linux/tools/testing/selftests/kvm/lib/s390x/
H A Dprocessor.c67 TEST_ASSERT((gpa >> vm->page_shift) <= vm->max_gfn, in virt_arch_pg_map()
70 gva, vm->max_gfn, vm->page_size); in virt_arch_pg_map()
/linux/tools/testing/selftests/kvm/x86_64/
H A Dvmx_apic_access_test.c87 high_gpa = (vm->max_gfn - 1) << vm->page_shift; in main()
/linux/tools/testing/selftests/kvm/
H A Dpre_fault_memory_test.c84 guest_test_phys_mem = (vm->max_gfn - TEST_NPAGES) * guest_page_size; in __test_pre_fault_memory()
H A Dmax_guest_memory_test.c214 max_gpa = vm->max_gfn << vm->page_shift; in main()
H A Dkvm_page_table_test.c260 guest_test_phys_mem = (vm->max_gfn - guest_num_pages) * in pre_init_before_test()
H A Ddirty_log_test.c724 guest_test_phys_mem = (vm->max_gfn - guest_num_pages) * in run_test()
/linux/tools/testing/selftests/kvm/lib/riscv/
H A Dprocessor.c96 TEST_ASSERT((paddr >> vm->page_shift) <= vm->max_gfn, in virt_arch_pg_map()
99 paddr, vm->max_gfn, vm->page_size); in virt_arch_pg_map()
/linux/tools/testing/selftests/kvm/lib/aarch64/
H A Dprocessor.c143 TEST_ASSERT((paddr >> vm->page_shift) <= vm->max_gfn, in _virt_pg_map()
146 paddr, vm->max_gfn, vm->page_size); in _virt_pg_map()
/linux/tools/testing/selftests/kvm/lib/
H A Dmemstress.c177 region_end_gfn = vm->max_gfn + 1; in memstress_create_vm()
H A Dkvm_util.c362 vm->max_gfn = vm_compute_max_gfn(vm); in ____vm_create()
926 <= vm->max_gfn, "Physical range beyond maximum " in vm_mem_add()
930 guest_paddr, npages, vm->max_gfn, vm->page_size); in vm_mem_add()
/linux/tools/testing/selftests/kvm/aarch64/
H A Dpage_fault_test.c579 uint64_t max_gfn = vm_compute_max_gfn(vm); in setup_memslots() local
595 data_gpa = (max_gfn * guest_page_size) - data_size; in setup_memslots()
/linux/tools/testing/selftests/kvm/include/
H A Dkvm_util.h87 uint64_t max_gfn; member