/linux-6.12.1/tools/testing/selftests/kvm/lib/x86_64/ |
D | hyperv.c | 82 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()
|
D | svm.c | 35 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()
|
D | vmx.c | 78 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()
|
D | processor.c | 421 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/ |
D | ucna_injection_test.c | 219 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()
|
D | amx_test.c | 251 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()
|
D | hyperv_extended_hypercalls.c | 61 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()
|
D | hyperv_features.c | 145 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()
|
D | svm_nested_soft_inject_test.c | 165 idt_alt = addr_gva2hva(vm, idt_alt_vm); in run_test() 166 idt = addr_gva2hva(vm, vm->arch.idt); in run_test()
|
D | hyperv_tlb_flush.c | 597 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()
|
D | xapic_ipi_test.c | 418 data = addr_gva2hva(vm, test_data_page_vaddr); in main() 426 pipis_rcvd = (uint64_t *)addr_gva2hva(vm, (uint64_t)&ipis_rcvd); in main()
|
D | hyperv_svm_test.c | 169 memset(addr_gva2hva(vm, hcall_page), 0x0, getpagesize()); in main()
|
D | sev_smoke_test.c | 83 hva = addr_gva2hva(vm, gva); in test_sync_vmsa()
|
D | cpuid_test.c | 130 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()
|
D | hyperv_evmcs.c | 250 memset(addr_gva2hva(vm, hcall_page), 0x0, getpagesize()); in main()
|
/linux-6.12.1/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 | ucall_common.c | 37 hdr = (struct ucall_header *)addr_gva2hva(vm, vaddr); in ucall_init()
|
/linux-6.12.1/tools/testing/selftests/kvm/s390x/ |
D | tprot.c | 219 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/ |
D | steal_time.c | 87 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()
|
D | access_tracking_perf_test.c | 97 uint64_t hva = (uint64_t) addr_gva2hva(vm, gva); in lookup_pfn()
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/riscv/ |
D | processor.c | 439 *(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/ |
D | processor.c | 501 *(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/ |
D | kvm_util.h | 613 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/ |
D | vgic_irq.c | 720 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()
|