Re: [PATCH] x86/traps: Have read_cr0() only once in the #NM handler

From: Andy Lutomirski
Date: Thu Jan 17 2019 - 14:24:34 EST


On Thu, Jan 17, 2019 at 4:07 AM Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> From: Borislav Petkov <bp@xxxxxxx>
>
> ... instead of twice in the code. In any case, CR0 ends up being read
> once anyway:
>
> 1. The CONFIG_MATH_EMULATION case does so and exits.
> 2. The normal case does it once too.
>


Reviewed-by: Andy Lutomirski <luto@xxxxxxxxxx>