From: Benjamin Romer <benjamin.romer@unisys.com>
To: <util-linux@vger.kernel.org>
Cc: <sparmaintainer@unisys.com>, Benjamin Romer <benjamin.romer@unisys.com>
Subject: [PATCH] lscpu: add s-Par support
Date: Tue, 10 Feb 2015 16:04:09 -0500 [thread overview]
Message-ID: <1423602249-24664-1-git-send-email-benjamin.romer@unisys.com> (raw)
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
next reply other threads:[~2015-02-10 21:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-10 21:04 Benjamin Romer [this message]
2015-02-11 10:47 ` [PATCH] lscpu: add s-Par support Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1423602249-24664-1-git-send-email-benjamin.romer@unisys.com \
--to=benjamin.romer@unisys.com \
--cc=sparmaintainer@unisys.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox