Home
last modified time | relevance | path

Searched refs:ucall (Results 1 – 25 of 67) sorted by relevance

123

/Linux-v6.6/tools/testing/selftests/kvm/include/
Ducall_common.h23 struct ucall { struct
29 struct ucall *hva; argument
36 void ucall(uint64_t cmd, int nargs, ...);
40 uint64_t get_ucall(struct kvm_vcpu *vcpu, struct ucall *uc);
53 ucall(UCALL_SYNC, 6, "hello", stage, arg1, arg2, arg3, arg4)
54 #define GUEST_SYNC(stage) ucall(UCALL_SYNC, 2, "hello", stage)
56 #define GUEST_DONE() ucall(UCALL_DONE, 0)
58 #define REPORT_GUEST_PRINTF(ucall) pr_info("%s", (ucall).buffer) argument
99 #define REPORT_GUEST_ASSERT(ucall) \ argument
100 test_assert(false, (const char *)(ucall).args[GUEST_ERROR_STRING], \
[all …]
/Linux-v6.6/tools/testing/selftests/kvm/lib/
Ducall_common.c11 struct ucall ucalls[KVM_MAX_VCPUS];
28 struct ucall *uc; in ucall_init()
46 static struct ucall *ucall_alloc(void) in ucall_alloc()
48 struct ucall *uc; in ucall_alloc()
72 static void ucall_free(struct ucall *uc) in ucall_free()
81 struct ucall *uc; in ucall_assert()
102 struct ucall *uc; in ucall_fmt()
117 void ucall(uint64_t cmd, int nargs, ...) in ucall() function
119 struct ucall *uc; in ucall()
139 uint64_t get_ucall(struct kvm_vcpu *vcpu, struct ucall *uc) in get_ucall()
[all …]
/Linux-v6.6/tools/testing/selftests/kvm/x86_64/
Dkvm_pv_test.c22 #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()
Dvmx_nested_tsc_scaling_test.c27 #define GUEST_SLEEP(sec) ucall(UCALL_SYNC, 2, USLEEP, sec)
28 #define GUEST_CHECK(level, freq) ucall(UCALL_SYNC, 2, level, freq)
182 struct ucall uc; in main()
Dkvm_clock_test.c52 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()
Dvmx_close_while_nested_test.c64 struct ucall uc; in main()
Dcr4_cpuid_sync_test.c55 struct ucall uc; in main()
Dsvm_vmcall_test.c50 struct ucall uc; in main()
Dplatform_info_test.c39 struct ucall uc; in test_msr_platform_info_enabled()
Ducna_injection_test.c140 struct ucall uc; in run_vcpu_expect_gp()
178 struct ucall uc; in run_ucna_injection()
Duserspace_msr_exit_test.c399 struct ucall uc; in check_for_guest_assert()
469 struct ucall uc; in process_ucall_done()
482 struct ucall uc = {}; in process_ucall()
594 struct ucall uc; in handle_ucall()
Duserspace_io_test.c59 struct ucall uc; in main()
Dvmx_invalid_nested_guest_state.c59 struct ucall uc; in main()
Dsmaller_maxphyaddr_emulation_test.c52 struct ucall uc; in main()
Dsvm_int_ctl_test.c90 struct ucall uc; in main()
Dtsc_scaling_sync.c63 struct ucall uc; in run_vcpu()
Dhyperv_extended_hypercalls.c44 struct ucall uc; in main()
Dmonitor_mwait_test.c73 struct ucall uc; in main()
Dset_boot_cpu_id.c47 struct ucall uc; in run_vcpu()
Dvmx_apic_access_test.c95 struct ucall uc; in main()
Dxcr0_cpuid_test.c105 struct ucall uc; in main()
/Linux-v6.6/tools/testing/selftests/kvm/
Dsystem_counter_offset_test.c72 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()
DMakefile41 LIBKVM_x86_64 += lib/x86_64/ucall.c
49 LIBKVM_aarch64 += lib/aarch64/ucall.c
54 LIBKVM_s390x += lib/s390x/ucall.c
57 LIBKVM_riscv += lib/riscv/ucall.c
Dguest_print_test.c113 struct ucall uc; in run_test()
157 struct ucall uc; in test_limits()
/Linux-v6.6/tools/testing/selftests/kvm/aarch64/
Dpsci_test.c94 struct ucall uc; in enter_guest()
137 struct ucall uc; in host_test_cpu_on()

123