Re: [PATCH 2/2] x86/sev: Get rid of special sev_es_enable_key

From: Thomas Gleixner
Date: Thu Mar 23 2023 - 05:17:46 EST


On Sat, Mar 18 2023 at 12:56, Borislav Petkov wrote:
> -bool cc_platform_has(enum cc_attr attr)
> +bool noinstr cc_platform_has(enum cc_attr attr)

That's not sufficient. This function invokes static functions which the
compiler can rightfully put out of line resulting in a noinstr violation.

Thanks,

tglx