From: Ben Horgan <ben.horgan@arm.com>
To: Mark Brown <broonie@kernel.org>
Cc: Marc Zyngier <maz@kernel.org>, Joey Gouly <joey.gouly@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Shuah Khan <shuah@kernel.org>, Oliver Upton <oupton@kernel.org>,
linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev,
kvm@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 4/4] KVM: selftests: arm64: Skip all 32 bit IDs when set_id_regs is aarch64 only
Date: Mon, 5 Jan 2026 17:00:55 +0000 [thread overview]
Message-ID: <819a6bf5-438d-44ae-a730-77252e92080b@arm.com> (raw)
In-Reply-To: <90fb25bd-fa79-4980-902b-497346a3e6d5@sirena.org.uk>
Hi Mark,
On 1/5/26 16:45, Mark Brown wrote:
> On Fri, Jan 02, 2026 at 02:50:07PM +0000, Ben Horgan wrote:
>> On 12/19/25 19:28, Mark Brown wrote:
>
>>> + if (aarch64_only && sys_reg_CRm(reg_id) < 4) {
>>> + ksft_test_result_skip("%s value seen in guest\n",
>>> + get_reg_name(reg_id));
>>> + break;
>>> + }
>>> +
>
>> Unnecessary? The decision for which regs are testing is made in
>> guest_code().
>
> The guest code has a fixed list of registers it reads blindly and we
> skip the write for these so our expected value won't be something we
> explicitly set. The actual test is done here in the host code and it
> seems both more maintainable to keep the skip adjacent to the live test
> and clearer to be more explicit about nothing actually being tested.
Thanks for the explanation, it seems like a sensible decision.
Ben
prev parent reply other threads:[~2026-01-05 17:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-19 19:28 [PATCH v3 0/4] KVM: selftests: arm64: Improve diagnostics from set_id_regs Mark Brown
2025-12-19 19:28 ` [PATCH v3 1/4] KVM: selftests: arm64: Report set_id_reg reads of test registers as tests Mark Brown
2026-01-02 14:40 ` Ben Horgan
2025-12-19 19:28 ` [PATCH v3 2/4] KVM: selftests: arm64: Report register reset tests individually Mark Brown
2026-01-02 14:42 ` Ben Horgan
2025-12-19 19:28 ` [PATCH v3 3/4] KVM: selftests: arm64: Make set_id_regs bitfield validatity checks non-fatal Mark Brown
2026-01-02 14:45 ` Ben Horgan
2026-01-05 12:15 ` Mark Brown
2025-12-19 19:28 ` [PATCH v3 4/4] KVM: selftests: arm64: Skip all 32 bit IDs when set_id_regs is aarch64 only Mark Brown
2026-01-02 14:50 ` Ben Horgan
2026-01-05 16:45 ` Mark Brown
2026-01-05 17:00 ` Ben Horgan [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=819a6bf5-438d-44ae-a730-77252e92080b@arm.com \
--to=ben.horgan@arm.com \
--cc=broonie@kernel.org \
--cc=joey.gouly@arm.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=maz@kernel.org \
--cc=oupton@kernel.org \
--cc=pbonzini@redhat.com \
--cc=shuah@kernel.org \
--cc=suzuki.poulose@arm.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