/kvm-unit-tests/s390x/ |
H A D | sck.c | 20 int cc; in test_priv() local 23 cc = sck(&time_to_set_privileged); in test_priv() 24 report(!cc, "set clock cc=%d", cc); in test_priv() 26 cc = stck(&time_verify); in test_priv() 27 report(!cc, "store clock cc=%d", cc); in test_priv() 39 cc = stck(&time_verify); in test_priv() 40 report(!cc, "store clock cc=%d", cc); in test_priv() 66 int cc; in test_set() local 70 cc = sck(&time); in test_set() 71 report(!cc, "set clock cc=%d", cc); in test_set() [all …]
|
H A D | pv-attest.c | 61 int cc; in test_attest_v1() local 90 cc = uv_call(0, (uint64_t)&uvcb); in test_attest_v1() 91 report(cc == 1 && uvcb.header.rc == 0x101, "invalid continuation token"); in test_attest_v1() 95 cc = uv_call(0, (uint64_t)&uvcb); in test_attest_v1() 96 report(cc == 1 && uvcb.header.rc == 0x102, "invalid user data size"); in test_attest_v1() 100 cc = uv_call(0, (uint64_t)&uvcb); in test_attest_v1() 101 report(cc == 1 && uvcb.header.rc == 0x103, "invalid address arcb"); in test_attest_v1() 107 cc = uv_call(0, (uint64_t)&uvcb); in test_attest_v1() 108 report(cc == 1 && uvcb.header.rc == 0x106, "unsupported version"); in test_attest_v1() 112 cc = uv_call(0, (uint64_t)&uvcb); in test_attest_v1() [all …]
|
H A D | migration-sck.c | 18 int cc; in test_sck_migration() local 26 cc = sck(&time_to_set); in test_sck_migration() 27 report(!cc, "setting clock succeeded"); in test_sck_migration() 30 cc = stckf(&now_after_set); in test_sck_migration() 31 report(!cc, "clock running after set"); in test_sck_migration() 36 cc = stckf(&now_after_migration); in test_sck_migration() 37 report(!cc, "clock still set"); in test_sck_migration()
|
H A D | mvpg.c | 45 int cc; in mvpg() local 51 : "=&d" (cc) : "a" (dest), "a" (src), "d" (reg0), [bogus_cc] "d" (bogus_cc) in mvpg() 53 return cc; in mvpg() 155 int cc; in test_success() local 159 cc = mvpg(0, buffer, source); in test_success() 160 report(page_ok(buffer) && !cc, "Supervisor state MVPG successful"); in test_success() 164 cc = mvpg(0, buffer, source); in test_success() 166 report(page_ok(buffer) && !cc, "Problem state MVPG successful"); in test_success() 174 int i, cc; in test_small_loop() local 180 cc = mvpg(0, fresh, source); in test_small_loop() [all …]
|
H A D | pv-ipl.c | 29 int cc; in test_diag_308() local 67 cc = uv_set_cpu_state(vm.sblk->pv_handle_cpu, PV_CPU_STATE_STP); in test_diag_308() 68 report(!cc, "Set cpu stopped"); in test_diag_308() 75 cc = uv_cmd_nodata(vm.sblk->pv_handle_config, in test_diag_308() 77 report(cc == 0 && rc == 1, "Unshare all"); in test_diag_308() 84 cc = uv_cmd_nodata(vm.sblk->pv_handle_config, in test_diag_308() 86 report(cc == 0 && rc == 1, "Prepare reset call"); in test_diag_308() 99 cc = uv_cmd_nodata(vm.sblk->pv_handle_cpu, in test_diag_308() 101 report(cc == 0 && rc == 1, "Clear reset cpu"); in test_diag_308() 103 cc = uv_cmd_nodata(vm.sblk->pv_handle_cpu, in test_diag_308() [all …]
|
H A D | css.c | 42 int cc; in test_enable() local 49 cc = css_enable(test_device_sid, IO_SCH_ISC); in test_enable() 51 report(cc == 0, "Enable subchannel %08x", test_device_sid); in test_enable() 263 int cc; in msch_with_wrong_fmt1_mbo() local 266 cc = stsch(schid, &schib); in msch_with_wrong_fmt1_mbo() 267 if (cc) { in msch_with_wrong_fmt1_mbo() 268 report_fail("stsch: sch %08x failed with cc=%d", schid, cc); in msch_with_wrong_fmt1_mbo() 279 cc = msch(schid, &schib); in msch_with_wrong_fmt1_mbo() 341 int cc; in test_msch() local 348 cc = stsch(test_device_sid, &schib); in test_msch() [all …]
|
H A D | uv-guest.c | 75 int cc; in test_query() local 78 cc = uv_call(0, (u64)&uvcb); in test_query() 79 report(cc == 1 && uvcb.header.rc == UVC_RC_INV_LEN, "length"); in test_query() 100 int cc; in test_sharing() local 103 cc = uv_call(0, (u64)&uvcb); in test_sharing() 104 report(cc == 1 && uvcb.header.rc == UVC_RC_INV_LEN, "length"); in test_sharing() 106 cc = uv_call(0, (u64)&uvcb); in test_sharing() 107 report(cc == 0 && uvcb.header.rc == UVC_RC_EXECUTED, "share"); in test_sharing() 109 cc = uv_call(0, (u64)&uvcb); in test_sharing() 110 report(cc == 1 && uvcb.header.rc == 0x101, "invalid memory"); in test_sharing() [all …]
|
H A D | topology.c | 46 int cc; in ptf() local 52 : "=d" (cc), "+d" (fc) in ptf() 57 return cc; in ptf() 111 int cc; in check_polarization_change() local 122 cc = ptf(PTF_REQ_VERTICAL, &rc); in check_polarization_change() 123 report(cc == 0, "Set vertical polarization."); in check_polarization_change() 127 cc = ptf(PTF_CHECK, &rc); in check_polarization_change() 128 report(cc == 0, "Reset should clear topology report"); in check_polarization_change() 130 cc = ptf(PTF_REQ_HORIZONTAL, &rc); in check_polarization_change() 131 report(cc == 2 && rc == PTF_ERR_ALRDY_POLARIZED, in check_polarization_change() [all …]
|
H A D | adtl-status.c | 79 int cc; in test_store_adtl_status() local 93 cc = smp_sigp(1, SIGP_STORE_ADDITIONAL_STATUS, in test_store_adtl_status() 96 report(cc == 1, "CC = 1"); in test_store_adtl_status() 105 cc = sigp(INVALID_CPU_ADDRESS, SIGP_STORE_ADDITIONAL_STATUS, in test_store_adtl_status() 107 report(cc == 3, "CC = 3"); in test_store_adtl_status() 116 cc = smp_sigp(1, SIGP_STORE_ADDITIONAL_STATUS, in test_store_adtl_status() 118 report(cc == 1, "CC = 1"); in test_store_adtl_status() 132 int cc; in test_store_adtl_status_unavail() local 146 cc = smp_sigp(1, SIGP_STORE_ADDITIONAL_STATUS, in test_store_adtl_status_unavail() 149 report(cc == 1, "CC = 1"); in test_store_adtl_status_unavail() [all …]
|
H A D | skey.c | 364 unsigned int cc; in test_channel_subsystem_call() local 374 : [cc] "=d" (cc) in test_channel_subsystem_call() 378 cc = cc >> 28; in test_channel_subsystem_call() 379 report(cc == 0 && comm_block[9], chsc_msg); in test_channel_subsystem_call() 385 cc = chsc_key_1(comm_block); in test_channel_subsystem_call() 386 report(cc == 0 && comm_block[9], chsc_msg); in test_channel_subsystem_call() 420 cc = chsc_key_1(comm_block); in test_channel_subsystem_call() 421 report(cc == 0 && comm_block[9], chsc_msg); in test_channel_subsystem_call() 587 int cc; in test_msch() local 598 cc = stsch(test_device_sid, schib); in test_msch() [all …]
|
H A D | sthyi.c | 28 int cc = 0; in sthyi() local 34 : [cc] "=d" (cc), "+d" (rc3) in sthyi() 39 return cc; in sthyi() 77 int cc = sthyi((uint64_t)pagebuf, 42, &urc, 0, 2); in test_function_code() local 79 report(cc == 3 && urc == CODE_UNSUPP, "Illegal fcode"); in test_function_code() 143 int cc; in test_fcode0() local 149 cc = sthyi((uint64_t)pagebuf, 0, &rc, 0, 2); in test_fcode0() 154 report(cc == 0 && rc == CODE_SUCCES, "r2 + 1 == 0"); in test_fcode0()
|
H A D | smp.c | 64 int cc; in test_invalid() local 71 cc = sigp(INVALID_CPU_ADDRESS, c->order, 0, &status); in test_invalid() 72 report(cc == 3, "%s", c->message); in test_invalid() 77 cc = smp_sigp(1, c->order, 0, &status); in test_invalid() 78 report(cc == 1, "%s", c->message); in test_invalid() 200 int cc; in test_store_status() local 206 cc = sigp(INVALID_CPU_ADDRESS, SIGP_STORE_STATUS_AT_ADDRESS, (uintptr_t)status, &r); in test_store_status() 207 report(cc == 3, "returned with CC = 3"); in test_store_status() 254 int cc; in test_set_prefix() local 269 cc = smp_sigp(1, SIGP_SET_PREFIX, (unsigned long)new_lc, &status); in test_set_prefix() [all …]
|
H A D | stsi.c | 24 int cc; in test_specs() local 46 cc = stsi(pagebuf, 3, 2 | BIT(63 - i), 2); in test_specs() 47 report(!cc, "CC = 0"); in test_specs() 53 cc = stsi(pagebuf, 3, 2, 2 | BIT(63 - i)); in test_specs() 54 report(!cc, "CC = 0"); in test_specs()
|
H A D | sclp.c | 40 int cc; in sclp_service_call_test() local 44 cc = servc(command, __pa(sccb)); in sclp_service_call_test() 49 if (!cc) in sclp_service_call_test() 51 return cc; in sclp_service_call_test() 403 int cc; in test_instbits() local 414 : "=&d" (cc) in test_instbits() 421 if (cc) in test_instbits() 425 report(cc == 0, "Instruction format ignored bits"); in test_instbits() 437 int i, cc; in find_valid_sclp_code() local 445 cc = sclp_service_call(commands[i], h); in find_valid_sclp_code() [all …]
|
/kvm-unit-tests/lib/s390x/asm/ |
H A D | time.h | 23 int cc; in sck() local 29 : [cc] "=d"(cc) in sck() 34 return cc; in sck() 39 int cc; in stck() local 45 : [cc] "=d" (cc), [time] "=Q" (*time) in stck() 50 return cc; in stck() 55 int cc; in stckf() local 61 : [cc] "=d" (cc), [time] "=Q" (*time) in stckf() 66 return cc; in stckf()
|
H A D | sigp.h | 53 int cc; in sigp() local 60 : [cc] "=d" (cc), [reg1] "+d" (reg1) in sigp() 65 return cc; in sigp() 71 int cc; in sigp_retry() local 74 cc = sigp(addr, order, parm, status); in sigp_retry() 75 } while (cc == 2); in sigp_retry() 76 return cc; in sigp_retry()
|
H A D | arch_def.h | 55 uint64_t cc:2; member 297 int cc; in tprot() local 303 : "=d" (cc) : "a" (addr), "a" (access_key << 4) : "cc"); in tprot() 304 return (enum tprot_permission)cc; in tprot() 454 int cc; in stsi() local 460 : "+d" (r0), [cc] "=d" (cc) in stsi() 463 return cc; in stsi() 470 int cc; in stsi_get_fc() local 475 : "+d" (r0), [cc] "=d" (cc) in stsi_get_fc() 478 assert(!cc); in stsi_get_fc() [all …]
|
H A D | uv.h | 220 int cc; in uv_call_once() local 227 : [cc] "=d" (cc) in uv_call_once() 231 if (UVC_ERR_DEBUG && cc == 1) in uv_call_once() 237 return cc; in uv_call_once() 242 int cc; in uv_call() local 249 cc = uv_call_once(r1, r2); in uv_call() 250 } while (cc > 1); in uv_call() 252 return cc; in uv_call() 294 int cc; in uv_cmd_nodata() local 297 cc = uv_call(0, (uint64_t)&uvcb); in uv_cmd_nodata() [all …]
|
H A D | mem.h | 60 int cc; in reset_reference_bit() local 66 : "=d" (cc) : "a" (addr) : "cc"); in reset_reference_bit() 67 return cc; in reset_reference_bit()
|
/kvm-unit-tests/lib/s390x/ |
H A D | css.h | 135 int cc; in ssch() local 141 : "=d" (cc) in ssch() 144 return cc; in ssch() 151 int cc; in stsch() local 158 : "=d" (cc), "=m" (*addr) in stsch() 161 return cc; in stsch() 167 int cc; in msch() local 173 : "=d" (cc) in msch() 176 return cc; in msch() 183 int cc; in tsch() local [all …]
|
H A D | css_lib.c | 126 int cc; in css_enumerate() local 130 cc = stsch(scn | SCHID_ONE, &schib); in css_enumerate() 131 switch (cc) { in css_enumerate() 138 cc, scn | SCHID_ONE); in css_enumerate() 139 return cc; in css_enumerate() 174 int cc; in css_enabled() local 176 cc = stsch(schid, &schib); in css_enabled() 177 if (cc) { in css_enabled() 179 schid, cc); in css_enabled() 203 int cc; in css_enable() local [all …]
|
H A D | uv.c | 96 int cc; in uv_init() local 109 cc = uv_call(0, (uint64_t)&uvcb_init); in uv_init() 110 assert(cc == 0); in uv_init() 146 int cc; in uv_create_guest() local 172 cc = uv_call(0, (uint64_t)&uvcb_cgc); in uv_create_guest() 173 assert(!cc); in uv_create_guest() 177 cc = uv_call(0, (uint64_t)&uvcb_csc); in uv_create_guest() 179 assert(!cc); in uv_create_guest() 196 int cc; in uv_destroy_guest() local 199 cc = uv_cmd_nodata(vm->sblk->pv_handle_cpu, in uv_destroy_guest() [all …]
|
H A D | sclp.c | 97 int i, cc; in sclp_read_scp_info() local 104 cc = sclp_service_call(commands[i], ri); in sclp_read_scp_info() 105 if (cc) in sclp_read_scp_info() 192 int cc; in sclp_service_call() local 195 cc = servc(command, __pa(sccb)); in sclp_service_call() 197 if (cc == 3) in sclp_service_call() 199 if (cc == 2) in sclp_service_call()
|
/kvm-unit-tests/s390x/snippets/c/ |
H A D | mvpg-snippet.c | 19 int cc; in mvpg() local 24 : "=d" (cc) : "a" (dest), "a" (src), "d" (reg0) in mvpg() 26 return cc; in mvpg()
|
/kvm-unit-tests/ |
H A D | Makefile | 24 cc-option = $(shell if $(CC) $(CFLAGS) -Werror $(1) -S -o /dev/null -xc /dev/null \ 69 fomit_frame_pointer := $(call cc-option, $(frame-pointer-flag), "") 70 fno_stack_protector := $(call cc-option, -fno-stack-protector, "") 71 fno_stack_protector_all := $(call cc-option, -fno-stack-protector-all, "") 72 wno_frame_address := $(call cc-option, -Wno-frame-address, "") 73 fno_pic := $(call cc-option, -fno-pic, "") 74 no_pie := $(call cc-option, -no-pie, "") 75 wclobbered := $(call cc-option, -Wclobbered, "") 76 wunused_but_set_parameter := $(call cc-option, -Wunused-but-set-parameter, "") 77 wmissing_parameter_type := $(call cc-option, -Wmissing-parameter-type, "") [all …]
|