Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/kvm/lib/s390x/
A Ducall.c17 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/tools/testing/selftests/kvm/lib/x86_64/
A Ducall.c19 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/tools/testing/selftests/kvm/lib/aarch64/
A Ducall.c74 void ucall(uint64_t cmd, int nargs, ...) in ucall() function
76 struct ucall uc = { in ucall()
92 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall()
95 struct ucall ucall = {}; in get_ucall() local
107 memcpy(&ucall, addr_gva2hva(vm, gva), sizeof(ucall)); in get_ucall()
111 memcpy(uc, &ucall, sizeof(ucall)); in get_ucall()
114 return ucall.cmd; in get_ucall()
A Dprocessor.c335 ucall(UCALL_UNHANDLED, 3, vector, ec, valid_ec); in kvm_exit_unexpected_exception()
342 struct ucall uc; in assert_on_unhandled_exception()
/linux/tools/testing/selftests/kvm/x86_64/
A Dkvm_pv_test.c71 #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()
A Demulator_error_test.c103 static void do_guest_assert(struct kvm_vm *vm, struct ucall *uc) in do_guest_assert()
112 struct ucall uc; in check_for_guest_assert()
123 struct ucall uc; in process_ucall_done()
140 struct ucall uc; in process_ucall()
A Dkvm_clock_test.c54 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()
A Dvmx_nested_tsc_scaling_test.c30 #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()
A Duserspace_msr_exit_test.c409 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()
A Dvmx_close_while_nested_test.c67 struct ucall uc; in main()
A Dsvm_vmcall_test.c53 struct ucall uc; in main()
A Dvmx_invalid_nested_guest_state.c59 struct ucall uc; in main()
A Dcr4_cpuid_sync_test.c70 struct ucall uc; in main()
A Dplatform_info_test.c51 struct ucall uc; in test_msr_platform_info_enabled()
A Duserspace_io_test.c58 struct ucall uc; in main()
A Dsvm_int_ctl_test.c107 struct ucall uc; in main()
A Dvmx_dirty_log_test.c78 struct ucall uc; in main()
A Dvmx_apic_access_test.c104 struct ucall uc; in main()
A Dvmx_tsc_adjust_test.c142 struct ucall uc; in main()
A Dset_boot_cpu_id.c52 struct ucall uc; in run_vcpu()
A Dxen_vmcall_test.c110 struct ucall uc; in main()
/linux/tools/testing/selftests/kvm/
A Dsystem_counter_offset_test.c76 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()
A DMakefile37 …pic.c lib/x86_64/processor.c lib/x86_64/vmx.c lib/x86_64/svm.c lib/x86_64/ucall.c lib/x86_64/handl…
38 LIBKVM_aarch64 = lib/aarch64/processor.c lib/aarch64/ucall.c lib/aarch64/handlers.S lib/aarch64/spi…
39 LIBKVM_s390x = lib/s390x/processor.c lib/s390x/ucall.c lib/s390x/diag318_test_handler.c
/linux/tools/testing/selftests/kvm/include/
A Dkvm_util.h375 struct ucall { struct
382 void ucall(uint64_t cmd, int nargs, ...); argument
383 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc);
386 ucall(UCALL_SYNC, 6, "hello", stage, arg1, arg2, arg3, arg4)
387 #define GUEST_SYNC(stage) ucall(UCALL_SYNC, 2, "hello", stage)
388 #define GUEST_DONE() ucall(UCALL_DONE, 0)
391 ucall(UCALL_ABORT, 2 + _nargs, \
/linux/tools/testing/selftests/kvm/aarch64/
A Dpsci_cpu_on_test.c77 struct ucall uc; in main()

Completed in 33 milliseconds

12