Linux s390 Architecture development
 help / color / mirror / Atom feed
* [PATCH] KVM: s390: arm64: Stub kvm_vgic_put/load to prepare for kvm_vcpu_wfi
@ 2026-11-25 10:12 Andreas Grapentin
  2026-11-25 10:16 ` sashiko-bot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andreas Grapentin @ 2026-11-25 10:12 UTC (permalink / raw)
  To: Steffen Eiden, Marc Zyngier, Christian Borntraeger, Janosch Frank,
	Claudio Imbrenda, David Hildenbrand, Heiko Carstens,
	Vasily Gorbik, Alexander Gordeev, Sven Schnelle
  Cc: kvm, linux-s390, Andreas Grapentin

In order to be able to share kvm_vcpu_wfi with arm, we need definitions
for kvm_vgic_put and kvm_vgic_load. Add these as empty stubs now to
reduce baggage in future series.

Signed-off-by: Andreas Grapentin <gra@linux.ibm.com>
---
 arch/s390/kvm/arm64/arm.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/s390/kvm/arm64/arm.h b/arch/s390/kvm/arm64/arm.h
index 760230685ca1..871fc853675d 100644
--- a/arch/s390/kvm/arm64/arm.h
+++ b/arch/s390/kvm/arm64/arm.h
@@ -55,4 +55,15 @@ static __always_inline int kvm_s390_vm_stop_migration(struct kvm *kvm)
 	return -EINVAL;
 }
 
+/* temporary stubs */
+static inline void kvm_vgic_put(struct kvm_vcpu *vcpu)
+{
+	/* Current state of the implementation: no in-kernel gic and no vhe -> noop */
+}
+
+static inline void kvm_vgic_load(struct kvm_vcpu *vcpu)
+{
+	/* Current state of the implementation: no in-kernel gic and no vhe -> noop */
+}
+
 #endif /* ARCH_S390_KVM_ARM64_H */

---
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
change-id: 20261125-kvm_vgic_stubs-e1a1eeb4a075

Best regards,
-- 
Andreas Grapentin <gra@linux.ibm.com>


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

* Re: [PATCH] KVM: s390: arm64: Stub kvm_vgic_put/load to prepare for kvm_vcpu_wfi
  2026-11-25 10:12 [PATCH] KVM: s390: arm64: Stub kvm_vgic_put/load to prepare for kvm_vcpu_wfi Andreas Grapentin
@ 2026-11-25 10:16 ` sashiko-bot
  2026-11-25 10:17 ` Steffen Eiden
  2026-11-25 12:02 ` Christian Borntraeger
  2 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-11-25 10:16 UTC (permalink / raw)
  To: Andreas Grapentin
  Cc: linux-s390, Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger

> In order to be able to share kvm_vcpu_wfi with arm, we need definitions
> for kvm_vgic_put and kvm_vgic_load. Add these as empty stubs now to
> reduce baggage in future series.
> 
> Signed-off-by: Andreas Grapentin <gra@linux.ibm.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261125-kvm_vgic_stubs-v1-1-c53ca2c5959a@linux.ibm.com?part=1

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

* Re: [PATCH] KVM: s390: arm64: Stub kvm_vgic_put/load to prepare for kvm_vcpu_wfi
  2026-11-25 10:12 [PATCH] KVM: s390: arm64: Stub kvm_vgic_put/load to prepare for kvm_vcpu_wfi Andreas Grapentin
  2026-11-25 10:16 ` sashiko-bot
@ 2026-11-25 10:17 ` Steffen Eiden
  2026-11-25 12:02 ` Christian Borntraeger
  2 siblings, 0 replies; 4+ messages in thread
From: Steffen Eiden @ 2026-11-25 10:17 UTC (permalink / raw)
  To: Andreas Grapentin
  Cc: Marc Zyngier, Christian Borntraeger, Janosch Frank,
	Claudio Imbrenda, David Hildenbrand, Heiko Carstens,
	Vasily Gorbik, Alexander Gordeev, Sven Schnelle, kvm, linux-s390

On Wed, Nov 25, 2026 at 11:12:15AM +0100, Andreas Grapentin wrote:
> In order to be able to share kvm_vcpu_wfi with arm, we need definitions
> for kvm_vgic_put and kvm_vgic_load. Add these as empty stubs now to
> reduce baggage in future series.
> 
> Signed-off-by: Andreas Grapentin <gra@linux.ibm.com>

Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
 

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

* Re: [PATCH] KVM: s390: arm64: Stub kvm_vgic_put/load to prepare for kvm_vcpu_wfi
  2026-11-25 10:12 [PATCH] KVM: s390: arm64: Stub kvm_vgic_put/load to prepare for kvm_vcpu_wfi Andreas Grapentin
  2026-11-25 10:16 ` sashiko-bot
  2026-11-25 10:17 ` Steffen Eiden
@ 2026-11-25 12:02 ` Christian Borntraeger
  2 siblings, 0 replies; 4+ messages in thread
From: Christian Borntraeger @ 2026-11-25 12:02 UTC (permalink / raw)
  To: Andreas Grapentin, Steffen Eiden, Marc Zyngier, Janosch Frank,
	Claudio Imbrenda, David Hildenbrand, Heiko Carstens,
	Vasily Gorbik, Alexander Gordeev, Sven Schnelle
  Cc: kvm, linux-s390



Am 25.11.26 um 11:12 schrieb Andreas Grapentin:
> In order to be able to share kvm_vcpu_wfi with arm, we need definitions
> for kvm_vgic_put and kvm_vgic_load. Add these as empty stubs now to
> reduce baggage in future series.
> 
> Signed-off-by: Andreas Grapentin <gra@linux.ibm.com>

I will queue for kvms390/next.
Thanks.

> ---
>   arch/s390/kvm/arm64/arm.h | 11 +++++++++++
>   1 file changed, 11 insertions(+)
> 
> diff --git a/arch/s390/kvm/arm64/arm.h b/arch/s390/kvm/arm64/arm.h
> index 760230685ca1..871fc853675d 100644
> --- a/arch/s390/kvm/arm64/arm.h
> +++ b/arch/s390/kvm/arm64/arm.h
> @@ -55,4 +55,15 @@ static __always_inline int kvm_s390_vm_stop_migration(struct kvm *kvm)
>   	return -EINVAL;
>   }
>   
> +/* temporary stubs */
> +static inline void kvm_vgic_put(struct kvm_vcpu *vcpu)
> +{
> +	/* Current state of the implementation: no in-kernel gic and no vhe -> noop */
> +}
> +
> +static inline void kvm_vgic_load(struct kvm_vcpu *vcpu)
> +{
> +	/* Current state of the implementation: no in-kernel gic and no vhe -> noop */
> +}
> +
>   #endif /* ARCH_S390_KVM_ARM64_H */
> 
> ---
> base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
> change-id: 20261125-kvm_vgic_stubs-e1a1eeb4a075
> 
> Best regards,


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

end of thread, other threads:[~2026-11-25 12:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 10:12 [PATCH] KVM: s390: arm64: Stub kvm_vgic_put/load to prepare for kvm_vcpu_wfi Andreas Grapentin
2026-11-25 10:16 ` sashiko-bot
2026-11-25 10:17 ` Steffen Eiden
2026-11-25 12:02 ` Christian Borntraeger

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