Re: [patch V5 02/38] x86/entry/64: Use native swapgs in asm_native_load_gs_index()

From: JÃrgen GroÃ
Date: Wed May 13 2020 - 03:12:12 EST


On 12.05.20 23:01, Thomas Gleixner wrote:
When PARAVIRT_XXL is in use, then load_gs_index() uses
xen_load_gs_index() and (asm_))native_load_gs_index() is unused.

It's therefore pointless to use the paravirtualized SWAPGS implementation
in asm_native_load_gs_index(). Switch it to a plain swapgs.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Juergen Gross <jgross@xxxxxxxx>

Acked-by: Juergen Gross <jgross@xxxxxxxx>


Juergen