[RFC][PATCH 03/24] x86/entry: Consolidate IST entry from userspace

2020-11-09 Thread Alexandre Chartre
Most IST entries (NMI, MCE, DEBUG, VC but not DF) handle an entry from userspace the same way: they switch from the IST stack to the kernel stack, call the handler and then return to userspace. However, NMI, MCE/DEBUG and VC implement this same behavior using different code paths, so consolidate th

[RFC][PATCH 03/24] x86/entry: Consolidate IST entry from userspace

2020-11-09 Thread Alexandre Chartre
Most IST entries (NMI, MCE, DEBUG, VC but not DF) handle an entry from userspace the same way: they switch from the IST stack to the kernel stack, call the handler and then return to userspace. However, NMI, MCE/DEBUG and VC implement this same behavior using different code paths, so consolidate th