x86/entry,xen: Early rewrite of restore_regs_and_return_to_kernel()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 8 Mar 2022 15:30:22 +0000 (16:30 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 15 Mar 2022 09:32:34 +0000 (10:32 +0100)
commit8b87d8cec1b31ea710568ae49ba5f5146318da0d
treed66a56f82b2e643c95e46710bdbe69064ef32178
parent6cf3e4c0d29102c74aca1ce0c1710be9d02e440e
x86/entry,xen: Early rewrite of restore_regs_and_return_to_kernel()

By doing an early rewrite of 'jmp native_iret` in
restore_regs_and_return_to_kernel() we can get rid of the last
INTERRUPT_RETURN user and paravirt_iret.

Suggested-by: Andrew Cooper <Andrew.Cooper3@citrix.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20220308154317.815039833@infradead.org
arch/x86/entry/entry_64.S
arch/x86/include/asm/irqflags.h
arch/x86/include/asm/paravirt_types.h
arch/x86/kernel/head_64.S
arch/x86/kernel/paravirt.c
arch/x86/xen/enlighten_pv.c
arch/x86/xen/xen-asm.S