Skip to contentSkip to conversation

lscpu: add s-Par support

PATCH Applied Benjamin Romer 2 participants 2 messages Feb 10, 2015 – Feb 11, 2015 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lscpu: add s-Par support

Adds support for the s-Par firmware's hypervisor leaf.

---
 sys-utils/lscpu.c | 3 +++
 sys-utils/lscpu.h | 1 +
 2 files changed, 4 insertions(+)
sys-utils/lscpu.c +3 -0
index c272dc2..6af49d6 100644
@@ -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__) */
sys-utils/lscpu.h +1 -0
index e340291..b9aa255 100644
@@ -17,6 +17,7 @@ enum {
 	HYPER_VBOX,
 	HYPER_OS400,
 	HYPER_PHYP,
+	HYPER_SPAR,
 };
 
 extern int read_hypervisor_dmi(void);
Signature · 1 line
2.1.0
maintainer Applied
#1 lore raw
Quoted 3 lines · Benjamin Romer
 sys-utils/lscpu.c | 3 +++
 sys-utils/lscpu.h | 1 +
 2 files changed, 4 insertions(+)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com