Home
last modified time | relevance | path

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

/Linux-v5.10/tools/testing/selftests/kvm/lib/s390x/
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-v5.10/tools/testing/selftests/kvm/lib/x86_64/
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-v5.10/tools/testing/selftests/kvm/lib/aarch64/
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()
/Linux-v5.10/tools/testing/selftests/kvm/x86_64/
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()
Dtsc_msrs_test.c25 ucall(UCALL_ABORT, 4, \
80 struct ucall uc; in run_vcpu()
Dvmx_close_while_nested_test.c68 struct ucall uc; in main()
Dsvm_vmcall_test.c54 struct ucall uc; in main()
Dcr4_cpuid_sync_test.c70 struct ucall uc; in main()
Dplatform_info_test.c51 struct ucall uc; in test_msr_platform_info_enabled()
Dvmx_dirty_log_test.c78 struct ucall uc; in main()
Dvmx_apic_access_test.c105 struct ucall uc; in main()
Dvmx_tsc_adjust_test.c143 struct ucall uc; in main()
Devmcs_test.c89 struct ucall uc; in main()
Duser_msr_test.c136 struct ucall uc; in handle_ucall()
Dvmx_preemption_timer_test.c163 struct ucall uc; in main()
Ddebug_regs.c71 struct ucall uc; in main()
Dstate_test.c163 struct ucall uc; in main()
/Linux-v5.10/tools/testing/selftests/kvm/include/
Dkvm_util.h312 struct ucall { struct
319 void ucall(uint64_t cmd, int nargs, ...); argument
320 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc);
323 ucall(UCALL_SYNC, 6, "hello", stage, arg1, arg2, arg3, arg4)
324 #define GUEST_SYNC(stage) ucall(UCALL_SYNC, 2, "hello", stage)
325 #define GUEST_DONE() ucall(UCALL_DONE, 0)
328 ucall(UCALL_ABORT, 2 + _nargs, \
/Linux-v5.10/tools/testing/selftests/kvm/
DMakefile37 LIBKVM_x86_64 = lib/x86_64/processor.c lib/x86_64/vmx.c lib/x86_64/svm.c lib/x86_64/ucall.c lib/x86…
38 LIBKVM_aarch64 = lib/aarch64/processor.c lib/aarch64/ucall.c
39 LIBKVM_s390x = lib/s390x/processor.c lib/s390x/ucall.c
Dset_memory_region_test.c59 struct ucall uc; in vcpu_worker()
Dsteal_time.c254 struct ucall uc; in run_vcpu()
/Linux-v5.10/arch/powerpc/kernel/
DMakefile150 obj-y += ucall.o