[PATCH] lscpu: add s-Par support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Benjamin Romer <benjamin.romer@xxxxxxxxxx>
---
 sys-utils/lscpu.c | 3 +++
 sys-utils/lscpu.h | 1 +
 2 files changed, 4 insertions(+)

diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
index c272dc2..6af49d6 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 e340291..b9aa255 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);
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux