Searched refs:uc (Results 276 - 300 of 359) sorted by path

<<1112131415

/linux-master/tools/testing/selftests/kvm/aarch64/
H A Dvpmu_counter_access.c463 struct ucall uc; local
467 switch (get_ucall(vcpu, &uc)) {
469 REPORT_GUEST_ASSERT(uc);
474 TEST_FAIL("Unknown ucall %lu", uc.cmd);
/linux-master/tools/testing/selftests/kvm/
H A Daccess_tracking_perf_test.c203 struct ucall uc; local
204 uint64_t actual_ucall = get_ucall(vcpu, &uc);
H A Darch_timer.c50 struct ucall uc; local
62 switch (get_ucall(vcpu, &uc)) {
70 REPORT_GUEST_ASSERT(uc);
H A Dguest_print_test.c114 struct ucall uc; local
123 switch (get_ucall(vcpu, &uc)) {
125 TEST_FAIL("Unknown 'args_type' = %lu", uc.args[1]);
128 TEST_ASSERT(strcmp(uc.buffer, expected_printf) == 0,
130 expected_printf, uc.buffer);
133 ucall_abort(uc.buffer, expected_assert);
138 TEST_FAIL("Unknown ucall %lu", uc.cmd);
158 struct ucall uc; local
168 TEST_ASSERT(get_ucall(vcpu, &uc) == UCALL_ABORT,
170 uc
[all...]
H A Dmemslot_perf_test.c141 struct ucall uc; local
146 switch (get_ucall(vcpu, &uc)) {
148 TEST_ASSERT(uc.args[1] == 0,
150 (ulong)uc.args[1]);
160 REPORT_GUEST_ASSERT(uc);
165 TEST_FAIL("Unknown ucall %lu", uc.cmd);
H A Dset_memory_region_test.c56 struct ucall uc; local
68 cmd = get_ucall(vcpu, &uc);
90 REPORT_GUEST_ASSERT(uc);
H A Dsteal_time.c325 struct ucall uc; local
329 switch (get_ucall(vcpu, &uc)) {
334 REPORT_GUEST_ASSERT(uc);
H A Dsystem_counter_offset_test.c72 static void handle_sync(struct ucall *uc, uint64_t start, uint64_t end) argument
74 uint64_t obs = uc->args[2];
84 static void handle_abort(struct ucall *uc) argument
86 REPORT_GUEST_ASSERT(*uc);
92 struct ucall uc; local
103 switch (get_ucall(vcpu, &uc)) {
105 handle_sync(&uc, start, end);
108 handle_abort(&uc);
112 get_ucall(vcpu, &uc));
/linux-master/tools/testing/selftests/kvm/include/aarch64/
H A Ducall.h15 static inline void ucall_arch_do_ucall(vm_vaddr_t uc) argument
17 WRITE_ONCE(*ucall_exit_mmio_addr, uc);
/linux-master/tools/testing/selftests/kvm/include/riscv/
H A Ducall.h14 static inline void ucall_arch_do_ucall(vm_vaddr_t uc) argument
18 uc, 0, 0, 0, 0, 0);
/linux-master/tools/testing/selftests/kvm/include/s390x/
H A Ducall.h13 static inline void ucall_arch_do_ucall(vm_vaddr_t uc) argument
16 asm volatile ("diag 0,%0,0x501" : : "a"(uc) : "memory");
/linux-master/tools/testing/selftests/kvm/include/
H A Ducall_common.h33 void ucall_arch_do_ucall(vm_vaddr_t uc);
41 uint64_t get_ucall(struct kvm_vcpu *vcpu, struct ucall *uc);
/linux-master/tools/testing/selftests/kvm/lib/aarch64/
H A Dprocessor.c436 struct ucall uc; local
438 if (get_ucall(vcpu, &uc) != UCALL_UNHANDLED)
441 if (uc.args[2]) /* valid_ec */ {
442 assert(VECTOR_IS_SYNC(uc.args[0]));
444 uc.args[0], uc.args[1]);
446 assert(!VECTOR_IS_SYNC(uc.args[0]));
448 uc.args[0]);
/linux-master/tools/testing/selftests/kvm/lib/riscv/
H A Dprocessor.c393 struct ucall uc; local
395 if (get_ucall(vcpu, &uc) == UCALL_UNHANDLED) {
397 uc.args[0], uc.args[1]);
/linux-master/tools/testing/selftests/kvm/lib/
H A Ducall_common.c31 struct ucall *uc; local
41 uc = &hdr->ucalls[i];
42 uc->hva = uc;
52 struct ucall *uc; local
60 uc = &ucall_pool->ucalls[i];
61 memset(uc->args, 0, sizeof(uc->args));
62 return uc;
76 static void ucall_free(struct ucall *uc) argument
85 struct ucall *uc; local
106 struct ucall *uc; local
123 struct ucall *uc; local
143 get_ucall(struct kvm_vcpu *vcpu, struct ucall *uc) argument
[all...]
/linux-master/tools/testing/selftests/kvm/lib/x86_64/
H A Dprocessor.c611 struct ucall uc; local
613 if (get_ucall(vcpu, &uc) == UCALL_UNHANDLED)
614 REPORT_GUEST_ASSERT(uc);
H A Ducall.c11 void ucall_arch_do_ucall(vm_vaddr_t uc) argument
41 : : [port] "d" (UCALL_PIO_PORT), "D" (uc) : "rax", "memory",
/linux-master/tools/testing/selftests/kvm/riscv/
H A Dsbi_pmu_test.c509 struct ucall uc; local
512 switch (get_ucall(vcpu, &uc)) {
514 REPORT_GUEST_ASSERT(uc);
520 TEST_FAIL("Unknown ucall %lu", uc.cmd);
/linux-master/tools/testing/selftests/kvm/s390x/
H A Dmemop.c276 struct ucall uc; \
280 get_ucall(__vcpu, &uc); \
281 if (uc.cmd == UCALL_ABORT) { \
282 REPORT_GUEST_ASSERT(uc); \
284 TEST_ASSERT_EQ(uc.cmd, UCALL_SYNC); \
285 TEST_ASSERT_EQ(uc.args[1], __stage); \
H A Dtprot.c189 struct ucall uc; \
193 get_ucall(__vcpu, &uc); \
194 if (uc.cmd == UCALL_ABORT) \
195 REPORT_GUEST_ASSERT(uc); \
196 TEST_ASSERT_EQ(uc.cmd, UCALL_SYNC); \
197 TEST_ASSERT_EQ(uc.args[1], __stage); \
/linux-master/tools/testing/selftests/kvm/x86_64/
H A Damx_test.c220 struct ucall uc; local
266 switch (get_ucall(vcpu, &uc)) {
268 REPORT_GUEST_ASSERT(uc);
271 switch (uc.args[1]) {
279 fprintf(stderr, "GUEST_SYNC(%ld)\n", uc.args[1]);
284 "GUEST_SYNC(%ld), check save/restore status\n", uc.args[1]);
300 "GUEST_SYNC(%ld), #NM exception and enable amx\n", uc.args[1]);
308 TEST_FAIL("Unknown ucall %lu", uc.cmd);
H A Dcpuid_test.c105 struct ucall uc; local
109 switch (get_ucall(vcpu, &uc)) {
111 TEST_ASSERT(!strcmp((const char *)uc.args[0], "hello") &&
112 uc.args[1] == stage + 1,
114 stage + 1, (ulong)uc.args[1]);
119 REPORT_GUEST_ASSERT(uc);
H A Dcr4_cpuid_sync_test.c55 struct ucall uc; local
65 switch (get_ucall(vcpu, &uc)) {
73 REPORT_GUEST_ASSERT(uc);
78 TEST_FAIL("Unknown ucall %lu", uc.cmd);
H A Ddebug_regs.c85 struct ucall uc; local
208 cmd = get_ucall(vcpu, &uc);
H A Dfix_hypercall_test.c92 struct ucall uc; local
95 switch (get_ucall(vcpu, &uc)) {
97 pr_info("%s: %016lx\n", (const char *)uc.args[2], uc.args[3]);
102 REPORT_GUEST_ASSERT(uc);
105 uc.cmd, run->exit_reason, exit_reason_str(run->exit_reason));

Completed in 237 milliseconds

<<1112131415