From: Janosch Frank <frankja@linux.ibm.com>
To: kvm@vger.kernel.org
Cc: imbrenda@linux.ibm.com, linux-s390@vger.kernel.org,
borntraeger@linux.ibm.com, pasic@linux.ibm.com
Subject: [PATCH v3 0/3] KVM: s390: Improve floating IRQ injection behavior
Date: Wed, 19 Aug 2026 18:41:09 +0000 [thread overview]
Message-ID: <20260819190408.247843-1-frankja@linux.ibm.com> (raw)
Multiple fixes for the floating IRQ handling triggered by the firq
kvm-unit-test sometimes failing for pv vms.
Only waking up cpus which are enabled, re-kicking after the
instruction notification for pv cpus and a general redistribution of
IRQs on entry (pending guidance from performance measurements).
The floating part of floating IRQs can make it difficult to make
absolutely sure that an IRQ is actually delivered, especially if the
OS doesn't regularly have the masks open. We might miss mask
enablements if the intervention bits don't get set properly and the
kicks might end up nowhere.
v3:
- Separated code into two patches
- Added a patch that fixes service injections for PV vms
- Added IRQ filtering and kick all if no cpu is enabled
- Fixed the IO pend type translation
v2:
- Rebase onto master
- Added IRQ type check before delivering
Janosch Frank (3):
KVM: s390: Improve floating IRQ injection behavior
KVM: s390: Kick PV cpus at the right time for service irqs
KVM: s390: Add opportunistic floating IRQ injection
arch/s390/include/asm/kvm_host.h | 1 +
arch/s390/kvm/intercept.c | 9 ++
arch/s390/kvm/interrupt.c | 156 ++++++++++++++++++++++++++-----
arch/s390/kvm/kvm-s390.c | 3 +
arch/s390/kvm/kvm-s390.h | 2 +
5 files changed, 150 insertions(+), 21 deletions(-)
--
2.53.0
next reply other threads:[~2026-08-19 19:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-19 18:41 Janosch Frank [this message]
2026-08-19 18:41 ` [PATCH v3 1/3] KVM: s390: Improve floating IRQ injection behavior Janosch Frank
2026-08-19 19:13 ` sashiko-bot
2026-08-19 18:41 ` [PATCH v3 2/3] KVM: s390: Kick PV cpus at the right time for service irqs Janosch Frank
2026-08-19 19:19 ` sashiko-bot
2026-08-19 18:41 ` [PATCH v3 3/3] KVM: s390: Add opportunistic floating IRQ injection Janosch Frank
2026-08-19 19:11 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260819190408.247843-1-frankja@linux.ibm.com \
--to=frankja@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=pasic@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox