Print this page
10924 Need mitigation of L1TF (CVE-2018-3646)
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Peter Tribble <peter.tribble@gmail.com>

@@ -19,10 +19,11 @@
  * CDDL HEADER END
  */
 /*
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ * Copyright 2018 Joyent, Inc.
  */
 
 /*
  * Basic NUMA support in terms of locality groups
  *

@@ -88,10 +89,11 @@
 #include <sys/kstat.h>
 #include <sys/sysmacros.h>
 #include <sys/pg.h>
 #include <sys/promif.h>
 #include <sys/sdt.h>
+#include <sys/ht.h>
 
 lgrp_gen_t      lgrp_gen = 0;           /* generation of lgroup hierarchy */
 lgrp_t *lgrp_table[NLGRPS_MAX]; /* table of all initialized lgrp_t structs */
                                 /* indexed by lgrp_id */
 int     nlgrps;                 /* number of lgroups in machine */

@@ -518,10 +520,12 @@
 static void
 lgrp_main_mp_init(void)
 {
         klgrpset_t changed;
 
+        ht_init();
+
         /*
          * Update lgroup topology (if necessary)
          */
         klgrpset_clear(changed);
         (void) lgrp_topo_update(lgrp_table, lgrp_alloc_max + 1, &changed);