Re: [PATCH V6 6/8] x86/entry: Convert SWAPGS to swapgs and remove the definition of SWAPGS
From: Borislav Petkov
Date: Tue May 03 2022 - 06:43:31 EST
On Mon, May 02, 2022 at 07:56:16PM +0200, Borislav Petkov wrote:
> Ok, simpler asm, cool, let's do it then.
Yeah, just tried it, it needs more ifdeffery:
ld: arch/x86/entry/entry_64.o:/home/boris/kernel/linux/arch/x86/entry/entry_64.S:129: undefined reference to `xenpv_restore_regs_and_return_to_usermode'
ld: arch/x86/entry/entry_64_compat.o:(.altinstr_replacement+0x1): undefined reference to `xenpv_restore_regs_and_return_to_usermode'
make: *** [Makefile:1158: vmlinux] Error 1
Oh well.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette