KVM: s390: Enable vCPU kick infrastructure
Get series with b4
b4 am [email protected] change-id 20261125-vcpu_kick-339caf770bb8Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | s390: Export arch_smp_send_reschedulearch/ | +1 | 1 reply | |
| 2/2 | KVM: s390: Enable the generic vCPU kick infrastructureinclude/ virt/ | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] KVM: s390: Enable vCPU kick infrastructure
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