Messages in this thread | | | From | "Li, Xin3" <> | Subject | RE: [PATCH 6/6] x86/gsseg: use the LKGS instruction if available for load_gs_index() | Date | Mon, 10 Oct 2022 04:32:34 +0000 |
| |
> > > There are not that many call sites, so using something like this > > > (incorporating Peter Z's suggestion for the exception handler) would > > > be better from a code readability perspective vs. a tiny increase in code size. > > > > The existing approach patches the binary code thus we don't need to check it > at runtime. > > static_cpu_has() uses alternatives to patch the branch, so there is no runtime > check after early boot. >
Sorry, didn't know it, thanks for point it out.
If we prefer static_cpu_has, are you asking to replace all alternative macros with it?
Xin
| |