On Mon, Aug 24, 2020 at 10:54:34AM +0200, Joerg Roedel wrote: > +/* Needs to be called from non-instrumentable code */ > +bool noinstr sev_es_active(void) > +{ > + return !!(sev_status & MSR_AMD64_SEV_ES_ENABLED);
You don't need the "!!" since you're returning bool.