/linux-5.19.10/tools/testing/selftests/kvm/lib/x86_64/ |
D | ucall.c | 19 void ucall(uint64_t cmd, int nargs, ...) in ucall() function 21 struct ucall uc = { in ucall() 38 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall() 41 struct ucall ucall = {}; in get_ucall() local 50 memcpy(&ucall, addr_gva2hva(vm, (vm_vaddr_t)regs.rdi), in get_ucall() 51 sizeof(ucall)); in get_ucall() 55 memcpy(uc, &ucall, sizeof(ucall)); in get_ucall() 58 return ucall.cmd; in get_ucall()
|
/linux-5.19.10/tools/testing/selftests/kvm/lib/s390x/ |
D | ucall.c | 17 void ucall(uint64_t cmd, int nargs, ...) in ucall() function 19 struct ucall uc = { in ucall() 36 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall() 39 struct ucall ucall = {}; in get_ucall() local 50 memcpy(&ucall, addr_gva2hva(vm, run->s.regs.gprs[reg]), in get_ucall() 51 sizeof(ucall)); in get_ucall() 55 memcpy(uc, &ucall, sizeof(ucall)); in get_ucall() 58 return ucall.cmd; in get_ucall()
|
/linux-5.19.10/tools/testing/selftests/kvm/lib/riscv/ |
D | ucall.c | 48 void ucall(uint64_t cmd, int nargs, ...) in ucall() function 50 struct ucall uc = { in ucall() 68 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall() 71 struct ucall ucall = {}; in get_ucall() local 80 memcpy(&ucall, addr_gva2hva(vm, in get_ucall() 81 run->riscv_sbi.args[0]), sizeof(ucall)); in get_ucall() 85 memcpy(uc, &ucall, sizeof(ucall)); in get_ucall() 97 return ucall.cmd; in get_ucall()
|
/linux-5.19.10/tools/testing/selftests/kvm/lib/aarch64/ |
D | ucall.c | 74 void ucall(uint64_t cmd, int nargs, ...) in ucall() function 76 struct ucall uc = {}; in ucall() 91 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall() 94 struct ucall ucall = {}; in get_ucall() local 106 memcpy(&ucall, addr_gva2hva(vm, gva), sizeof(ucall)); in get_ucall() 110 memcpy(uc, &ucall, sizeof(ucall)); in get_ucall() 113 return ucall.cmd; in get_ucall()
|
/linux-5.19.10/tools/testing/selftests/kvm/include/ |
D | ucall_common.h | 21 struct ucall { struct 28 void ucall(uint64_t cmd, int nargs, ...); argument 29 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc); 32 ucall(UCALL_SYNC, 6, "hello", stage, arg1, arg2, arg3, arg4) 33 #define GUEST_SYNC(stage) ucall(UCALL_SYNC, 2, "hello", stage) 34 #define GUEST_DONE() ucall(UCALL_DONE, 0) 37 ucall(UCALL_ABORT, 2 + _nargs, \
|
/linux-5.19.10/tools/testing/selftests/kvm/x86_64/ |
D | kvm_pv_test.c | 71 #define PR_MSR(msr) ucall(UCALL_PR_MSR, 1, msr) 109 #define PR_HCALL(hc) ucall(UCALL_PR_HCALL, 1, hc) 154 static void pr_msr(struct ucall *uc) in pr_msr() 161 static void pr_hcall(struct ucall *uc) in pr_hcall() 168 static void handle_abort(struct ucall *uc) in handle_abort() 179 struct ucall uc; in enter_guest()
|
D | emulator_error_test.c | 102 static void do_guest_assert(struct kvm_vm *vm, struct ucall *uc) in do_guest_assert() 111 struct ucall uc; in check_for_guest_assert() 122 struct ucall uc; in process_ucall_done() 139 struct ucall uc; in process_ucall()
|
D | vmx_nested_tsc_scaling_test.c | 30 #define GUEST_SLEEP(sec) ucall(UCALL_SYNC, 2, USLEEP, sec) 31 #define GUEST_CHECK(level, freq) ucall(UCALL_SYNC, 2, level, freq) 198 struct ucall uc; in main()
|
D | kvm_clock_test.c | 54 static void handle_sync(struct ucall *uc, struct kvm_clock_data *start, in handle_sync() 74 static void handle_abort(struct ucall *uc) in handle_abort() 112 struct ucall uc; in enter_guest()
|
D | vmx_close_while_nested_test.c | 67 struct ucall uc; in main()
|
D | userspace_msr_exit_test.c | 409 struct ucall uc; in check_for_guest_assert() 487 struct ucall uc; in process_ucall_done() 504 struct ucall uc = {}; in process_ucall() 621 struct ucall uc; in handle_ucall()
|
D | svm_vmcall_test.c | 53 struct ucall uc; in main()
|
D | vmx_invalid_nested_guest_state.c | 59 struct ucall uc; in main()
|
D | cr4_cpuid_sync_test.c | 70 struct ucall uc; in main()
|
D | platform_info_test.c | 51 struct ucall uc; in test_msr_platform_info_enabled()
|
D | userspace_io_test.c | 58 struct ucall uc; in main()
|
D | svm_int_ctl_test.c | 107 struct ucall uc; in main()
|
D | tsc_scaling_sync.c | 67 struct ucall uc; in run_vcpu()
|
D | vmx_apic_access_test.c | 104 struct ucall uc; in main()
|
D | vmx_dirty_log_test.c | 78 struct ucall uc; in main()
|
D | vmx_tsc_adjust_test.c | 141 struct ucall uc; in main()
|
D | fix_hypercall_test.c | 107 struct ucall uc; in enter_guest()
|
/linux-5.19.10/tools/testing/selftests/kvm/ |
D | system_counter_offset_test.c | 76 static void handle_sync(struct ucall *uc, uint64_t start, uint64_t end) in handle_sync() 88 static void handle_abort(struct ucall *uc) in handle_abort() 97 struct ucall uc; in enter_guest()
|
D | Makefile | 55 LIBKVM_x86_64 += lib/x86_64/ucall.c 63 LIBKVM_aarch64 += lib/aarch64/ucall.c 68 LIBKVM_s390x += lib/s390x/ucall.c 71 LIBKVM_riscv += lib/riscv/ucall.c
|
/linux-5.19.10/tools/testing/selftests/kvm/aarch64/ |
D | psci_test.c | 96 struct ucall uc; in enter_guest() 139 struct ucall uc; in host_test_cpu_on()
|