[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 9 Sep 2021 16:16:50 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: Lai Jiangshan <laijs@...ux.alibaba.com>,
Lai Jiangshan <jiangshanlai@...il.com>,
linux-kernel@...r.kernel.org
Cc: Andy Lutomirski <luto@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
x86@...nel.org, Dave Hansen <dave.hansen@...ux.intel.com>,
Peter Zijlstra <peterz@...radead.org>,
Dave Jiang <dave.jiang@...el.com>,
Ben Widawsky <ben.widawsky@...el.com>,
Dan Williams <dan.j.williams@...el.com>,
Arvind Sankar <nivedita@...m.mit.edu>
Subject: Re: [PATCH 25/24] x86/traps: Rewrite native_load_gs_index in C code
Come to think about it, I think it would be better if we were to
incorporate the X86_BUG_NULL_SEG null segment load in into the main
native_load_gs_index() code while we are swapgs'd anyway. This
simplifies the code further, and should avoid calling
native_load_gs_index() twice if this bug is enabled.
(This is the traps.c code only; removing the now unnecessary instances
is left as an exercise for the reader...)
-hpa
View attachment "traps.diff" of type "text/x-patch" (1271 bytes)
Powered by blists - more mailing lists