From: sashiko-bot@kernel.org
To: "Christian Borntraeger" <borntraeger@linux.ibm.com>
Cc: linux-s390@vger.kernel.org, "Heiko Carstens" <hca@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Alexander Gordeev" <agordeev@linux.ibm.com>
Subject: Re: [PATCH] KVM: s390: Don't kick vcpus for floating IRQs that are no longer pending
Date: Mon, 30 Nov 2026 09:22:21 +0000 [thread overview]
Message-ID: <sashiko-outbox-240774@kernel.org> (raw)
In-Reply-To: <20261130091704.1566209-1-borntraeger@linux.ibm.com>
> kick_cpu_irq() searches for a vcpu that can take the injected floating
> IRQ, starting with last_sleep_cpu, and, if it does not find one that
> is suitable it wakes up all vcpus to avoid starvation.
>
> For GISA interrupts, __inject_io() only sets the IPM bit and the
> hardware may deliver the interrupt to a vcpu running in SIE before
> kick_cpu_irq() looks at it. The IPM bit is then already clear, so
> deliverable_irqs() returns 0 for every vcpu and all vcpus are woken up
> for an interrupt that has already been delivered.
>
> Whenever a candidate vcpu cannot take the IRQ, check whether the IRQ is
> still pending for the VM at all and skip the kick if it is not. The
> common case, where the last_sleep_cpu guess works, is not affected:
> deliverable_irqs() has already looked at the pending IRQs then.
>
> [ ... ]
>
> virtio-net also shows benefit.
>
> Fixes: 370b3a89cbd9 ("KVM: s390: Improve floating IRQ injection behavior")
> Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130091704.1566209-1-borntraeger@linux.ibm.com?part=1
prev parent reply other threads:[~2026-11-30 9:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 9:17 [PATCH] KVM: s390: Don't kick vcpus for floating IRQs that are no longer pending Christian Borntraeger
2026-11-30 9:22 ` sashiko-bot [this message]
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=sashiko-outbox-240774@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=linux-s390@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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