From: Fuad Tabba <fuad.tabba@linux.dev>
To: sashiko-bot@kernel.org
Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org,
Oliver Upton <oupton@kernel.org>, Marc Zyngier <maz@kernel.org>,
Fuad Tabba <tabba@google.com>
Subject: Re: [PATCH 2/2] KVM: arm64: selftests: Test PMU counter overflow in vpmu_counter_access
Date: Fri, 4 Dec 2026 11:55:54 +0000 [thread overview]
Message-ID: <20261204115554.2926710-1-fuad.tabba@linux.dev> (raw)
In-Reply-To: <sashiko-outbox-249654@kernel.org>
On Fri, 04 Dec 2026 11:06:30 +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential
> issues to consider:
> - [Medium] kvm/arm64: missing CPU pinning in run_overflow_test() breaks
> big.LITTLE
Known issue, James's patch [1] fixes it.
> - [Low] KVM: arm64: selftests: missing ARMV8_PMU_INCLUDE_EL2 on CHAIN
> counter
The count is UNPREDICTABLE without it. The fix below (tested) applies on
top of this patch. I'll include it if I respin, or feel free to fold it
in when applying (whichever is easier).
diff --git a/tools/testing/selftests/kvm/arm64/vpmu_counter_access.c b/tools/testing/selftests/kvm/arm64/vpmu_counter_access.c
index 57e2f39863767..7d1cd4acdcb9b 100644
--- a/tools/testing/selftests/kvm/arm64/vpmu_counter_access.c
+++ b/tools/testing/selftests/kvm/arm64/vpmu_counter_access.c
@@ -715,7 +715,7 @@ static void test_chained_counter_overflow(enum overflow_wait wait)
int i;
write_pmevtypern(0, ARMV8_PMU_INCLUDE_EL2 | ARMV8_PMUV3_PERFCTR_CPU_CYCLES);
- write_pmevtypern(1, ARMV8_PMUV3_PERFCTR_CHAIN);
+ write_pmevtypern(1, ARMV8_PMU_INCLUDE_EL2 | ARMV8_PMUV3_PERFCTR_CHAIN);
for (i = 0; i < NR_OVERFLOWS; i++) {
overflow_stop(CHAIN_LOW | CHAIN_HIGH);
Cheers,
/fuad
[1] https://lore.kernel.org/all/20261125-james-kvm-pin-pmu-test-v1-1-c3ce989233fb@linaro.org/
prev parent reply other threads:[~2026-12-04 11:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 10:49 [PATCH 0/2] KVM: arm64: Fix PMU counter overflows for non-protected guests in pKVM Fuad Tabba
2026-12-04 10:49 ` [PATCH 1/2] KVM: arm64: Don't copy the PMU registers between the host and hyp vCPU Fuad Tabba
2026-12-04 10:49 ` [PATCH 2/2] KVM: arm64: selftests: Test PMU counter overflow in vpmu_counter_access Fuad Tabba
2026-12-04 11:06 ` sashiko-bot
2026-12-04 11:55 ` Fuad Tabba [this message]
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=20261204115554.2926710-1-fuad.tabba@linux.dev \
--to=fuad.tabba@linux.dev \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=maz@kernel.org \
--cc=oupton@kernel.org \
--cc=sashiko-bot@kernel.org \
--cc=tabba@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox