Re: [PATCH v4 04/39] x86/cpufeatures: Enable CET CR4 bit for shadow stack

Edgecombe, Rick P
2022-12-07T18:40:46Z

On Wed, 2022-12-07 at 13:49 +0100, Borislav Petkov wrote:
> On Fri, Dec 02, 2022 at 04:35:31PM -0800, Rick Edgecombe wrote:
> > From: Yu-cheng Yu <yu-cheng.yu@intel.com>
> >
> > Setting CR4.CET is a prerequisite for utilizing any CET features,
> > most of
> > which also require setting MSRs.
>
> ...
>
> > arch/x86/kernel/cpu/common.c | 37 ++++++++++++++++++++++++++++++-
> > -----
> > 1 file changed, 31 insertions(+), 6 deletions(-)
>
> Looks better.
>
> Let's get rid of the ifdeffery and simplify it even more. Diff ontop:

Sure, thanks!