summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.h
diff options
context:
space:
mode:
authorRuediger Meier2014-05-20 13:26:48 +0200
committerRuediger Meier2014-05-29 13:16:32 +0200
commit5bd31c6d6e1e77c2843505601ee6cbb58ac74e9c (patch)
tree360186a54d6ab199490e473369f14fa5562496d2 /sys-utils/lscpu.h
parenttests: add vbox lscpu dump (diff)
downloadkernel-qcow2-util-linux-5bd31c6d6e1e77c2843505601ee6cbb58ac74e9c.tar.gz
kernel-qcow2-util-linux-5bd31c6d6e1e77c2843505601ee6cbb58ac74e9c.tar.xz
kernel-qcow2-util-linux-5bd31c6d6e1e77c2843505601ee6cbb58ac74e9c.zip
lscpu: detect OS/400 and pHyp hypervisors
This patch comes originally from openSUSE / SLE. Author was probably Petr Uzel. Internal SUSE references: fate310255, sr226509 In comparison to the original patch we have slightly corrected iSeries and pSeries detection according to Alexander Graf's comments on util-linux@vger.kernel.org. Maybe we would need to add some more code to detect pSeries emulated by Qemu/KVM. CC: Stanislav Brabec <sbrabec@suse.cz> CC: Petr Uzel <petr.uzel@suse.cz> CC: Alexander Graf <agraf@suse.de> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'sys-utils/lscpu.h')
-rw-r--r--sys-utils/lscpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/lscpu.h b/sys-utils/lscpu.h
index 5dc965001..e34029194 100644
--- a/sys-utils/lscpu.h
+++ b/sys-utils/lscpu.h
@@ -15,6 +15,8 @@ enum {
HYPER_HITACHI,
HYPER_PARALLELS, /* OpenVZ/VIrtuozzo */
HYPER_VBOX,
+ HYPER_OS400,
+ HYPER_PHYP,
};
extern int read_hypervisor_dmi(void);