From: Benjamin Romer Date: Tue, 10 Feb 2015 21:04:09 +0000 (-0500) Subject: lscpu: add s-Par support X-Git-Tag: v2.26~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4597b69249be90c248de0f4a3270901c4762f4a9;p=thirdparty%2Futil-linux.git lscpu: add s-Par support Adds support for the s-Par firmware's hypervisor leaf. Signed-off-by: Benjamin Romer --- diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index b6f1d6e0dd..fd94d1a83f 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -107,6 +107,7 @@ const char *hv_vendors[] = { [HYPER_VBOX] = "Oracle", [HYPER_OS400] = "OS/400", [HYPER_PHYP] = "pHyp", + [HYPER_SPAR] = "Unisys s-Par" }; const int hv_vendor_pci[] = { @@ -585,6 +586,8 @@ read_hypervisor_cpuid(struct lscpu_desc *desc) desc->hyper = HYPER_MSHV; else if (!strncmp("VMwareVMware", hyper_vendor_id, 12)) desc->hyper = HYPER_VMWARE; + else if (!strncmp("UnisysSpar64", hyper_vendor_id, 12)) + desc->hyper = HYPER_SPAR; } #else /* ! (__x86_64__ || __i386__) */ diff --git a/sys-utils/lscpu.h b/sys-utils/lscpu.h index e340291941..b9aa25562e 100644 --- a/sys-utils/lscpu.h +++ b/sys-utils/lscpu.h @@ -17,6 +17,7 @@ enum { HYPER_VBOX, HYPER_OS400, HYPER_PHYP, + HYPER_SPAR, }; extern int read_hypervisor_dmi(void);