Print this page
9600 LDT still not happy under KPTI

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/os/mp_startup.c
          +++ new/usr/src/uts/i86pc/os/mp_startup.c
↓ open down ↓ 2046 lines elided ↑ open up ↑
2047 2047  /*
2048 2048   * The following two routines are used as context operators on threads belonging
2049 2049   * to processes with a private LDT (see sysi86).  Due to the rarity of such
2050 2050   * processes, these routines are currently written for best code readability and
2051 2051   * organization rather than speed.  We could avoid checking x86_featureset at
2052 2052   * every context switch by installing different context ops, depending on
2053 2053   * x86_featureset, at LDT creation time -- one for each combination of fast
2054 2054   * syscall features.
2055 2055   */
2056 2056  
2057      -/*ARGSUSED*/
2058 2057  void
2059      -cpu_fast_syscall_disable(void *arg)
     2058 +cpu_fast_syscall_disable(void)
2060 2059  {
2061 2060          if (is_x86_feature(x86_featureset, X86FSET_MSR) &&
2062 2061              is_x86_feature(x86_featureset, X86FSET_SEP))
2063 2062                  cpu_sep_disable();
2064 2063          if (is_x86_feature(x86_featureset, X86FSET_MSR) &&
2065 2064              is_x86_feature(x86_featureset, X86FSET_ASYSC))
2066 2065                  cpu_asysc_disable();
2067 2066  }
2068 2067  
2069      -/*ARGSUSED*/
2070 2068  void
2071      -cpu_fast_syscall_enable(void *arg)
     2069 +cpu_fast_syscall_enable(void)
2072 2070  {
2073 2071          if (is_x86_feature(x86_featureset, X86FSET_MSR) &&
2074 2072              is_x86_feature(x86_featureset, X86FSET_SEP))
2075 2073                  cpu_sep_enable();
2076 2074          if (is_x86_feature(x86_featureset, X86FSET_MSR) &&
2077 2075              is_x86_feature(x86_featureset, X86FSET_ASYSC))
2078 2076                  cpu_asysc_enable();
2079 2077  }
2080 2078  
2081 2079  static void
↓ open down ↓ 44 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX