Re: [PATCH V3 1/7] x86/entry: Use idtentry macro for entry_INT80_compat

From: Peter Zijlstra
Date: Wed Mar 16 2022 - 09:49:01 EST


On Tue, Mar 15, 2022 at 03:39:43PM +0800, Lai Jiangshan wrote:
> From: Lai Jiangshan <jiangshan.ljs@xxxxxxxxxxxx>
>
> entry_INT80_compat is identical to idtentry macro except a special
> handling for %rax in the prolog.
>
> Add the prolog to idtentry and use idtentry for entry_INT80_compat.

I'm struggling to see the Xen case. Currently it has:

> - /* In the Xen PV case we already run on the thread stack. */
> - ALTERNATIVE "", "jmp .Lint80_keep_stack", X86_FEATURE_XENPV

But idtentry's error_entry() does not have that afaict.