Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
118 vmx->vp_assist_hva = addr_gva2hva(vm, (uintptr_t)vmx->vp_assist); in vcpu_alloc_vmx()
125 addr_gva2hva(vm, (uintptr_t)vmx->enlightened_vmcs); in vcpu_alloc_vmx()
542 vmx->eptp_hva = addr_gva2hva(vm, (uintptr_t)vmx->eptp); in prepare_eptp()
[all …]
Dsvm.c35 struct svm_test_data *svm = addr_gva2hva(vm, svm_gva); in vcpu_alloc_svm()
39 svm->vmcb_hva = addr_gva2hva(vm, (uintptr_t)svm->vmcb); in vcpu_alloc_svm()
44 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.c398 void *gdt = addr_gva2hva(vm, vm->gdt); in kvm_seg_fill_gdt_64bit()
1149 (struct idt_entry *)addr_gva2hva(vm, vm->idt); in set_idt_entry()
1205 *(vm_vaddr_t *)addr_gva2hva(vm, (vm_vaddr_t)(&exception_handlers)) = vm->handlers; in vcpu_init_descriptor_tables()
1211 vm_vaddr_t *handlers = (vm_vaddr_t *)addr_gva2hva(vm, vm->handlers); in vm_handle_exception()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/
Delf.c175 memset(addr_gva2hva(vm, vaddr), 0, seg_size); in kvm_vm_elf_load()
192 test_read(fd, addr_gva2hva(vm, phdr.p_vaddr), in kvm_vm_elf_load()
Dkvm_util.c548 uintptr_t ptr2 = (uintptr_t)addr_gva2hva(vm, gva + offset); in kvm_memcmp_hva_gva()
1766 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2hva() function
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/include/
Dkvm_util.h126 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva);
291 typeof(g) *_p = addr_gva2hva(vm, (vm_vaddr_t)&(g)); \
296 typeof(g) *_p = addr_gva2hva(vm, (vm_vaddr_t)&(g)); \
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/s390x/
Ducall.c50 memcpy(&ucall, addr_gva2hva(vm, run->s.regs.gprs[reg]), in get_ucall()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/
Dsteal_time.c91 struct kvm_steal_time *st = addr_gva2hva(vm, (ulong)st_gva[vcpuid]); in steal_time_dump()
212 struct st_time *st = addr_gva2hva(vm, (ulong)st_gva[vcpuid]); in steal_time_dump()
Ddirty_log_test.c268 guest_array = addr_gva2hva(vm, (vm_vaddr_t)random_array); in vcpu_worker()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/aarch64/
Ducall.c106 memcpy(&ucall, addr_gva2hva(vm, gva), sizeof(ucall)); in get_ucall()