Home
last modified time | relevance | path

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

12

/linux-6.12.1/tools/testing/selftests/kvm/lib/x86_64/
Dhyperv.c82 struct hyperv_test_pages *hv = addr_gva2hva(vm, hv_pages_gva); in vcpu_alloc_hyperv_test_pages()
86 hv->vp_assist_hva = addr_gva2hva(vm, (uintptr_t)hv->vp_assist); in vcpu_alloc_hyperv_test_pages()
91 hv->partition_assist_hva = addr_gva2hva(vm, (uintptr_t)hv->partition_assist); in vcpu_alloc_hyperv_test_pages()
96 hv->enlightened_vmcs_hva = addr_gva2hva(vm, (uintptr_t)hv->enlightened_vmcs); in vcpu_alloc_hyperv_test_pages()
Dsvm.c35 struct svm_test_data *svm = addr_gva2hva(vm, svm_gva); in vcpu_alloc_svm()
38 svm->vmcb_hva = addr_gva2hva(vm, (uintptr_t)svm->vmcb); in vcpu_alloc_svm()
42 svm->save_area_hva = addr_gva2hva(vm, (uintptr_t)svm->save_area); in vcpu_alloc_svm()
46 svm->msr_hva = addr_gva2hva(vm, (uintptr_t)svm->msr); in vcpu_alloc_svm()
Dvmx.c78 struct vmx_pages *vmx = addr_gva2hva(vm, vmx_gva); in vcpu_alloc_vmx()
82 vmx->vmxon_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx()
87 vmx->vmcs_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmcs); in vcpu_alloc_vmx()
92 vmx->msr_hva = addr_gva2hva(vm, (uintptr_t)vmx->msr); in vcpu_alloc_vmx()
98 vmx->shadow_vmcs_hva = addr_gva2hva(vm, (uintptr_t)vmx->shadow_vmcs); in vcpu_alloc_vmx()
103 vmx->vmread_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmread); in vcpu_alloc_vmx()
108 vmx->vmwrite_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmwrite); in vcpu_alloc_vmx()
545 vmx->eptp_hva = addr_gva2hva(vm, (uintptr_t)vmx->eptp); in prepare_eptp()
552 vmx->apic_access_hva = addr_gva2hva(vm, (uintptr_t)vmx->apic_access); in prepare_virtualize_apic_accesses()
Dprocessor.c421 void *gdt = addr_gva2hva(vm, vm->arch.gdt); in kvm_seg_fill_gdt_64bit()
526 (struct idt_entry *)addr_gva2hva(vm, vm->arch.idt); in set_idt_entry()
586 *(vm_vaddr_t *)addr_gva2hva(vm, (vm_vaddr_t)(&exception_handlers)) = vm->handlers; in vm_init_descriptor_tables()
601 vm_vaddr_t *handlers = (vm_vaddr_t *)addr_gva2hva(vm, vm->handlers); in vm_install_exception_handler()
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/
Ducna_injection_test.c219 params->p_i_ucna_rcvd = (uint64_t *)addr_gva2hva(vm, (uint64_t)&i_ucna_rcvd); in test_ucna_injection()
220 params->p_i_ucna_addr = (uint64_t *)addr_gva2hva(vm, (uint64_t)&i_ucna_addr); in test_ucna_injection()
221 params->p_ucna_addr = (uint64_t *)addr_gva2hva(vm, (uint64_t)&ucna_addr); in test_ucna_injection()
222 params->p_ucna_addr2 = (uint64_t *)addr_gva2hva(vm, (uint64_t)&ucna_addr2); in test_ucna_injection()
Damx_test.c251 memset(addr_gva2hva(vm, amx_cfg), 0x0, getpagesize()); in main()
255 memset(addr_gva2hva(vm, tiledata), rand() | 1, 2 * getpagesize()); in main()
259 memset(addr_gva2hva(vm, xstate), 0, PAGE_SIZE * DIV_ROUND_UP(XSAVE_SIZE, PAGE_SIZE)); in main()
292 void *tiles_data = (void *)addr_gva2hva(vm, tiledata); in main()
Dhyperv_extended_hypercalls.c61 memset(addr_gva2hva(vm, hcall_in_page), 0x0, vm->page_size); in main()
65 memset(addr_gva2hva(vm, hcall_out_page), 0x0, vm->page_size); in main()
Dhyperv_features.c145 memset(addr_gva2hva(vm, msr_gva), 0x0, getpagesize()); in guest_test_msrs_access()
146 msr = addr_gva2hva(vm, msr_gva); in guest_test_msrs_access()
534 memset(addr_gva2hva(vm, hcall_page), 0x0, 2 * getpagesize()); in guest_test_hcalls_access()
537 memset(addr_gva2hva(vm, hcall_params), 0x0, getpagesize()); in guest_test_hcalls_access()
538 hcall = addr_gva2hva(vm, hcall_params); in guest_test_hcalls_access()
Dsvm_nested_soft_inject_test.c165 idt_alt = addr_gva2hva(vm, idt_alt_vm); in run_test()
166 idt = addr_gva2hva(vm, vm->arch.idt); in run_test()
Dhyperv_tlb_flush.c597 data = (struct test_data *)addr_gva2hva(vm, test_data_page); in main()
602 memset(addr_gva2hva(vm, data->hcall_gva), 0x0, 2 * PAGE_SIZE); in main()
611 memset(addr_gva2hva(vm, data->test_pages + PAGE_SIZE * i), in main()
613 set_expected_val(addr_gva2hva(vm, data->test_pages), 0x0, WORKER_VCPU_ID_1); in main()
614 set_expected_val(addr_gva2hva(vm, data->test_pages), 0x0, WORKER_VCPU_ID_2); in main()
Dxapic_ipi_test.c418 data = addr_gva2hva(vm, test_data_page_vaddr); in main()
426 pipis_rcvd = (uint64_t *)addr_gva2hva(vm, (uint64_t)&ipis_rcvd); in main()
Dhyperv_svm_test.c169 memset(addr_gva2hva(vm, hcall_page), 0x0, getpagesize()); in main()
Dsev_smoke_test.c83 hva = addr_gva2hva(vm, gva); in test_sync_vmsa()
Dcpuid_test.c130 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()
Dhyperv_evmcs.c250 memset(addr_gva2hva(vm, hcall_page), 0x0, getpagesize()); in main()
/linux-6.12.1/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()
Ducall_common.c37 hdr = (struct ucall_header *)addr_gva2hva(vm, vaddr); in ucall_init()
/linux-6.12.1/tools/testing/selftests/kvm/s390x/
Dtprot.c219 mprotect(addr_gva2hva(vm, (vm_vaddr_t)pages), PAGE_SIZE * 2, PROT_READ); in main()
232 mprotect(addr_gva2hva(vm, (vm_vaddr_t)0), PAGE_SIZE, PROT_READ); in main()
/linux-6.12.1/tools/testing/selftests/kvm/
Dsteal_time.c87 struct kvm_steal_time *st = addr_gva2hva(vm, (ulong)st_gva[vcpu_idx]); in steal_time_dump()
200 struct st_time *st = addr_gva2hva(vm, (ulong)st_gva[vcpu_idx]); in steal_time_dump()
291 struct sta_struct *st = addr_gva2hva(vm, (ulong)st_gva[vcpu_idx]); in steal_time_dump()
Daccess_tracking_perf_test.c97 uint64_t hva = (uint64_t) addr_gva2hva(vm, gva); in lookup_pfn()
/linux-6.12.1/tools/testing/selftests/kvm/lib/riscv/
Dprocessor.c439 *(vm_vaddr_t *)addr_gva2hva(vm, (vm_vaddr_t)(&exception_handlers)) = vm->handlers; in vm_init_vector_tables()
444 struct handlers *handlers = addr_gva2hva(vm, vm->handlers); in vm_install_exception_handler()
452 struct handlers *handlers = addr_gva2hva(vm, vm->handlers); in vm_install_interrupt_handler()
/linux-6.12.1/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c501 *(vm_vaddr_t *)addr_gva2hva(vm, (vm_vaddr_t)(&exception_handlers)) = vm->handlers; in vm_init_descriptor_tables()
507 struct handlers *handlers = addr_gva2hva(vm, vm->handlers); in vm_install_sync_handler()
518 struct handlers *handlers = addr_gva2hva(vm, vm->handlers); in vm_install_exception_handler()
/linux-6.12.1/tools/testing/selftests/kvm/include/
Dkvm_util.h613 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva);
982 typeof(g) *_p = addr_gva2hva(vm, (vm_vaddr_t)&(g)); \
987 typeof(g) *_p = addr_gva2hva(vm, (vm_vaddr_t)&(g)); \
998 typeof(g) *_p = addr_gva2hva(vm, (vm_vaddr_t)&(g)); \
/linux-6.12.1/tools/testing/selftests/kvm/aarch64/
Dvgic_irq.c720 kvm_args_hva = (struct kvm_inject_args *)addr_gva2hva(vm, kvm_args_gva); in kvm_inject_get_call()
757 memcpy(addr_gva2hva(vm, args_gva), &args, sizeof(args)); in test_vgic()

12