/Linux-v5.10/tools/testing/selftests/kvm/lib/ |
D | kvm_util_internal.h | 51 vm_vaddr_t gdt; 52 vm_vaddr_t tss; 53 vm_vaddr_t idt; 54 vm_vaddr_t handlers;
|
D | elf.c | 161 vm_vaddr_t seg_vstart = phdr.p_vaddr; in kvm_vm_elf_load() 162 seg_vstart &= ~(vm_vaddr_t)(vm->page_size - 1); in kvm_vm_elf_load() 163 vm_vaddr_t seg_vend = phdr.p_vaddr + phdr.p_memsz - 1; in kvm_vm_elf_load() 167 vm_vaddr_t vaddr = vm_vaddr_alloc(vm, seg_size, seg_vstart, in kvm_vm_elf_load()
|
D | kvm_util.c | 533 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, vm_vaddr_t gva, size_t len) in kvm_memcmp_hva_gva() 937 static vm_vaddr_t vm_vaddr_unused_gap(struct kvm_vm *vm, size_t sz, in vm_vaddr_unused_gap() 938 vm_vaddr_t vaddr_min) in vm_vaddr_unused_gap() 1024 vm_vaddr_t vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min, in vm_vaddr_alloc() 1035 vm_vaddr_t vaddr_start = vm_vaddr_unused_gap(vm, sz, vaddr_min); in vm_vaddr_alloc() 1038 for (vm_vaddr_t vaddr = vaddr_start; pages > 0; in vm_vaddr_alloc() 1766 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2hva()
|
/Linux-v5.10/tools/testing/selftests/kvm/lib/aarch64/ |
D | ucall.c | 10 static vm_vaddr_t *ucall_exit_mmio_addr; 19 ucall_exit_mmio_addr = (vm_vaddr_t *)gpa; in ucall_mmio_init() 89 *ucall_exit_mmio_addr = (vm_vaddr_t)&uc; in ucall() 102 vm_vaddr_t gva; in get_ucall()
|
D | processor.c | 24 static uint64_t pgd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pgd_index() 32 static uint64_t pud_index(struct kvm_vm *vm, vm_vaddr_t gva) in pud_index() 43 static uint64_t pmd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pmd_index() 54 static uint64_t pte_index(struct kvm_vm *vm, vm_vaddr_t gva) in pte_index() 148 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2gpa()
|
/Linux-v5.10/tools/testing/selftests/kvm/include/ |
D | kvm_util.h | 27 typedef uint64_t vm_vaddr_t; /* Virtual Machine (Guest) virtual address */ typedef 78 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, const vm_vaddr_t gva, 121 vm_vaddr_t vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min, 126 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva); 144 vm_paddr_t addr_gva2gpa(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)); \
|
/Linux-v5.10/tools/testing/selftests/kvm/lib/x86_64/ |
D | svm.c | 31 vcpu_alloc_svm(struct kvm_vm *vm, vm_vaddr_t *p_svm_gva) in vcpu_alloc_svm() 33 vm_vaddr_t svm_gva = vm_vaddr_alloc(vm, getpagesize(), in vcpu_alloc_svm()
|
D | processor.c | 25 vm_vaddr_t exception_handlers; 482 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2gpa() 587 vm_vaddr_t stack_vaddr; in vm_vcpu_add_default() 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() 1213 handlers[vector] = (vm_vaddr_t)handler; in vm_handle_exception()
|
D | ucall.c | 50 memcpy(&ucall, addr_gva2hva(vm, (vm_vaddr_t)regs.rdi), in get_ucall()
|
D | vmx.c | 78 vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva) in vcpu_alloc_vmx() 80 vm_vaddr_t vmx_gva = vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
|
/Linux-v5.10/tools/testing/selftests/kvm/include/x86_64/ |
D | svm_util.h | 33 struct svm_test_data *vcpu_alloc_svm(struct kvm_vm *vm, vm_vaddr_t *p_svm_gva);
|
D | vmx.h | 605 struct vmx_pages *vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva);
|
/Linux-v5.10/tools/testing/selftests/kvm/x86_64/ |
D | vmx_close_while_nested_test.c | 55 vm_vaddr_t vmx_pages_gva; in main()
|
D | svm_vmcall_test.c | 42 vm_vaddr_t svm_gva; in main()
|
D | vmx_dirty_log_test.c | 71 vm_vaddr_t vmx_pages_gva = 0; in main()
|
D | vmx_apic_access_test.c | 82 vm_vaddr_t vmx_pages_gva; in main()
|
D | vmx_tsc_adjust_test.c | 130 vm_vaddr_t vmx_pages_gva; in main()
|
D | smm_test.c | 94 vm_vaddr_t nested_gva = 0; in main()
|
D | evmcs_test.c | 83 vm_vaddr_t vmx_pages_gva = 0; in main()
|
D | vmx_preemption_timer_test.c | 157 vm_vaddr_t vmx_pages_gva = 0; in main()
|
D | state_test.c | 157 vm_vaddr_t nested_gva = 0; in main()
|
/Linux-v5.10/tools/testing/selftests/kvm/lib/s390x/ |
D | processor.c | 94 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2gpa()
|
/Linux-v5.10/tools/testing/selftests/kvm/ |
D | dirty_log_test.c | 268 guest_array = addr_gva2hva(vm, (vm_vaddr_t)random_array); in vcpu_worker()
|