/openbmc/linux/tools/testing/selftests/kvm/include/ |
H A D | kvm_util_base.h | 109 vm_vaddr_t gdt; 110 vm_vaddr_t tss; 111 vm_vaddr_t idt; 112 vm_vaddr_t handlers; 448 vm_vaddr_t vm_vaddr_unused_gap(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min); 449 vm_vaddr_t vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min); 450 vm_vaddr_t __vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min, 453 vm_vaddr_t __vm_vaddr_alloc_page(struct kvm_vm *vm, 455 vm_vaddr_t vm_vaddr_alloc_page(struct kvm_vm *vm); 460 void *addr_gva2hva(struct kvm_vm *vm, vm_vaddr_t gva); [all …]
|
H A D | ucall_common.h | 33 void ucall_arch_do_ucall(vm_vaddr_t uc); 50 #define GUEST_UCALL_NONE() ucall_arch_do_ucall((vm_vaddr_t)NULL)
|
/openbmc/linux/tools/testing/selftests/kvm/lib/aarch64/ |
H A D | ucall.c | 9 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()
|
H A D | processor.c | 18 static vm_vaddr_t exception_handlers; 25 static uint64_t pgd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pgd_index() 33 static uint64_t pud_index(struct kvm_vm *vm, vm_vaddr_t gva) in pud_index() 44 static uint64_t pmd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pmd_index() 55 static uint64_t pte_index(struct kvm_vm *vm, vm_vaddr_t gva) in pte_index() 160 uint64_t *virt_get_pte_hva(struct kvm_vm *vm, vm_vaddr_t gva) in virt_get_pte_hva() 198 vm_paddr_t addr_arch_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_arch_gva2gpa() 466 *(vm_vaddr_t *)addr_gva2hva(vm, (vm_vaddr_t)(&exception_handlers)) = vm->handlers; in vm_init_descriptor_tables()
|
/openbmc/linux/tools/testing/selftests/kvm/include/aarch64/ |
H A D | ucall.h | 13 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()
|
/openbmc/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | hyperv_extended_hypercalls.c | 19 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()
|
H A D | hyperv_svm_test.c | 71 vm_vaddr_t pgs_gpa) in guest_code() 153 vm_vaddr_t nested_gva = 0, hv_pages_gva = 0; in main() 154 vm_vaddr_t hcall_page; in main()
|
H A D | triple_fault_event_test.c | 75 vm_vaddr_t vmx_pages_gva; in main() 81 vm_vaddr_t svm_gva; in main()
|
H A D | hyperv_ipi.c | 50 static inline void hv_init(vm_vaddr_t pgs_gpa) in hv_init() 56 static void receiver_code(void *hcall_page, vm_vaddr_t pgs_gpa) in receiver_code() 88 static void sender_guest_code(void *hcall_page, vm_vaddr_t pgs_gpa) in sender_guest_code() 246 vm_vaddr_t hcall_page; in main()
|
H A D | cpuid_test.c | 126 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()
|
H A D | hyperv_evmcs.c | 80 vm_vaddr_t hv_hcall_page_gpa) in guest_code() 235 vm_vaddr_t vmx_pages_gva = 0, hv_pages_gva = 0; in main() 236 vm_vaddr_t hcall_page; in main()
|
H A D | hyperv_tlb_flush.c | 66 vm_vaddr_t hcall_gva; 68 vm_vaddr_t test_pages; 69 vm_vaddr_t test_pages_pte[NTEST_PAGES]; 73 static void worker_guest_code(vm_vaddr_t test_data) in worker_guest_code() 201 static void sender_guest_code(vm_vaddr_t test_data) in sender_guest_code() 586 vm_vaddr_t test_data_page, gva; in main()
|
H A D | svm_nested_soft_inject_test.c | 147 vm_vaddr_t svm_gva; in run_test() 148 vm_vaddr_t idt_alt_vm; in run_test()
|
H A D | vmx_close_while_nested_test.c | 50 vm_vaddr_t vmx_pages_gva; in main()
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | ucall_common.c | 29 vm_vaddr_t vaddr; in ucall_init() 95 ucall_arch_do_ucall((vm_vaddr_t)uc->hva); in ucall_assert() 112 ucall_arch_do_ucall((vm_vaddr_t)uc->hva); in ucall_fmt() 134 ucall_arch_do_ucall((vm_vaddr_t)uc->hva); in ucall()
|
H A D | elf.c | 160 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()
|
H A D | kvm_util.c | 779 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, vm_vaddr_t gva, size_t len) in kvm_memcmp_hva_gva() 1266 vm_vaddr_t vm_vaddr_unused_gap(struct kvm_vm *vm, size_t sz, in vm_vaddr_unused_gap() 1267 vm_vaddr_t vaddr_min) in vm_vaddr_unused_gap() 1332 vm_vaddr_t __vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min, in __vm_vaddr_alloc() 1346 vm_vaddr_t vaddr_start = vm_vaddr_unused_gap(vm, sz, vaddr_min); in __vm_vaddr_alloc() 1349 for (vm_vaddr_t vaddr = vaddr_start; pages > 0; in __vm_vaddr_alloc() 1379 vm_vaddr_t vm_vaddr_alloc(struct kvm_vm *vm, size_t sz, vm_vaddr_t vaddr_min) in vm_vaddr_alloc() 1398 vm_vaddr_t vm_vaddr_alloc_pages(struct kvm_vm *vm, int nr_pages) in vm_vaddr_alloc_pages() 1403 vm_vaddr_t __vm_vaddr_alloc_page(struct kvm_vm *vm, enum kvm_mem_region_type type) in __vm_vaddr_alloc_page() 1422 vm_vaddr_t vm_vaddr_alloc_page(struct kvm_vm *vm) in vm_vaddr_alloc_page() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/include/x86_64/ |
H A D | hyperv.h | 248 static inline uint8_t __hyperv_hypercall(u64 control, vm_vaddr_t input_address, in __hyperv_hypercall() 249 vm_vaddr_t output_address, in __hyperv_hypercall() 268 static inline void hyperv_hypercall(u64 control, vm_vaddr_t input_address, in hyperv_hypercall() 269 vm_vaddr_t output_address) in hyperv_hypercall() 341 vm_vaddr_t *p_hv_pages_gva);
|
H A D | svm_util.h | 59 struct svm_test_data *vcpu_alloc_svm(struct kvm_vm *vm, vm_vaddr_t *p_svm_gva);
|
/openbmc/linux/tools/testing/selftests/kvm/lib/x86_64/ |
H A D | hyperv.c | 12 vm_vaddr_t *p_hv_pages_gva) in vcpu_alloc_hyperv_test_pages() 14 vm_vaddr_t hv_pages_gva = vm_vaddr_alloc_page(vm); in vcpu_alloc_hyperv_test_pages()
|
H A D | svm.c | 32 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()
|
H A D | ucall.c | 11 void ucall_arch_do_ucall(vm_vaddr_t uc) in ucall_arch_do_ucall()
|
/openbmc/linux/tools/testing/selftests/kvm/s390x/ |
H A D | tprot.c | 210 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()
|
/openbmc/linux/tools/testing/selftests/kvm/include/s390x/ |
H A D | ucall.h | 13 static inline void ucall_arch_do_ucall(vm_vaddr_t uc) in ucall_arch_do_ucall()
|
/openbmc/linux/tools/testing/selftests/kvm/include/riscv/ |
H A D | ucall.h | 13 static inline void ucall_arch_do_ucall(vm_vaddr_t uc) in ucall_arch_do_ucall()
|