Home
last modified time | relevance | path

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

/Linux-v5.10/tools/testing/selftests/kvm/lib/
Dkvm_util_internal.h51 vm_vaddr_t gdt;
52 vm_vaddr_t tss;
53 vm_vaddr_t idt;
54 vm_vaddr_t handlers;
Delf.c161 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()
Dkvm_util.c533 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/
Ducall.c10 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()
Dprocessor.c24 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/
Dkvm_util.h27 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/
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(vm, getpagesize(), in vcpu_alloc_svm()
Dprocessor.c25 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()
Ducall.c50 memcpy(&ucall, addr_gva2hva(vm, (vm_vaddr_t)regs.rdi), in get_ucall()
Dvmx.c78 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/
Dsvm_util.h33 struct svm_test_data *vcpu_alloc_svm(struct kvm_vm *vm, vm_vaddr_t *p_svm_gva);
Dvmx.h605 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/
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()
Dvmx_dirty_log_test.c71 vm_vaddr_t vmx_pages_gva = 0; in main()
Dvmx_apic_access_test.c82 vm_vaddr_t vmx_pages_gva; in main()
Dvmx_tsc_adjust_test.c130 vm_vaddr_t vmx_pages_gva; in main()
Dsmm_test.c94 vm_vaddr_t nested_gva = 0; in main()
Devmcs_test.c83 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()
/Linux-v5.10/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c94 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2gpa()
/Linux-v5.10/tools/testing/selftests/kvm/
Ddirty_log_test.c268 guest_array = addr_gva2hva(vm, (vm_vaddr_t)random_array); in vcpu_worker()