/Linux-v6.1/tools/testing/selftests/kvm/lib/aarch64/ |
D | ucall.c | 9 static vm_vaddr_t *ucall_exit_mmio_addr; 18 ucall_exit_mmio_addr = (vm_vaddr_t *)gpa; in ucall_mmio_init() 87 WRITE_ONCE(*ucall_exit_mmio_addr, (vm_vaddr_t)&uc); in ucall() 100 vm_vaddr_t gva; in get_ucall()
|
D | processor.c | 17 static vm_vaddr_t exception_handlers; 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() 141 vm_paddr_t addr_arch_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_arch_gva2gpa() 434 *(vm_vaddr_t *)addr_gva2hva(vm, (vm_vaddr_t)(&exception_handlers)) = vm->handlers; in vm_init_descriptor_tables()
|
/Linux-v6.1/tools/testing/selftests/kvm/include/ |
D | kvm_util_base.h | 30 typedef uint64_t vm_vaddr_t; /* Virtual Machine (Guest) virtual address */ typedef 85 vm_vaddr_t gdt; 86 vm_vaddr_t tss; 87 vm_vaddr_t idt; 88 vm_vaddr_t handlers; 283 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, const vm_vaddr_t gva, 386 vm_vaddr_t vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min); 387 vm_vaddr_t vm_vaddr_alloc_pages(struct kvm_vm *vm, int nr_pages); 388 vm_vaddr_t vm_vaddr_alloc_page(struct kvm_vm *vm); 393 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva); [all …]
|
/Linux-v6.1/tools/testing/selftests/kvm/lib/ |
D | elf.c | 159 vm_vaddr_t seg_vstart = align_down(phdr.p_vaddr, vm->page_size); in kvm_vm_elf_load() 160 vm_vaddr_t seg_vend = phdr.p_vaddr + phdr.p_memsz - 1; in kvm_vm_elf_load() 164 vm_vaddr_t vaddr = vm_vaddr_alloc(vm, seg_size, seg_vstart); in kvm_vm_elf_load()
|
D | kvm_util.c | 668 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, vm_vaddr_t gva, size_t len) in kvm_memcmp_hva_gva() 1154 static vm_vaddr_t vm_vaddr_unused_gap(struct kvm_vm *vm, size_t sz, in vm_vaddr_unused_gap() 1155 vm_vaddr_t vaddr_min) in vm_vaddr_unused_gap() 1239 vm_vaddr_t vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min) in vm_vaddr_alloc() 1251 vm_vaddr_t vaddr_start = vm_vaddr_unused_gap(vm, sz, vaddr_min); in vm_vaddr_alloc() 1254 for (vm_vaddr_t vaddr = vaddr_start; pages > 0; in vm_vaddr_alloc() 1280 vm_vaddr_t vm_vaddr_alloc_pages(struct kvm_vm *vm, int nr_pages) in vm_vaddr_alloc_pages() 1299 vm_vaddr_t vm_vaddr_alloc_page(struct kvm_vm *vm) in vm_vaddr_alloc_page() 1865 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2hva()
|
/Linux-v6.1/tools/testing/selftests/kvm/s390x/ |
D | tprot.c | 209 vm_vaddr_t guest_0_page; in main() 218 mprotect(addr_gva2hva(vm, (vm_vaddr_t)pages), PAGE_SIZE * 2, PROT_READ); in main() 231 mprotect(addr_gva2hva(vm, (vm_vaddr_t)0), PAGE_SIZE, PROT_READ); in main()
|
/Linux-v6.1/tools/testing/selftests/kvm/x86_64/ |
D | cpuid_test.c | 135 struct kvm_cpuid2 *vcpu_alloc_cpuid(struct kvm_vm *vm, vm_vaddr_t *p_gva, struct kvm_cpuid2 *cpuid) in vcpu_alloc_cpuid() 138 vm_vaddr_t gva = vm_vaddr_alloc(vm, size, KVM_UTIL_MIN_VADDR); in vcpu_alloc_cpuid() 178 vm_vaddr_t cpuid_gva; in main()
|
D | triple_fault_event_test.c | 75 vm_vaddr_t vmx_pages_gva; in main() 81 vm_vaddr_t svm_gva; in main()
|
D | hyperv_features.c | 18 static inline uint8_t hypercall(u64 control, vm_vaddr_t input_address, in hypercall() 19 vm_vaddr_t output_address, uint64_t *hv_status) in hypercall() 67 static void guest_hcall(vm_vaddr_t pgs_gpa, struct hcall_data *hcall) in guest_hcall() 117 vm_vaddr_t msr_gva; in guest_test_msrs_access() 474 vm_vaddr_t hcall_page, hcall_params; in guest_test_hcalls_access()
|
D | svm_nested_soft_inject_test.c | 138 vm_vaddr_t svm_gva; in run_test() 139 vm_vaddr_t idt_alt_vm; in run_test()
|
D | vmx_close_while_nested_test.c | 50 vm_vaddr_t vmx_pages_gva; in main()
|
D | svm_nested_shutdown_test.c | 46 vm_vaddr_t svm_gva; in main()
|
D | svm_vmcall_test.c | 39 vm_vaddr_t svm_gva; in main()
|
D | vmx_invalid_nested_guest_state.c | 55 vm_vaddr_t vmx_pages_gva; in main()
|
D | svm_int_ctl_test.c | 89 vm_vaddr_t svm_gva; in main()
|
D | vmx_apic_access_test.c | 75 vm_vaddr_t vmx_pages_gva; in main()
|
D | vmx_dirty_log_test.c | 69 vm_vaddr_t vmx_pages_gva = 0; in main()
|
D | vmx_tsc_adjust_test.c | 127 vm_vaddr_t vmx_pages_gva; in main()
|
D | hyperv_svm_test.c | 122 vm_vaddr_t nested_gva = 0; in main()
|
/Linux-v6.1/tools/testing/selftests/kvm/lib/x86_64/ |
D | svm.c | 32 vcpu_alloc_svm(struct kvm_vm *vm, vm_vaddr_t *p_svm_gva) in vcpu_alloc_svm() 34 vm_vaddr_t svm_gva = vm_vaddr_alloc_page(vm); in vcpu_alloc_svm()
|
D | ucall.c | 50 memcpy(&ucall, addr_gva2hva(vcpu->vm, (vm_vaddr_t)regs.rdi), in get_ucall()
|
D | processor.c | 21 vm_vaddr_t exception_handlers; 513 vm_paddr_t addr_arch_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_arch_gva2gpa() 647 vm_vaddr_t stack_vaddr; in vm_arch_vcpu_add() 1155 *(vm_vaddr_t *)addr_gva2hva(vm, (vm_vaddr_t)(&exception_handlers)) = vm->handlers; in vcpu_init_descriptor_tables() 1161 vm_vaddr_t *handlers = (vm_vaddr_t *)addr_gva2hva(vm, vm->handlers); in vm_install_exception_handler() 1163 handlers[vector] = (vm_vaddr_t)handler; in vm_install_exception_handler()
|
D | perf_test_util.c | 84 vm_vaddr_t vmx_gva; in perf_test_setup_nested()
|
/Linux-v6.1/tools/testing/selftests/kvm/include/x86_64/ |
D | svm_util.h | 45 struct svm_test_data *vcpu_alloc_svm(struct kvm_vm *vm, vm_vaddr_t *p_svm_gva);
|
/Linux-v6.1/tools/testing/selftests/kvm/lib/riscv/ |
D | ucall.c | 64 (vm_vaddr_t)&uc, 0, 0, 0, 0, 0); in ucall()
|