Re: [PATCH 6/6] x86/gsseg: use the LKGS instruction if available for load_gs_index()

From: Peter Zijlstra
Date: Fri Oct 07 2022 - 10:53:04 EST


On Thu, Oct 06, 2022 at 08:40:41AM -0700, Xin Li wrote:

> +#define LKGS_DI _ASM_BYTES(0xf2,0x0f,0x00,0xf7)

This should come with a comment that states the binutils version that
understands: "lkgs %di" (or however that ends being).