Re: [patch V4 part 3 04/29] x86/traps: Make interrupt enable/disable symmetric in C code

From: Andy Lutomirski
Date: Fri May 08 2020 - 20:44:41 EST


On Tue, May 5, 2020 at 7:15 AM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
>
> Traps enable interrupts conditionally but rely on the ASM return code to
> disable them again. That results in redundant interrupt disable and trace
> calls.
>
> Make the trap handlers disable interrupts before returning to avoid that,
> which allows simplification of the ASM entry code.

Acked-by: Andy Lutomirski <luto@xxxxxxxxxx>

And thanks! This has bothered me forever.