Message ID | 20220321101904.387640-7-nrb@linux.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | s390x: Further extend instruction interception tests | expand |
diff --git a/s390x/smp.c b/s390x/smp.c index f22520b4f4fc..3bd7e7c8f5ed 100644 --- a/s390x/smp.c +++ b/s390x/smp.c @@ -580,6 +580,7 @@ static void emcall(void) static void test_emcall(void) { struct psw psw; + int cc; psw.mask = extract_psw_mask(); psw.addr = (unsigned long)emcall; @@ -592,6 +593,14 @@ static void test_emcall(void) smp_sigp(1, SIGP_EMERGENCY_SIGNAL, 0, NULL); wait_for_flag(); smp_cpu_stop(1); + + report_prefix_push("invalid CPU address"); + + cc = sigp(INVALID_CPU_ADDRESS, SIGP_EMERGENCY_SIGNAL, 0, NULL); + report(cc == 3, "CC = 3"); + + report_prefix_pop(); + report_prefix_pop(); }