Searched refs:hva (Results 1 – 7 of 7) sorted by relevance
/tools/testing/selftests/kvm/ |
D | set_memory_region_test.c | 119 uint64_t *hva; in spawn_vm() local 138 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in spawn_vm() 139 memset(hva, 0, 2 * 4096); in spawn_vm() 184 uint64_t *hva; in test_move_memory_region() local 188 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in test_move_memory_region() 196 WRITE_ONCE(*hva, 2); in test_move_memory_region() 209 WRITE_ONCE(*hva, 1); in test_move_memory_region()
|
D | demand_paging_test.c | 222 void *hva, void *alias, uint64_t len) in setup_demand_paging() argument 256 uffdio_register.range.start = (uint64_t)hva; in setup_demand_paging() 272 hva, hva + len); in setup_demand_paging()
|
D | access_tracking_perf_test.c | 98 uint64_t hva = (uint64_t) addr_gva2hva(vm, gva); in lookup_pfn() local 102 entry = pread_uint64(pagemap_fd, "pagemap", hva / getpagesize()); in lookup_pfn()
|
D | memslot_perf_test.c | 589 void *hva; in test_memslot_do_unmap() local 592 hva = vm_gpa2hva(data, gpa, &npages); in test_memslot_do_unmap() 595 ret = madvise(hva, npages * 4096, MADV_DONTNEED); in test_memslot_do_unmap() 598 hva, gpa); in test_memslot_do_unmap()
|
/tools/testing/selftests/kvm/x86_64/ |
D | emulator_error_test.c | 173 uint64_t *hva; in main() local 205 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in main() 206 memset(hva, 0, PAGE_SIZE); in main()
|
/tools/testing/selftests/kvm/include/ |
D | kvm_util.h | 100 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, const vm_vaddr_t gva, 153 vm_paddr_t addr_hva2gpa(struct kvm_vm *vm, void *hva);
|
/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 689 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, vm_vaddr_t gva, size_t len) in kvm_memcmp_hva_gva() argument 698 uintptr_t ptr1 = (uintptr_t)hva + offset; in kvm_memcmp_hva_gva() 1401 vm_paddr_t addr_hva2gpa(struct kvm_vm *vm, void *hva) in addr_hva2gpa() argument 1409 if (hva >= region->host_mem) { in addr_hva2gpa() 1410 if (hva <= (region->host_mem in addr_hva2gpa() 1414 + (hva - (uintptr_t)region->host_mem)); in addr_hva2gpa() 1421 TEST_FAIL("No mapping to a guest physical address, hva: %p", hva); in addr_hva2gpa()
|