Re: [PATCH 3/4] x86/fpu: Make the EFI FPU calling convention explicit

2021-01-18 Thread Borislav Petkov
On Sun, Jan 17, 2021 at 10:20:40PM -0800, Andy Lutomirski wrote: > EFI uses kernel_fpu_begin() to conform to the UEFI calling convention. > This specifically requires initializing FCW, whereas no sane 64-bit kernel > code should use legacy 387 operations that reference FCW. > > Add KFPU_EFI to mak

[PATCH 3/4] x86/fpu: Make the EFI FPU calling convention explicit

2021-01-17 Thread Andy Lutomirski
EFI uses kernel_fpu_begin() to conform to the UEFI calling convention. This specifically requires initializing FCW, whereas no sane 64-bit kernel code should use legacy 387 operations that reference FCW. Add KFPU_EFI to make this self-documenting, and use it in the EFI code. This should enable us