Re: [PATCH v5 13/16] x86: decouple PAT and MTRR handling
From: Borislav Petkov
Date: Fri Dec 02 2022 - 08:55:22 EST
On Fri, Dec 02, 2022 at 06:56:47AM +0100, Juergen Gross wrote:
> Instead of X86_FEATURE_XENPV we could introduce something like
> X86_FEATURE_PAT_READONLY, which could be set for Xen PV guests and for
> TDX guests.
Until a third type comes which wants its pony to be pink and to dance.
:-\
Nah, we already have X86_FEATURE_TDX_GUEST - let's use that in
pat_bp_init() and exit there early and be done with it. This way it is
also self-documenting who can and cannot deal with that code.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette