Print this page
XXXX define x2apic feature flag

@@ -20,10 +20,11 @@
  */
 /*
  * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2011 by Delphix. All rights reserved.
  * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2014 Josef "Jeff" Sipek <jeffpc@josefsipek.net>
  */
 /*
  * Copyright (c) 2010, Intel Corporation.
  * All rights reserved.
  */

@@ -161,11 +162,12 @@
         "avx",
         "vmx",
         "svm",
         "topoext",
         "f16c",
-        "rdrand"
+        "rdrand",
+        "x2apic",
 };
 
 boolean_t
 is_x86_feature(void *featureset, uint_t feature)
 {

@@ -1309,10 +1311,13 @@
                                         add_x86_feature(featureset,
                                             X86FSET_F16C);
                         }
                 }
         }
+        if (cp->cp_ecx & CPUID_INTC_ECX_X2APIC) {
+                add_x86_feature(featureset, X86FSET_X2APIC);
+        }
         if (cp->cp_edx & CPUID_INTC_EDX_DE) {
                 add_x86_feature(featureset, X86FSET_DE);
         }
 #if !defined(__xpv)
         if (cp->cp_ecx & CPUID_INTC_ECX_MON) {