/tools/testing/selftests/kvm/lib/x86_64/ |
D | vmx.c | 81 struct vmx_pages *vmx = addr_gva2hva(vm, vmx_gva); in vcpu_alloc_vmx() 85 vmx->vmxon_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx() 90 vmx->vmcs_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmcs); in vcpu_alloc_vmx() 95 vmx->msr_hva = addr_gva2hva(vm, (uintptr_t)vmx->msr); in vcpu_alloc_vmx() 101 vmx->shadow_vmcs_hva = addr_gva2hva(vm, (uintptr_t)vmx->shadow_vmcs); in vcpu_alloc_vmx() 106 vmx->vmread_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmread); in vcpu_alloc_vmx() 111 vmx->vmwrite_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmwrite); in vcpu_alloc_vmx() 117 vmx->vp_assist_hva = addr_gva2hva(vm, (uintptr_t)vmx->vp_assist); in vcpu_alloc_vmx() 123 addr_gva2hva(vm, (uintptr_t)vmx->enlightened_vmcs); in vcpu_alloc_vmx() 532 vmx->eptp_hva = addr_gva2hva(vm, (uintptr_t)vmx->eptp); in prepare_eptp() [all …]
|
D | svm.c | 34 struct svm_test_data *svm = addr_gva2hva(vm, svm_gva); in vcpu_alloc_svm() 37 svm->vmcb_hva = addr_gva2hva(vm, (uintptr_t)svm->vmcb); in vcpu_alloc_svm() 41 svm->save_area_hva = addr_gva2hva(vm, (uintptr_t)svm->save_area); in vcpu_alloc_svm()
|
D | ucall.c | 50 memcpy(&ucall, addr_gva2hva(vm, (vm_vaddr_t)regs.rdi), in get_ucall()
|
D | processor.c | 436 void *gdt = addr_gva2hva(vm, vm->gdt); in kvm_seg_fill_gdt_64bit() 1225 (struct idt_entry *)addr_gva2hva(vm, vm->idt); in set_idt_entry() 1281 *(vm_vaddr_t *)addr_gva2hva(vm, (vm_vaddr_t)(&exception_handlers)) = vm->handlers; in vcpu_init_descriptor_tables() 1287 vm_vaddr_t *handlers = (vm_vaddr_t *)addr_gva2hva(vm, vm->handlers); in vm_install_exception_handler()
|
/tools/testing/selftests/kvm/x86_64/ |
D | hyperv_features.c | 639 memset(addr_gva2hva(vm, msr_gva), 0x0, getpagesize()); in main() 652 guest_test_msrs_access(vm, addr_gva2hva(vm, msr_gva), in main() 665 memset(addr_gva2hva(vm, hcall_page), 0x0, 2 * getpagesize()); in main() 668 memset(addr_gva2hva(vm, hcall_params), 0x0, getpagesize()); in main() 678 guest_test_hcalls_access(vm, addr_gva2hva(vm, hcall_params), in main() 679 addr_gva2hva(vm, hcall_page), in main() 680 addr_gva2hva(vm, hcall_page) + getpagesize(), in main()
|
D | xapic_ipi_test.c | 432 (struct test_data_page *)addr_gva2hva(vm, test_data_page_vaddr); in main() 440 pipis_rcvd = (uint64_t *)addr_gva2hva(vm, (uint64_t)&ipis_rcvd); in main()
|
D | get_cpuid_test.c | 149 struct kvm_cpuid2 *guest_cpuids = addr_gva2hva(vm, gva); in vcpu_alloc_cpuid()
|
D | hyperv_clock.c | 222 memset(addr_gva2hva(vm, tsc_page_gva), 0x0, getpagesize()); in main()
|
/tools/testing/selftests/kvm/lib/ |
D | elf.c | 173 memset(addr_gva2hva(vm, vaddr), 0, seg_size); in kvm_vm_elf_load() 190 test_read(fd, addr_gva2hva(vm, phdr.p_vaddr), in kvm_vm_elf_load()
|
D | kvm_util.c | 704 uintptr_t ptr2 = (uintptr_t)addr_gva2hva(vm, gva + offset); in kvm_memcmp_hva_gva() 2237 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2hva() function
|
/tools/testing/selftests/kvm/lib/s390x/ |
D | ucall.c | 50 memcpy(&ucall, addr_gva2hva(vm, run->s.regs.gprs[reg]), in get_ucall()
|
/tools/testing/selftests/kvm/lib/aarch64/ |
D | ucall.c | 106 memcpy(&ucall, addr_gva2hva(vm, gva), sizeof(ucall)); in get_ucall()
|
D | processor.c | 406 *(vm_vaddr_t *)addr_gva2hva(vm, (vm_vaddr_t)(&exception_handlers)) = vm->handlers; in vm_init_descriptor_tables() 412 struct handlers *handlers = addr_gva2hva(vm, vm->handlers); in vm_install_sync_handler() 423 struct handlers *handlers = addr_gva2hva(vm, vm->handlers); in vm_install_exception_handler()
|
/tools/testing/selftests/kvm/include/ |
D | kvm_util.h | 152 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva); 341 typeof(g) *_p = addr_gva2hva(vm, (vm_vaddr_t)&(g)); \ 346 typeof(g) *_p = addr_gva2hva(vm, (vm_vaddr_t)&(g)); \
|
/tools/testing/selftests/kvm/ |
D | steal_time.c | 87 struct kvm_steal_time *st = addr_gva2hva(vm, (ulong)st_gva[vcpuid]); in steal_time_dump() 208 struct st_time *st = addr_gva2hva(vm, (ulong)st_gva[vcpuid]); in steal_time_dump()
|
D | access_tracking_perf_test.c | 98 uint64_t hva = (uint64_t) addr_gva2hva(vm, gva); in lookup_pfn()
|
D | kvm_page_table_test.c | 321 current_stage = addr_gva2hva(vm, (vm_vaddr_t)(&guest_test_stage)); in pre_init_before_test()
|
D | dirty_log_test.c | 535 guest_array = addr_gva2hva(vm, (vm_vaddr_t)random_array); in vcpu_worker()
|