When a CPU is in enabled wait, it can still receive SIGP calls from other CPUs. Since this requires some special handling in KVM, we should have tests for it. This has already revealed a KVM bug with ecall under PV, which is why this test currently fails there. Some refactoring is done as part of this series to reduce code duplication. Nico Boehr (4): lib: s390x: add cleanup function for external interrupts s390x: smp: move sigp calls with invalid cpu address to array s390x: smp: use an array for sigp calls s390x: smp: add tests for calls in wait state lib/s390x/asm/interrupt.h | 1 + lib/s390x/interrupt.c | 9 ++ s390x/smp.c | 190 +++++++++++++++++++++----------------- 3 files changed, 115 insertions(+), 85 deletions(-) -- 2.35.3