| /linux/tools/testing/selftests/kvm/include/ |
| H A D | ucall_common.h | 23 struct ucall { struct 29 struct ucall *hva; argument 36 void ucall(uint64_t cmd, int nargs, ...); 41 uint64_t get_ucall(struct kvm_vcpu *vcpu, struct ucall *uc); 54 ucall(UCALL_SYNC, 6, "hello", stage, arg1, arg2, arg3, arg4) 55 #define GUEST_SYNC(stage) ucall(UCALL_SYNC, 2, "hello", stage) 56 #define GUEST_SYNC1(arg0) ucall(UCALL_SYNC, 1, arg0) 57 #define GUEST_SYNC2(arg0, arg1) ucall(UCALL_SYNC, 2, arg0, arg1) 59 ucall(UCALL_SYNC, 3, arg0, arg1, arg2) 61 ucall(UCALL_SYNC, 4, arg0, arg1, arg2, arg3) [all …]
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | ucall_common.c | 14 struct ucall ucalls[KVM_MAX_VCPUS]; 31 struct ucall *uc; in ucall_init() 50 static struct ucall *ucall_alloc(void) in ucall_alloc() 52 struct ucall *uc; in ucall_alloc() 76 static void ucall_free(struct ucall *uc) in ucall_free() 85 struct ucall *uc; in ucall_assert() 106 struct ucall *uc; in ucall_fmt() 121 void ucall(uint64_t cmd, int nargs, ...) in ucall() function 123 struct ucall *uc; in ucall() 143 uint64_t get_ucall(struct kvm_vcpu *vcpu, struct ucall *uc) in get_ucall() [all …]
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | system_counter_offset_test.c | 72 static void handle_sync(struct ucall *uc, uint64_t start, uint64_t end) in handle_sync() 84 static void handle_abort(struct ucall *uc) in handle_abort() 92 struct ucall uc; in enter_guest()
|
| H A D | Makefile.kvm | 30 LIBKVM_x86 += lib/x86/ucall.c 39 LIBKVM_arm64 += lib/arm64/ucall.c 44 LIBKVM_s390 += lib/s390/ucall.c 49 LIBKVM_riscv += lib/riscv/ucall.c 52 LIBKVM_loongarch += lib/loongarch/ucall.c
|
| H A D | guest_print_test.c | 129 struct ucall uc; in run_test() 173 struct ucall uc; in test_limits()
|
| H A D | arch_timer.c | 50 struct ucall uc; in test_vcpu_run()
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | nested_tsc_scaling_test.c | 28 #define GUEST_SLEEP(sec) ucall(UCALL_SYNC, 2, USLEEP, sec) 29 #define GUEST_CHECK(level, freq) ucall(UCALL_SYNC, 2, level, freq) 203 struct ucall uc; in main()
|
| H A D | nested_close_kvm_test.c | 88 struct ucall uc; in main()
|
| H A D | userspace_msr_exit_test.c | 386 struct ucall uc; in check_for_guest_assert() 456 struct ucall uc; in process_ucall_done() 469 struct ucall uc = {}; in process_ucall() 577 struct ucall uc; in handle_ucall()
|
| H A D | userspace_io_test.c | 59 struct ucall uc; in main()
|
| H A D | xcr0_cpuid_test.c | 110 struct ucall uc; in main()
|
| H A D | nested_invalid_cr3_test.c | 96 struct ucall uc; in main()
|
| H A D | monitor_mwait_test.c | 73 struct ucall uc; in main()
|
| H A D | vmx_nested_la57_state_test.c | 80 struct ucall uc; in main()
|
| H A D | nested_tsc_adjust_test.c | 143 struct ucall uc; in main()
|
| H A D | vmx_dirty_log_test.c | 89 struct ucall uc; in test_vmx_dirty_log()
|
| H A D | aperfmperf_test.c | 171 struct ucall uc; in main()
|
| /linux/tools/testing/selftests/kvm/arm64/ |
| H A D | at.c | 99 static void handle_sync(struct kvm_vcpu *vcpu, struct ucall *uc) in handle_sync() 126 struct ucall uc; in run_test()
|
| H A D | kvm-uuid.c | 42 struct ucall uc; in main()
|
| H A D | host_sve.c | 81 struct ucall uc; in test_run()
|
| H A D | no-vgic-v3.c | 121 struct ucall uc; in test_run_vcpu()
|
| H A D | vgic_irq.c | 78 static void kvm_inject_get_call(struct kvm_vm *vm, struct ucall *uc, 730 static void kvm_inject_get_call(struct kvm_vm *vm, struct ucall *uc, in kvm_inject_get_call() 750 struct ucall uc; in test_vgic() 964 struct ucall uc; in test_vcpu_run()
|
| H A D | aarch32_id_regs.c | 54 struct ucall uc; in test_guest_raz()
|
| H A D | debug-exceptions.c | 428 struct ucall uc; in test_guest_debug_exceptions() 469 struct ucall uc; in test_single_step_from_userspace()
|
| /linux/tools/testing/selftests/kvm/lib/loongarch/ |
| H A D | processor.c | 177 struct ucall uc; in assert_on_unhandled_exception() 200 ucall(UCALL_UNHANDLED, 3, pc, estat, badv); in route_exception()
|