Skip to contentSkip to conversation

KVM: s390: selftests: Add IRQ injection selftests

PATCH New Janosch Frank 2 participants 2 messages Aug 20

Subsystems (4)
lore
Share & tools
lore

Janosch Frank

author maintainer
#0 lore raw

PATCH 1/1 KVM: s390: selftests: Add IRQ injection selftests

From: Gabriella Seifert <[email protected]>

The IRQ injection selftests haven't been added to the selftests yet so let's do that now. We start off with a couple simple error checks for invalid data.

[[email protected]: Improved formatting and wording]

---

Written by Gabriela in her internship as a side project. Unfortunately she wasn't able to send it out herself due to a bit of time crunch. She did prepare additional code that's more in-depth with guest side checks but didn't have the time to fully test and clean it up. We'll see if and when that code will be posted.

I have her permission to fix up review comments and she's in bcc.

---
 tools/testing/selftests/kvm/Makefile.kvm      |  1 +
 .../selftests/kvm/s390/irq_injection.c        | 74 +++++++++++++++++++
 2 files changed, 75 insertions(+)
 create mode 100644 tools/testing/selftests/kvm/s390/irq_injection.c
tools/testing/selftests/kvm/Makefile.kvm +1 -0
index 6fc34e9bf8e1..423c0cb6f17d 100644
@@ -215,6 +215,7 @@ TEST_GEN_PROGS_s390 += rseq_test
 TEST_GEN_PROGS_s390 += s390/irq_routing
 TEST_GEN_PROGS_s390 += mmu_stress_test
 TEST_GEN_PROGS_s390 += pre_fault_memory_test
+TEST_GEN_PROGS_s390 += s390/irq_injection
 
 TEST_GEN_PROGS_riscv = $(TEST_GEN_PROGS_COMMON)
 TEST_GEN_PROGS_riscv += riscv/sbi_pmu_test
tools/testing/selftests/kvm/s390/irq_injection.c new file +74 -0

74 lines not on this page · raw message

Signature · 1 line
2.53.0
#1 lore raw
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 9 lines

From: Gabriella Seifert <[email protected]>

The IRQ injection selftests haven't been added to the selftests yet so let's do that now. We start off with a couple simple error checks for invalid data.

[[email protected]: Improved formatting and wording]

Sashiko has reviewed this patch and found no issues. It looks great!

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1