From: Steffen Eiden <seiden@linux.ibm.com>
To: Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Sean Christopherson <seanjc@google.comu>,
Andreas Grapentin <gra@linux.ibm.com>,
Janosch Frank <frankja@linux.ibm.com>,
Claudio Imbrenda <imbrenda@linux.ibm.com>
Cc: linux-s390@vger.kernel.org, kvm@vger.kernel.org,
Steffen Eiden <seiden@linux.ibm.com>
Subject: [PATCH 0/2] KVM: s390: Enable vCPU kick infrastructure
Date: Wed, 25 Nov 2026 17:38:35 +0100 [thread overview]
Message-ID: <20261125-vcpu_kick-v1-0-a203b01ab957@linux.ibm.com> (raw)
Future extensions to arm on s390 will require the vcpu kick
infrastructure from KVM.
Today that infrastructure is compiled out on s390: Commit 0266c894b51c
("KVM: put back #ifndef CONFIG_S390 around kvm_vcpu_kick") guarded it
with #ifndef CONFIG_S390 for exactly one reason: kvm_vcpu_kick() calls
smp_send_reschedule(), which s390 did not export, and therefore the
s390 KVM module failed to link.
So Patch 1 exports arch_smp_send_reschedule and patch 2 drops the
CONFIG_S390 guards around __kvm_vcpu_kick() and its inline wrappers.
As this is a non-invasive change and eases the integration of future
code I send it in beforehand. These two patches need to come in before
arm patches which add the sharing of code using this e.g.
vcpu_power_off, vcpu_suspend, ... which will be used in the near future.
Native KVM/s390 is unaffected. It keeps its own wakeup and request
paths and gains no callers of the generic kick. __kvm_vcpu_kick() is
now compiled into the native module but unused; it cannot send an IPI
for a native vCPU anyway, as native s390 never sets vcpu->mode to
IN_GUEST_MODE. Then kvm_request_needs_ipi() declines and the kick
would result in a plain wakeup of a halted vCPU.DITME: cover title for vcpu_kick
Steffen
---
Steffen Eiden (2):
s390: Export arch_smp_send_reschedule
KVM: s390: Enable the generic vCPU kick infrastructure
arch/s390/kernel/smp.c | 1 +
include/linux/kvm_host.h | 4 ----
virt/kvm/kvm_main.c | 2 --
3 files changed, 1 insertion(+), 6 deletions(-)
base-commit: 4dce97c6c265544342e716e62fd24bbb232590c5
change-id: 20261125-vcpu_kick-339caf770bb8
next reply other threads:[~2026-11-25 16:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 16:38 Steffen Eiden [this message]
2026-11-25 16:38 ` [PATCH 1/2] s390: Export arch_smp_send_reschedule Steffen Eiden
2026-11-26 6:19 ` Christian Borntraeger
2026-11-25 16:38 ` [PATCH 2/2] KVM: s390: Enable the generic vCPU kick infrastructure Steffen Eiden
2026-11-25 16:44 ` [PATCH 0/2] KVM: s390: Enable " 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=20261125-vcpu_kick-v1-0-a203b01ab957@linux.ibm.com \
--to=seiden@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=frankja@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=gra@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=seanjc@google.comu \
--cc=svens@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.