Home
last modified time | relevance | path

Searched refs:vm_vaddr_t (Results 1 – 25 of 43) sorted by relevance

12

/Linux-v6.1/tools/testing/selftests/kvm/lib/aarch64/
Ducall.c9 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()
Dprocessor.c17 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/
Dkvm_util_base.h30 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/
Delf.c159 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()
Dkvm_util.c668 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/
Dtprot.c209 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/
Dcpuid_test.c135 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()
Dtriple_fault_event_test.c75 vm_vaddr_t vmx_pages_gva; in main()
81 vm_vaddr_t svm_gva; in main()
Dhyperv_features.c18 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()
Dsvm_nested_soft_inject_test.c138 vm_vaddr_t svm_gva; in run_test()
139 vm_vaddr_t idt_alt_vm; in run_test()
Dvmx_close_while_nested_test.c50 vm_vaddr_t vmx_pages_gva; in main()
Dsvm_nested_shutdown_test.c46 vm_vaddr_t svm_gva; in main()
Dsvm_vmcall_test.c39 vm_vaddr_t svm_gva; in main()
Dvmx_invalid_nested_guest_state.c55 vm_vaddr_t vmx_pages_gva; in main()
Dsvm_int_ctl_test.c89 vm_vaddr_t svm_gva; in main()
Dvmx_apic_access_test.c75 vm_vaddr_t vmx_pages_gva; in main()
Dvmx_dirty_log_test.c69 vm_vaddr_t vmx_pages_gva = 0; in main()
Dvmx_tsc_adjust_test.c127 vm_vaddr_t vmx_pages_gva; in main()
Dhyperv_svm_test.c122 vm_vaddr_t nested_gva = 0; in main()
/Linux-v6.1/tools/testing/selftests/kvm/lib/x86_64/
Dsvm.c32 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()
Ducall.c50 memcpy(&ucall, addr_gva2hva(vcpu->vm, (vm_vaddr_t)regs.rdi), in get_ucall()
Dprocessor.c21 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()
Dperf_test_util.c84 vm_vaddr_t vmx_gva; in perf_test_setup_nested()
/Linux-v6.1/tools/testing/selftests/kvm/include/x86_64/
Dsvm_util.h45 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/
Ducall.c64 (vm_vaddr_t)&uc, 0, 0, 0, 0, 0); in ucall()

12