Re: [RFC PATCH 2/5] entry: Add calls for save/restore auxiliary pt_regs

From: Rik van Riel
Date: Fri Aug 05 2022 - 14:34:55 EST


On Fri, 2022-08-05 at 10:30 -0700, ira.weiny@xxxxxxxxx wrote:
> From: Ira Weiny <ira.weiny@xxxxxxxxx>
>
> Some architectures have auxiliary pt_regs space available to store
> information on the stack during exceptions.  This information is
> easier
> to obtain and store within C code rather than in arch specific
> assembly.
>
> Define empty calls to architecture specific save and restore
> auxiliary
> pt_regs functions.  Call these functions on generic entry/exit.
>
> NOTE: Due to the split nature of the Xen exit code
> irqentry_exit_cond_resched() requires an unbalanced call to
> arch_restore_aux_pt_regs().
>
> Cc: Rik van Riel <riel@xxxxxxxxxxx>
> Cc: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
> Cc: Borislav Petkov <bp@xxxxxxxxx>
> Signed-off-by: Ira Weiny <ira.weiny@xxxxxxxxx>
>
Acked-by: Rik van Riel <riel@xxxxxxxxxxx>

--
All Rights Reversed.

Attachment: signature.asc
Description: This is a digitally signed message part