Home
last modified time | relevance | path

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

12

/tools/testing/selftests/kvm/lib/
Dkvm_util_internal.h65 vm_vaddr_t gdt;
66 vm_vaddr_t tss;
67 vm_vaddr_t idt;
68 vm_vaddr_t handlers;
Delf.c160 vm_vaddr_t seg_vstart = phdr.p_vaddr; in kvm_vm_elf_load()
161 seg_vstart &= ~(vm_vaddr_t)(vm->page_size - 1); in kvm_vm_elf_load()
162 vm_vaddr_t seg_vend = phdr.p_vaddr + phdr.p_memsz - 1; in kvm_vm_elf_load()
166 vm_vaddr_t vaddr = vm_vaddr_alloc(vm, seg_size, seg_vstart); in kvm_vm_elf_load()
Dkvm_util.c689 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, vm_vaddr_t gva, size_t len) in kvm_memcmp_hva_gva()
1168 static vm_vaddr_t vm_vaddr_unused_gap(struct kvm_vm *vm, size_t sz, in vm_vaddr_unused_gap()
1169 vm_vaddr_t vaddr_min) in vm_vaddr_unused_gap()
1255 vm_vaddr_t vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min) in vm_vaddr_alloc()
1267 vm_vaddr_t vaddr_start = vm_vaddr_unused_gap(vm, sz, vaddr_min); in vm_vaddr_alloc()
1270 for (vm_vaddr_t vaddr = vaddr_start; pages > 0; in vm_vaddr_alloc()
1296 vm_vaddr_t vm_vaddr_alloc_pages(struct kvm_vm *vm, int nr_pages) in vm_vaddr_alloc_pages()
1315 vm_vaddr_t vm_vaddr_alloc_page(struct kvm_vm *vm) in vm_vaddr_alloc_page()
2237 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2hva()
/tools/testing/selftests/kvm/lib/aarch64/
Ducall.c10 static vm_vaddr_t *ucall_exit_mmio_addr;
19 ucall_exit_mmio_addr = (vm_vaddr_t *)gpa; in ucall_mmio_init()
88 WRITE_ONCE(*ucall_exit_mmio_addr, (vm_vaddr_t)&uc); in ucall()
101 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_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2gpa()
406 *(vm_vaddr_t *)addr_gva2hva(vm, (vm_vaddr_t)(&exception_handlers)) = vm->handlers; in vm_init_descriptor_tables()
/tools/testing/selftests/kvm/include/
Dkvm_util.h29 typedef uint64_t vm_vaddr_t; /* Virtual Machine (Guest) virtual address */ typedef
100 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, const vm_vaddr_t gva,
145 vm_vaddr_t vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min);
146 vm_vaddr_t vm_vaddr_alloc_pages(struct kvm_vm *vm, int nr_pages);
147 vm_vaddr_t vm_vaddr_alloc_page(struct kvm_vm *vm);
152 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva);
171 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva);
341 typeof(g) *_p = addr_gva2hva(vm, (vm_vaddr_t)&(g)); \
346 typeof(g) *_p = addr_gva2hva(vm, (vm_vaddr_t)&(g)); \
/tools/testing/selftests/kvm/x86_64/
Dget_cpuid_test.c145 struct kvm_cpuid2 *vcpu_alloc_cpuid(struct kvm_vm *vm, vm_vaddr_t *p_gva, struct kvm_cpuid2 *cpuid) in vcpu_alloc_cpuid()
148 vm_vaddr_t gva = vm_vaddr_alloc(vm, size, KVM_UTIL_MIN_VADDR); in vcpu_alloc_cpuid()
160 vm_vaddr_t cpuid_gva; in main()
Dvmx_close_while_nested_test.c55 vm_vaddr_t vmx_pages_gva; in main()
Dsvm_vmcall_test.c42 vm_vaddr_t svm_gva; in main()
Dhyperv_features.c52 static inline u64 hypercall(u64 control, vm_vaddr_t input_address, in hypercall()
53 vm_vaddr_t output_address) in hypercall()
125 static void guest_hcall(vm_vaddr_t pgs_gpa, struct hcall_data *hcall) in guest_hcall()
629 vm_vaddr_t msr_gva, hcall_page, hcall_params; in main()
Dsvm_int_ctl_test.c91 vm_vaddr_t svm_gva; in main()
Dvmx_tsc_adjust_test.c130 vm_vaddr_t vmx_pages_gva; in main()
Dvmx_apic_access_test.c82 vm_vaddr_t vmx_pages_gva; in main()
Dvmx_dirty_log_test.c71 vm_vaddr_t vmx_pages_gva = 0; in main()
Dsmm_test.c135 vm_vaddr_t nested_gva = 0; in main()
Dvmx_nested_tsc_scaling_test.c154 vm_vaddr_t vmx_pages_gva; in main()
Devmcs_test.c143 vm_vaddr_t vmx_pages_gva = 0; in main()
Dvmx_preemption_timer_test.c157 vm_vaddr_t vmx_pages_gva = 0; in main()
Dstate_test.c157 vm_vaddr_t nested_gva = 0; in main()
Dhyperv_clock.c213 vm_vaddr_t tsc_page_gva; in main()
/tools/testing/selftests/kvm/include/x86_64/
Dsvm_util.h33 struct svm_test_data *vcpu_alloc_svm(struct kvm_vm *vm, vm_vaddr_t *p_svm_gva);
/tools/testing/selftests/kvm/lib/x86_64/
Dsvm.c31 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_page(vm); in vcpu_alloc_svm()
Ducall.c50 memcpy(&ucall, addr_gva2hva(vm, (vm_vaddr_t)regs.rdi), in get_ucall()
Dprocessor.c20 vm_vaddr_t exception_handlers;
520 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2gpa()
619 vm_vaddr_t stack_vaddr; in vm_vcpu_add_default()
1281 *(vm_vaddr_t *)addr_gva2hva(vm, (vm_vaddr_t)(&exception_handlers)) = vm->handlers; in vcpu_init_descriptor_tables()
1287 vm_vaddr_t *handlers = (vm_vaddr_t *)addr_gva2hva(vm, vm->handlers); in vm_install_exception_handler()
1289 handlers[vector] = (vm_vaddr_t)handler; in vm_install_exception_handler()
/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c89 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2gpa()

12