. reduce Solaris vmxnet3 driver logspew.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
}
-/* The following two functions return the number of cores per package
+/* The following functions return the number of cores per package
and set *numThreadsPerCore to the number of hardware threads per core. */
+static INLINE uint32
+CPUIDSummary_VIACoresPerPackage(CPUIDSummary *cpuid,
+ uint32 *numThreadsPerCore)
+{
+ *numThreadsPerCore = 1;
+ return 1;
+}
+
static INLINE uint32
CPUIDSummary_AMDCoresPerPackage(CPUIDSummary *cpuid,
uint32 *numThreadsPerCore)
* 4.0.0-1.7: update 1
* 4.0.0-1.8: patch 3
*/
-#define ESX_VERSION_MAJOR "4"
-#define ESX_VERSION_MINOR "1"
+#define ESX_VERSION_MAJOR "5"
+#define ESX_VERSION_MINOR "0"
#define ESX_VERSION_MAINT "0"
#define ESX_VERSION ESX_VERSION_MAJOR "." ESX_VERSION_MINOR "." \
ESX_VERSION_MAINT
#define DDK_VERSION "e.x.p"
#define VIM_API_VERSION "4.0"
#define VIPERL_VERSION "1.1.0"
-#define RCLI_VERSION "4.0.0"
+#define RCLI_VERSION "4.5.0"
#define VDM_VERSION "e.x.p"
#define VMSAFE_VERSION "1.1.0"
#define VMSAFE_FILE_VERSION 1,1,0,PRODUCT_BUILD_NUMBER_NUMERIC
#define CONFIG_VERSION_MSNAP "8" /* Multiple Snapshots */
#define CONFIG_VERSION_WS5 "8" /* WS5.0 */
-#define VMVISOR_VERSION "4.1.0"
-
-
/*
* Product version strings allows UIs to refer to a single place for specific
* versions of product names. These do not include a "VMware" prefix.
#define CPUID_FAMILY_K8MOBILE 17
#define CPUID_FAMILY_BULLDOZER 21
+/* Effective VIA CPU Families */
+#define CPUID_FAMILY_C7 6
+
/* Intel model information */
#define CPUID_MODEL_PPRO 1
#define CPUID_MODEL_PII_03 3
/* AMD model information */
#define CPUID_MODEL_BARCELONA_02 0x02 // Barcelona (both Opteron & Phenom kind)
+/* VIA model information */
+#define CPUID_MODEL_NANO 15 // Isaiah
+
/*
*----------------------------------------------------------------------
*
- * CPUID_IsVendor{AMD,Intel} --
+ * CPUID_IsVendor{AMD,Intel,VIA} --
*
- * Determines if the vendor string in cpuid id0 is from {AMD,Intel}.
+ * Determines if the vendor string in cpuid id0 is from {AMD,Intel,VIA}.
*
* Results:
- * True iff vendor string is CPUID_{AMD,INTEL}_VENDOR_STRING
+ * True iff vendor string is CPUID_{AMD,INTEL,VIA}_VENDOR_STRING
*
* Side effects:
* None.
return CPUID_IsRawVendor(id0, CPUID_INTEL_VENDOR_STRING);
}
+static INLINE Bool
+CPUID_IsVendorVIA(CPUIDRegs *id0)
+{
+ return CPUID_IsRawVendor(id0, CPUID_VIA_VENDOR_STRING);
+}
static INLINE uint32
CPUID_EFFECTIVE_FAMILY(uint32 v) /* %eax from CPUID with %eax=1. */
UPT1_TxStats *txStats;
UPT1_RxStats *rxStats;
- VMXNET3_DEBUG(dp, 2, "getstat(%u)\n", stat);
+ VMXNET3_DEBUG(dp, 3, "getstat(%u)\n", stat);
if (!dp->devEnabled) {
return DDI_FAILURE;