Re: [v3 03/12] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2018-10-25 Thread Andy Lutomirski
On Thu, Oct 25, 2018 at 4:31 PM Linus Torvalds wrote: > > On Thu, Oct 25, 2018 at 4:14 PM Andy Lutomirski wrote: > > > > On Wed, Oct 24, 2018 at 12:21 PM Andi Kleen wrote: > > > > > > BTW the other option would be to update the min-binutils requirement > > > to 2.21 (currently it is 2.20) and

Re: [v3 03/12] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2018-10-25 Thread Andy Lutomirski
On Thu, Oct 25, 2018 at 4:31 PM Linus Torvalds wrote: > > On Thu, Oct 25, 2018 at 4:14 PM Andy Lutomirski wrote: > > > > On Wed, Oct 24, 2018 at 12:21 PM Andi Kleen wrote: > > > > > > BTW the other option would be to update the min-binutils requirement > > > to 2.21 (currently it is 2.20) and

Re: [v3 03/12] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2018-10-25 Thread Linus Torvalds
On Thu, Oct 25, 2018 at 4:14 PM Andy Lutomirski wrote: > > On Wed, Oct 24, 2018 at 12:21 PM Andi Kleen wrote: > > > > BTW the other option would be to update the min-binutils requirement > > to 2.21 (currently it is 2.20) and then write it directly without .byte. > > I believe 2.21 added support

Re: [v3 03/12] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2018-10-25 Thread Linus Torvalds
On Thu, Oct 25, 2018 at 4:14 PM Andy Lutomirski wrote: > > On Wed, Oct 24, 2018 at 12:21 PM Andi Kleen wrote: > > > > BTW the other option would be to update the min-binutils requirement > > to 2.21 (currently it is 2.20) and then write it directly without .byte. > > I believe 2.21 added support

Re: [v3 03/12] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2018-10-25 Thread Andy Lutomirski
On Wed, Oct 24, 2018 at 12:21 PM Andi Kleen wrote: > > On Wed, Oct 24, 2018 at 11:53:54AM -0700, Andy Lutomirski wrote: > > On Tue, Oct 23, 2018 at 11:43 AM Chang S. Bae > > wrote: > > > > > > From: Andi Kleen > > > > > > Add C intrinsics and assembler macros for the new FSBASE and GSBASE > >

Re: [v3 03/12] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2018-10-25 Thread Andy Lutomirski
On Wed, Oct 24, 2018 at 12:21 PM Andi Kleen wrote: > > On Wed, Oct 24, 2018 at 11:53:54AM -0700, Andy Lutomirski wrote: > > On Tue, Oct 23, 2018 at 11:43 AM Chang S. Bae > > wrote: > > > > > > From: Andi Kleen > > > > > > Add C intrinsics and assembler macros for the new FSBASE and GSBASE > >

Re: [v3 03/12] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2018-10-24 Thread Andi Kleen
On Wed, Oct 24, 2018 at 11:53:54AM -0700, Andy Lutomirski wrote: > On Tue, Oct 23, 2018 at 11:43 AM Chang S. Bae > wrote: > > > > From: Andi Kleen > > > > Add C intrinsics and assembler macros for the new FSBASE and GSBASE > > instructions. > > > > Very straight forward. Used in followon

Re: [v3 03/12] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2018-10-24 Thread Andi Kleen
On Wed, Oct 24, 2018 at 11:53:54AM -0700, Andy Lutomirski wrote: > On Tue, Oct 23, 2018 at 11:43 AM Chang S. Bae > wrote: > > > > From: Andi Kleen > > > > Add C intrinsics and assembler macros for the new FSBASE and GSBASE > > instructions. > > > > Very straight forward. Used in followon

Re: [v3 03/12] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2018-10-24 Thread Andy Lutomirski
On Tue, Oct 23, 2018 at 11:43 AM Chang S. Bae wrote: > > From: Andi Kleen > > Add C intrinsics and assembler macros for the new FSBASE and GSBASE > instructions. > > Very straight forward. Used in followon patches. > > [ luto: Rename the variables from FS and GS to FSBASE and GSBASE and > make

Re: [v3 03/12] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2018-10-24 Thread Andy Lutomirski
On Tue, Oct 23, 2018 at 11:43 AM Chang S. Bae wrote: > > From: Andi Kleen > > Add C intrinsics and assembler macros for the new FSBASE and GSBASE > instructions. > > Very straight forward. Used in followon patches. > > [ luto: Rename the variables from FS and GS to FSBASE and GSBASE and > make

[v3 03/12] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2018-10-23 Thread Chang S. Bae
From: Andi Kleen Add C intrinsics and assembler macros for the new FSBASE and GSBASE instructions. Very straight forward. Used in followon patches. [ luto: Rename the variables from FS and GS to FSBASE and GSBASE and make safe to include on 32-bit kernels. ] v2: Use __always_inline [

[v3 03/12] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2018-10-23 Thread Chang S. Bae
From: Andi Kleen Add C intrinsics and assembler macros for the new FSBASE and GSBASE instructions. Very straight forward. Used in followon patches. [ luto: Rename the variables from FS and GS to FSBASE and GSBASE and make safe to include on 32-bit kernels. ] v2: Use __always_inline [