Linux s390 Architecture development
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: s390: Enable vCPU kick infrastructure
@ 2026-11-25 16:38 Steffen Eiden
  2026-11-25 16:38 ` [PATCH 1/2] s390: Export arch_smp_send_reschedule Steffen Eiden
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Steffen Eiden @ 2026-11-25 16:38 UTC (permalink / raw)
  To: Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger, Sven Schnelle, Paolo Bonzini,
	Sean Christopherson, Andreas Grapentin, Janosch Frank,
	Claudio Imbrenda
  Cc: linux-s390, kvm, Steffen Eiden

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-26  6:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 16:38 [PATCH 0/2] KVM: s390: Enable vCPU kick infrastructure Steffen Eiden
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox