From: sashiko-bot@kernel.org
To: "Steffen Eiden" <seiden@linux.ibm.com>
Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org,
linux-s390@vger.kernel.org, "Oliver Upton" <oupton@kernel.org>,
"Marc Zyngier" <maz@kernel.org>,
"Heiko Carstens" <hca@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Alexander Gordeev" <agordeev@linux.ibm.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>
Subject: Re: [PATCH 10/12] KVM: s390: arm64: Integrate guest timer
Date: Wed, 02 Dec 2026 14:34:56 +0000 [thread overview]
Message-ID: <sashiko-outbox-245965@kernel.org> (raw)
In-Reply-To: <20261202-smccc-v1-10-48340e2737b6@linux.ibm.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] KVM: s390: arm64: duplicate sae_block.gpto store in
kvm_timer_vcpu_load()
--
commit 2c2f682fb98375d172d67f251dc234fab2444a6f
Author: Steffen Eiden <seiden@linux.ibm.com>
KVM: s390: arm64: Integrate guest timer
This commit hooks the guest timer into the vCPU lifecycle and resets both
timers on vCPU reset.
> diff --git a/arch/s390/kvm/arm64/arch_timer.c b/arch/s390/kvm/arm64/arch_timer.c
> index f5b486afc2ad7..f30e6bab3f0c7 100644
> --- a/arch/s390/kvm/arm64/arch_timer.c
> +++ b/arch/s390/kvm/arm64/arch_timer.c
> @@ -173,6 +173,8 @@ void kvm_timer_vcpu_load(struct kvm_vcpu *vcpu)
>
> kvm_timer_unblocking(vcpu);
>
> + vcpu->arch.sae_block.gpto = vcpu->kvm->arch.epd;
> +
> for (int timerid = 0; timerid < nr_timers(vcpu); timerid++) {
> ctxt = vcpu_get_timer(vcpu, timerid);
> ctxt->loaded = true;
> diff --git a/arch/s390/kvm/arm64/arm.c b/arch/s390/kvm/arm64/arm.c
> index cbc760043a45b..7964848f37dda 100644
> --- a/arch/s390/kvm/arm64/arm.c
> +++ b/arch/s390/kvm/arm64/arm.c
[ ... ]
> @@ -263,6 +268,7 @@ void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
> lasrm(&vcpu->arch.save_area);
>
> vcpu->arch.sae_block.gpto = vcpu->kvm->arch.epd;
> + kvm_timer_vcpu_load(vcpu);
[Severity: Low]
This isn't a bug, but kvm_timer_vcpu_load() sets vcpu->arch.sae_block.gpto
to vcpu->kvm->arch.epd even though its only caller, kvm_arch_vcpu_load(),
already does the same assignment on the line right before calling
kvm_timer_vcpu_load(). Could one of the two assignments be dropped?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202-smccc-v1-0-48340e2737b6@linux.ibm.com?part=10
next prev parent reply other threads:[~2026-12-02 14:34 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 14:11 [PATCH 00/12] KVM: s390: arm64: SMCCC, timers and IRQ line Steffen Eiden
2026-12-02 14:11 ` [PATCH 01/12] arm64: Prepare for sharing with s390 Steffen Eiden
2026-12-02 14:11 ` [PATCH 02/12] arm64: Share timer and smccc functionality " Steffen Eiden
2026-12-02 14:11 ` [PATCH 03/12] KVM: arm64: Share timer and smccc code " Steffen Eiden
2026-12-02 14:11 ` [PATCH 04/12] KVM: s390: arm64: Use register shadow helper Steffen Eiden
2026-12-02 14:11 ` [PATCH 05/12] KVM: s390: arm64: Shadow the guest timer CVAL registers Steffen Eiden
2026-12-02 14:11 ` [PATCH 06/12] KVM: s390: arm64: Use mpstate for guests Steffen Eiden
2026-12-02 14:11 ` [PATCH 07/12] KVM: s390: arm64: Enable full smccc support Steffen Eiden
2026-12-02 14:35 ` sashiko-bot
2026-12-02 14:11 ` [PATCH 08/12] KVM: s390: arm64: Report fwregs to userspace Steffen Eiden
2026-12-02 14:11 ` [PATCH 09/12] KVM: s390: arm64: Provide timer infrastructure Steffen Eiden
2026-12-02 14:26 ` sashiko-bot
2026-12-02 14:11 ` [PATCH 10/12] KVM: s390: arm64: Integrate guest timer Steffen Eiden
2026-12-02 14:34 ` sashiko-bot [this message]
2026-12-02 14:11 ` [PATCH 11/12] KVM: s390: arm64: Trap WFx Steffen Eiden
2026-12-02 14:11 ` [PATCH 12/12] KVM: s390: arm64: Add IRQ line Steffen Eiden
2026-12-02 14:54 ` sashiko-bot
2026-12-02 14:54 ` [PATCH 00/12] KVM: s390: arm64: SMCCC, timers and " 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=sashiko-outbox-245965@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=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=linux-s390@vger.kernel.org \
--cc=maz@kernel.org \
--cc=oupton@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=seiden@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.