Home
last modified time | relevance | path

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

123

/linux-6.12.1/tools/testing/selftests/kvm/lib/aarch64/
Ducall.c9 vm_vaddr_t *ucall_exit_mmio_addr;
13 vm_vaddr_t mmio_gva = vm_vaddr_unused_gap(vm, vm->page_size, KVM_UTIL_MIN_VADDR); in ucall_arch_init()
19 write_guest_global(vm, ucall_exit_mmio_addr, (vm_vaddr_t *)mmio_gva); in ucall_arch_init()
Dprocessor.c21 static vm_vaddr_t exception_handlers;
28 static uint64_t pgd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pgd_index()
36 static uint64_t pud_index(struct kvm_vm *vm, vm_vaddr_t gva) in pud_index()
47 static uint64_t pmd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pmd_index()
58 static uint64_t pte_index(struct kvm_vm *vm, vm_vaddr_t gva) in pte_index()
180 uint64_t *virt_get_pte_hva(struct kvm_vm *vm, vm_vaddr_t gva) in virt_get_pte_hva()
218 vm_paddr_t addr_arch_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_arch_gva2gpa()
501 *(vm_vaddr_t *)addr_gva2hva(vm, (vm_vaddr_t)(&exception_handlers)) = vm->handlers; in vm_init_descriptor_tables()
/linux-6.12.1/tools/testing/selftests/kvm/include/x86_64/
Dkvm_util_arch.h14 vm_vaddr_t gdt;
15 vm_vaddr_t tss;
16 vm_vaddr_t idt;
Dhyperv.h260 static inline uint8_t __hyperv_hypercall(u64 control, vm_vaddr_t input_address, in __hyperv_hypercall()
261 vm_vaddr_t output_address, in __hyperv_hypercall()
280 static inline void hyperv_hypercall(u64 control, vm_vaddr_t input_address, in hyperv_hypercall()
281 vm_vaddr_t output_address) in hyperv_hypercall()
353 vm_vaddr_t *p_hv_pages_gva);
/linux-6.12.1/tools/testing/selftests/kvm/include/
Dkvm_util.h96 vm_vaddr_t handlers;
598 vm_vaddr_t vm_vaddr_unused_gap(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min);
599 vm_vaddr_t vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min);
600 vm_vaddr_t __vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min,
602 vm_vaddr_t vm_vaddr_alloc_shared(struct kvm_vm *vm, size_t sz,
603 vm_vaddr_t vaddr_min,
605 vm_vaddr_t vm_vaddr_alloc_pages(struct kvm_vm *vm, int nr_pages);
606 vm_vaddr_t __vm_vaddr_alloc_page(struct kvm_vm *vm,
608 vm_vaddr_t vm_vaddr_alloc_page(struct kvm_vm *vm);
613 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva);
[all …]
Ducall_common.h33 void ucall_arch_do_ucall(vm_vaddr_t uc);
51 #define GUEST_UCALL_NONE() ucall_arch_do_ucall((vm_vaddr_t)NULL)
Dkvm_util_types.h18 typedef uint64_t vm_vaddr_t; /* Virtual Machine (Guest) virtual address */ typedef
/linux-6.12.1/tools/testing/selftests/kvm/lib/
Ducall_common.c32 vm_vaddr_t vaddr; in ucall_init()
99 ucall_arch_do_ucall((vm_vaddr_t)uc->hva); in ucall_assert()
116 ucall_arch_do_ucall((vm_vaddr_t)uc->hva); in ucall_fmt()
138 ucall_arch_do_ucall((vm_vaddr_t)uc->hva); in ucall()
Delf.c160 vm_vaddr_t seg_vstart = align_down(phdr.p_vaddr, vm->page_size); in kvm_vm_elf_load()
161 vm_vaddr_t seg_vend = phdr.p_vaddr + phdr.p_memsz - 1; in kvm_vm_elf_load()
165 vm_vaddr_t vaddr = __vm_vaddr_alloc(vm, seg_size, seg_vstart, in kvm_vm_elf_load()
Dkvm_util.c1313 vm_vaddr_t vm_vaddr_unused_gap(struct kvm_vm *vm, size_t sz, in vm_vaddr_unused_gap()
1314 vm_vaddr_t vaddr_min) in vm_vaddr_unused_gap()
1379 static vm_vaddr_t ____vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, in ____vm_vaddr_alloc()
1380 vm_vaddr_t vaddr_min, in ____vm_vaddr_alloc()
1395 vm_vaddr_t vaddr_start = vm_vaddr_unused_gap(vm, sz, vaddr_min); in ____vm_vaddr_alloc()
1398 for (vm_vaddr_t vaddr = vaddr_start; pages > 0; in ____vm_vaddr_alloc()
1409 vm_vaddr_t __vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min, in __vm_vaddr_alloc()
1416 vm_vaddr_t vm_vaddr_alloc_shared(struct kvm_vm *vm, size_t sz, in vm_vaddr_alloc_shared()
1417 vm_vaddr_t vaddr_min, in vm_vaddr_alloc_shared()
1442 vm_vaddr_t vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min) in vm_vaddr_alloc()
[all …]
/linux-6.12.1/tools/testing/selftests/kvm/include/aarch64/
Ducall.h13 extern vm_vaddr_t *ucall_exit_mmio_addr;
15 static inline void ucall_arch_do_ucall(vm_vaddr_t uc) in ucall_arch_do_ucall()
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/
Dhyperv_extended_hypercalls.c19 vm_vaddr_t out_pg_gva) in guest_code()
38 vm_vaddr_t hcall_out_page; in main()
39 vm_vaddr_t hcall_in_page; in main()
Dhyperv_svm_test.c70 vm_vaddr_t pgs_gpa) in guest_code()
152 vm_vaddr_t nested_gva = 0, hv_pages_gva = 0; in main()
153 vm_vaddr_t hcall_page; in main()
Dhyperv_ipi.c48 static inline void hv_init(vm_vaddr_t pgs_gpa) in hv_init()
54 static void receiver_code(void *hcall_page, vm_vaddr_t pgs_gpa) in receiver_code()
86 static void sender_guest_code(void *hcall_page, vm_vaddr_t pgs_gpa) in sender_guest_code()
244 vm_vaddr_t hcall_page; in main()
Dtriple_fault_event_test.c75 vm_vaddr_t vmx_pages_gva; in main()
81 vm_vaddr_t svm_gva; in main()
Dcpuid_test.c126 struct kvm_cpuid2 *vcpu_alloc_cpuid(struct kvm_vm *vm, vm_vaddr_t *p_gva, struct kvm_cpuid2 *cpuid) in vcpu_alloc_cpuid()
129 vm_vaddr_t gva = vm_vaddr_alloc(vm, size, KVM_UTIL_MIN_VADDR); in vcpu_alloc_cpuid()
188 vm_vaddr_t cpuid_gva; in main()
Dhyperv_tlb_flush.c64 vm_vaddr_t hcall_gva;
66 vm_vaddr_t test_pages;
67 vm_vaddr_t test_pages_pte[NTEST_PAGES];
71 static void worker_guest_code(vm_vaddr_t test_data) in worker_guest_code()
199 static void sender_guest_code(vm_vaddr_t test_data) in sender_guest_code()
584 vm_vaddr_t test_data_page, gva; in main()
Dhyperv_evmcs.c79 vm_vaddr_t hv_hcall_page_gpa) in guest_code()
234 vm_vaddr_t vmx_pages_gva = 0, hv_pages_gva = 0; in main()
235 vm_vaddr_t hcall_page; in main()
Dsvm_nested_soft_inject_test.c147 vm_vaddr_t svm_gva; in run_test()
148 vm_vaddr_t idt_alt_vm; in run_test()
/linux-6.12.1/tools/testing/selftests/kvm/s390x/
Dtprot.c210 vm_vaddr_t guest_0_page; in main()
219 mprotect(addr_gva2hva(vm, (vm_vaddr_t)pages), PAGE_SIZE * 2, PROT_READ); in main()
232 mprotect(addr_gva2hva(vm, (vm_vaddr_t)0), PAGE_SIZE, PROT_READ); in main()
/linux-6.12.1/tools/testing/selftests/kvm/lib/x86_64/
Dhyperv.c79 vm_vaddr_t *p_hv_pages_gva) in vcpu_alloc_hyperv_test_pages()
81 vm_vaddr_t hv_pages_gva = vm_vaddr_alloc_page(vm); in vcpu_alloc_hyperv_test_pages()
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()
Dprocessor.c22 vm_vaddr_t exception_handlers;
468 vm_paddr_t addr_arch_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_arch_gva2gpa()
483 static void kvm_seg_set_tss_64bit(vm_vaddr_t base, struct kvm_segment *segp) in kvm_seg_set_tss_64bit()
586 *(vm_vaddr_t *)addr_gva2hva(vm, (vm_vaddr_t)(&exception_handlers)) = vm->handlers; in vm_init_descriptor_tables()
601 vm_vaddr_t *handlers = (vm_vaddr_t *)addr_gva2hva(vm, vm->handlers); in vm_install_exception_handler()
603 handlers[vector] = (vm_vaddr_t)handler; in vm_install_exception_handler()
653 vm_vaddr_t stack_vaddr; in vm_arch_vcpu_add()
/linux-6.12.1/tools/testing/selftests/kvm/include/s390x/
Ducall.h13 static inline void ucall_arch_do_ucall(vm_vaddr_t uc) in ucall_arch_do_ucall()
/linux-6.12.1/tools/testing/selftests/kvm/include/riscv/
Ducall.h14 static inline void ucall_arch_do_ucall(vm_vaddr_t uc) in ucall_arch_do_ucall()

123