[PATCH 2/2] KVM: arm64: Remove use of ARM64_FEATURE_MASK()

Mark Brown broonie at kernel.org
Thu Dec 22 04:34:35 PST 2022


On Thu, Dec 22, 2022 at 12:23:49PM +0000, Marc Zyngier wrote:
> Mark Brown <broonie at kernel.org> wrote:

> > the users to directly use the generated mask macros, writing
> > 
> > 	#define ARM64_FEATURE_MASK(x)	(x##_MASK)
> > 
> > obviously looks redundant and if we look at the users updating them turns

> If the two are strictly equivalent, then let's use the former as it
> results in a tiny diff.

They are.  I'm tempted to move the define to a KVM header to discourage
new use.

> Constantly repainting these files causes no end of conflicts when
> rebasing large series (pKVM, NV...), and makes backporting of fixes
> much harder than it should be. Specially considering that there is a
> single occcurence of an ID register with non-4bit fields.

> Just put a FIXME in the various files so that people do the repainting
> as they change this code.

OK.  It does result in the half transitioned files looking really messy
which for the main arm64 code I'd expect to generate complaints but like
you say the conversions have their disadvantages too so if you're OK
with it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20221222/cc007f42/attachment.sig>


More information about the linux-arm-kernel mailing list