| /tools/testing/selftests/kvm/include/ |
| A D | ucall_common.h | 23 struct ucall { struct 29 struct ucall *hva; argument 36 void ucall(uint64_t cmd, int nargs, ...); 56 #define GUEST_SYNC1(arg0) ucall(UCALL_SYNC, 1, arg0) 59 ucall(UCALL_SYNC, 3, arg0, arg1, arg2) 61 ucall(UCALL_SYNC, 4, arg0, arg1, arg2, arg3) 68 #define GUEST_DONE() ucall(UCALL_DONE, 0) 70 #define REPORT_GUEST_PRINTF(ucall) pr_info("%s", (ucall).buffer) argument 111 #define REPORT_GUEST_ASSERT(ucall) \ argument 113 (const char *)(ucall).args[GUEST_FILE], \ [all …]
|
| /tools/testing/selftests/kvm/lib/ |
| 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() 145 struct ucall ucall; in get_ucall() local [all …]
|
| /tools/testing/selftests/kvm/x86/ |
| A D | kvm_pv_test.c | 22 #define PR_MSR(msr) ucall(UCALL_PR_MSR, 1, msr) 62 #define PR_HCALL(hc) ucall(UCALL_PR_HCALL, 1, hc) 98 static void pr_msr(struct ucall *uc) in pr_msr() 105 static void pr_hcall(struct ucall *uc) in pr_hcall() 114 struct ucall uc; in enter_guest()
|
| A D | kvm_clock_test.c | 52 static void handle_sync(struct ucall *uc, struct kvm_clock_data *start, in handle_sync() 72 static void handle_abort(struct ucall *uc) in handle_abort() 109 struct ucall uc; in enter_guest()
|
| A D | vmx_nested_tsc_scaling_test.c | 27 #define GUEST_SLEEP(sec) ucall(UCALL_SYNC, 2, USLEEP, sec) 28 #define GUEST_CHECK(level, freq) ucall(UCALL_SYNC, 2, level, freq) 165 struct ucall uc; in main()
|
| A D | vmx_close_while_nested_test.c | 64 struct ucall uc; in main()
|
| A D | svm_vmcall_test.c | 50 struct ucall uc; in main()
|
| A D | platform_info_test.c | 46 struct ucall uc; in main()
|
| A D | cr4_cpuid_sync_test.c | 67 struct ucall uc; in main()
|
| A D | userspace_io_test.c | 59 struct ucall uc; in main()
|
| A D | vmx_invalid_nested_guest_state.c | 59 struct ucall uc; in main()
|
| A D | smaller_maxphyaddr_emulation_test.c | 49 struct ucall uc; in main()
|
| A D | svm_int_ctl_test.c | 87 struct ucall uc; in main()
|
| A D | tsc_scaling_sync.c | 63 struct ucall uc; in run_vcpu()
|
| A D | hyperv_extended_hypercalls.c | 44 struct ucall uc; in main()
|
| A D | xcr0_cpuid_test.c | 110 struct ucall uc; in main()
|
| A D | vmx_apic_access_test.c | 95 struct ucall uc; in main()
|
| A D | ucna_injection_test.c | 137 struct ucall uc; in run_vcpu_expect_gp() 175 struct ucall uc; in run_ucna_injection()
|
| A D | triple_fault_event_test.c | 64 struct ucall uc; in main()
|
| /tools/testing/selftests/kvm/ |
| 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()
|
| 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
|
| A D | guest_print_test.c | 129 struct ucall uc; in run_test() 173 struct ucall uc; in test_limits()
|
| /tools/testing/selftests/kvm/arm64/ |
| A D | psci_test.c | 103 struct ucall uc; in enter_guest() 146 struct ucall uc; in host_test_cpu_on() 243 struct ucall uc; in host_test_system_off2()
|
| A D | host_sve.c | 81 struct ucall uc; in test_run()
|
| /tools/testing/selftests/kvm/s390/ |
| A D | shared_zeropage_test.c | 54 struct ucall uc; in main()
|