From: Marc Zyngier <maz@kernel.org>
To: Ben Horgan <ben.horgan@arm.com>
Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
kvm@vger.kernel.org, Joey Gouly <joey.gouly@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Oliver Upton <oliver.upton@linux.dev>,
Zenghui Yu <yuzenghui@huawei.com>, Will Deacon <will@kernel.org>,
Catalin Marinas <catalin.marinas@arm.com>,
Cornelia Huck <cohuck@redhat.com>
Subject: Re: [PATCH v3 6/6] KVM: arm64: Get rid of ARM64_FEATURE_MASK()
Date: Thu, 21 Aug 2025 14:43:47 +0100 [thread overview]
Message-ID: <87cy8okcx8.wl-maz@kernel.org> (raw)
In-Reply-To: <fb782326-06d6-4e3d-9614-6f5798dafee4@arm.com>
On Thu, 21 Aug 2025 12:29:43 +0100,
Ben Horgan <ben.horgan@arm.com> wrote:
>
> Hi Marc,
>
> On 8/17/25 21:21, Marc Zyngier wrote:
> > The ARM64_FEATURE_MASK() macro was a hack introduce whilst the
> > automatic generation of sysreg encoding was introduced, and was
> > too unreliable to be entirely trusted.
> >
> > We are in a better place now, and we could really do without this
> > macro. Get rid of it altogether.
> >
> > Signed-off-by: Marc Zyngier <maz@kernel.org>
> > ---
> > arch/arm64/include/asm/sysreg.h | 3 --
> > arch/arm64/kvm/arm.c | 8 ++--
> > arch/arm64/kvm/sys_regs.c | 40 +++++++++----------
> > tools/arch/arm64/include/asm/sysreg.h | 3 --
> > .../selftests/kvm/arm64/aarch32_id_regs.c | 2 +-
> > .../selftests/kvm/arm64/debug-exceptions.c | 12 +++---
> > .../testing/selftests/kvm/arm64/no-vgic-v3.c | 4 +-
> > .../selftests/kvm/arm64/page_fault_test.c | 6 +--
> > .../testing/selftests/kvm/arm64/set_id_regs.c | 8 ++--
> > .../selftests/kvm/arm64/vpmu_counter_access.c | 2 +-
> > .../selftests/kvm/lib/arm64/processor.c | 6 +--
> > 11 files changed, 44 insertions(+), 50 deletions(-)
> >
> > diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
> > index d5b5f2ae1afaa..6604fd6f33f45 100644
> > --- a/arch/arm64/include/asm/sysreg.h
> > +++ b/arch/arm64/include/asm/sysreg.h
> > @@ -1142,9 +1142,6 @@
> > #define ARM64_FEATURE_FIELD_BITS 4
> While you're at it, consider getting rid of ARM64_FEATURE_FIELD_BITS
> too. This is only used in the set_id_regs.c selftest.
I don't really understand what this test (like most tests) is doing,
so I'm not going to touch it. If you figure it out, feel free to send
a patch.
Thanks,
M.
--
Jazz isn't dead. It just smells funny.
next prev parent reply other threads:[~2025-08-21 13:44 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-17 20:21 [PATCH v3 0/6] KVM: arm64: FEAT_RASv1p1 support and RAS selection Marc Zyngier
2025-08-17 20:21 ` [PATCH v3 1/6] arm64: Add capability denoting FEAT_RASv1p1 Marc Zyngier
2025-08-18 12:32 ` Cornelia Huck
2025-08-17 20:21 ` [PATCH v3 2/6] KVM: arm64: Handle RASv1p1 registers Marc Zyngier
2025-08-18 12:34 ` Cornelia Huck
2025-08-21 13:13 ` Ben Horgan
2025-08-21 13:37 ` Marc Zyngier
2025-08-21 13:44 ` Ben Horgan
2025-08-17 20:21 ` [PATCH v3 3/6] KVM: arm64: Ignore HCR_EL2.FIEN set by L1 guest's EL2 Marc Zyngier
2025-08-19 10:24 ` Joey Gouly
2025-08-17 20:21 ` [PATCH v3 4/6] KVM: arm64: Make ID_AA64PFR0_EL1.RAS writable Marc Zyngier
2025-08-18 12:37 ` Cornelia Huck
2025-08-17 20:21 ` [PATCH v3 5/6] KVM: arm64: Make ID_AA64PFR1_EL1.RAS_frac writable Marc Zyngier
2025-08-18 12:43 ` Cornelia Huck
2025-08-17 20:21 ` [PATCH v3 6/6] KVM: arm64: Get rid of ARM64_FEATURE_MASK() Marc Zyngier
2025-08-21 11:29 ` Ben Horgan
2025-08-21 13:43 ` Marc Zyngier [this message]
2025-08-22 0:01 ` [PATCH v3 0/6] KVM: arm64: FEAT_RASv1p1 support and RAS selection Oliver Upton
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=87cy8okcx8.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=ben.horgan@arm.com \
--cc=catalin.marinas@arm.com \
--cc=cohuck@redhat.com \
--cc=joey.gouly@arm.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=oliver.upton@linux.dev \
--cc=suzuki.poulose@arm.com \
--cc=will@kernel.org \
--cc=yuzenghui@huawei.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