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 09/12] KVM: s390: arm64: Provide timer infrastructure
Date: Wed, 02 Dec 2026 14:26:14 +0000 [thread overview]
Message-ID: <sashiko-outbox-245956@kernel.org> (raw)
In-Reply-To: <20261202-smccc-v1-9-48340e2737b6@linux.ibm.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] KVM: s390: arm64: duplicate CNTFRQ_EL0 read in
kvm_timer_vcpu_init()
--
commit 3f84c2d2b67205dc8582a4940d22e1a2782707bb
Author: Gautam Gala <ggala@linux.ibm.com>
KVM: s390: arm64: Provide timer infrastructure
This commit adds virtual and physical architected timer support for arm64
guests on s390 by building the shared arm64 arch_timer.c with s390-specific
backends.
> diff --git a/arch/s390/kvm/arm64/arch_timer.c b/arch/s390/kvm/arm64/arch_timer.c
> new file mode 100644
> index 0000000000000..f5b486afc2ad7
> --- /dev/null
> +++ b/arch/s390/kvm/arm64/arch_timer.c
> @@ -0,0 +1,224 @@
[ ... ]
> +void kvm_timer_vcpu_init(struct kvm_vcpu *vcpu)
> +{
> + u64 cntfrq_el0 = kvm_qaaf_read_ftr_reg(SYS_CNTFRQ_EL0);
> + struct arch_timer_cpu *timer = vcpu_timer(vcpu);
> +
> + cntfrq_el0 = kvm_qaaf_read_ftr_reg(SYS_CNTFRQ_EL0);
> + if (cntfrq_el0 != HZ_PER_GHZ)
> + pr_warn_once(
> + "CNTFRQ_EL0 is %llu Hz. KVM expects 1GHz. Wakeups may arrive early or late.",
> + cntfrq_el0);
[Severity: Low]
cntfrq_el0 is initialized from kvm_qaaf_read_ftr_reg(SYS_CNTFRQ_EL0) and
immediately overwritten with a second identical call. Also, the
pr_warn_once() format string is missing a trailing newline.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202-smccc-v1-0-48340e2737b6@linux.ibm.com?part=9
next prev parent reply other threads:[~2026-12-02 14:26 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 [this message]
2026-12-02 14:11 ` [PATCH 10/12] KVM: s390: arm64: Integrate guest timer Steffen Eiden
2026-12-02 14:34 ` sashiko-bot
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-245956@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.