Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/kvm/include/
Dkvm_util.h27 typedef uint64_t vm_vaddr_t; /* Virtual Machine (Guest) virtual address */ typedef
62 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, const vm_vaddr_t gva,
85 vm_vaddr_t vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min,
90 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva);
92 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva);
137 typeof(g) *_p = addr_gva2hva(vm, (vm_vaddr_t)&(g)); \
142 typeof(g) *_p = addr_gva2hva(vm, (vm_vaddr_t)&(g)); \
/external/linux-kselftest/tools/testing/selftests/kvm/lib/
Ducall.c13 static vm_vaddr_t *ucall_exit_mmio_addr;
22 ucall_exit_mmio_addr = (vm_vaddr_t *)gpa; in ucall_mmio_init()
91 *ucall_exit_mmio_addr = (vm_vaddr_t)uc; in ucall_mmio_exit()
130 memcpy(uc, addr_gva2hva(vm, (vm_vaddr_t)regs.rdi), sizeof(*uc)); in get_ucall()
136 vm_vaddr_t gva; in get_ucall()
139 gva = *(vm_vaddr_t *)run->mmio.data; in get_ucall()
Delf.c162 vm_vaddr_t seg_vstart = phdr.p_vaddr; in kvm_vm_elf_load()
163 seg_vstart &= ~(vm_vaddr_t)(vm->page_size - 1); in kvm_vm_elf_load()
164 vm_vaddr_t seg_vend = phdr.p_vaddr + phdr.p_memsz - 1; in kvm_vm_elf_load()
168 vm_vaddr_t vaddr = vm_vaddr_alloc(vm, seg_size, seg_vstart, in kvm_vm_elf_load()
Dkvm_util_internal.h62 vm_vaddr_t gdt;
63 vm_vaddr_t tss;
Dkvm_util.c440 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, vm_vaddr_t gva, size_t len) in kvm_memcmp_hva_gva()
792 static vm_vaddr_t vm_vaddr_unused_gap(struct kvm_vm *vm, size_t sz, in vm_vaddr_unused_gap()
793 vm_vaddr_t vaddr_min) in vm_vaddr_unused_gap()
880 vm_vaddr_t vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min, in vm_vaddr_alloc()
891 vm_vaddr_t vaddr_start = vm_vaddr_unused_gap(vm, sz, vaddr_min); in vm_vaddr_alloc()
894 for (vm_vaddr_t vaddr = vaddr_start; pages > 0; in vm_vaddr_alloc()
1486 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2hva()
/external/linux-kselftest/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c22 static uint64_t pgd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pgd_index()
30 static uint64_t pud_index(struct kvm_vm *vm, vm_vaddr_t gva) in pud_index()
41 static uint64_t pmd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pmd_index()
52 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()
/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/
Dvmx.c30 vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva) in vcpu_alloc_vmx()
32 vm_vaddr_t vmx_gva = vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
Dprocessor.c545 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2gpa()
656 vm_vaddr_t stack_vaddr; in vm_vcpu_add_default()
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/
Dvmx_tsc_adjust_test.c133 vm_vaddr_t vmx_pages_gva; in main()
Devmcs_test.c77 vm_vaddr_t vmx_pages_gva = 0; in main()
Dstate_test.c126 vm_vaddr_t vmx_pages_gva = 0; in main()
/external/linux-kselftest/tools/testing/selftests/kvm/
Ddirty_log_test.c121 guest_array = addr_gva2hva(vm, (vm_vaddr_t)random_array); in vcpu_worker()
/external/linux-kselftest/tools/testing/selftests/kvm/include/x86_64/
Dvmx.h576 struct vmx_pages *vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva);