Home
last modified time | relevance | path

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

/tools/testing/selftests/kvm/lib/x86_64/
Dvmx.c81 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 …]
Dsvm.c34 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()
Ducall.c50 memcpy(&ucall, addr_gva2hva(vm, (vm_vaddr_t)regs.rdi), in get_ucall()
Dprocessor.c436 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/
Dhyperv_features.c639 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()
Dxapic_ipi_test.c432 (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()
Dget_cpuid_test.c149 struct kvm_cpuid2 *guest_cpuids = addr_gva2hva(vm, gva); in vcpu_alloc_cpuid()
Dhyperv_clock.c222 memset(addr_gva2hva(vm, tsc_page_gva), 0x0, getpagesize()); in main()
/tools/testing/selftests/kvm/lib/
Delf.c173 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()
Dkvm_util.c704 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/
Ducall.c50 memcpy(&ucall, addr_gva2hva(vm, run->s.regs.gprs[reg]), in get_ucall()
/tools/testing/selftests/kvm/lib/aarch64/
Ducall.c106 memcpy(&ucall, addr_gva2hva(vm, gva), sizeof(ucall)); in get_ucall()
Dprocessor.c406 *(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/
Dkvm_util.h152 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/
Dsteal_time.c87 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()
Daccess_tracking_perf_test.c98 uint64_t hva = (uint64_t) addr_gva2hva(vm, gva); in lookup_pfn()
Dkvm_page_table_test.c321 current_stage = addr_gva2hva(vm, (vm_vaddr_t)(&guest_test_stage)); in pre_init_before_test()
Ddirty_log_test.c535 guest_array = addr_gva2hva(vm, (vm_vaddr_t)random_array); in vcpu_worker()