Re: [PATCH v11 05/12] x86/mm: add INVLPGB support code

From: Rik van Riel
Date: Wed Feb 19 2025 - 21:51:03 EST


On Wed, 2025-02-19 at 20:15 +0100, Borislav Petkov wrote:
> On Wed, Feb 19, 2025 at 11:01:17AM -0800, Dave Hansen wrote:
> > But, either way, #ifdefs are a sign of weakness. Less so in a
> > header and
> > more so in a .c file.
>
> ... and, as we just discussed and agreed on chat, we don't need the
> Kconfig
> option either.
>
I'll re-do the series without ifdefs, except for
the one masking out X86_FEATURE_INVLPGB (on 32
bit systems).

Then the compiler should be able to get rid of
the other code, when the feature is hard-disabled.

--
All Rights Reversed.