* [PATCH] lscpu: add s-Par support
@ 2015-02-10 21:04 Benjamin Romer
2015-02-11 10:47 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Romer @ 2015-02-10 21:04 UTC (permalink / raw)
To: util-linux; +Cc: sparmaintainer, Benjamin Romer
Adds support for the s-Par firmware's hypervisor leaf.
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-11 10:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-10 21:04 [PATCH] lscpu: add s-Par support Benjamin Romer
2015-02-11 10:47 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox