From 5bd31c6d6e1e77c2843505601ee6cbb58ac74e9c Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Tue, 20 May 2014 11:26:48 +0000 Subject: 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 CC: Petr Uzel CC: Alexander Graf Signed-off-by: Ruediger Meier --- sys-utils/lscpu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys-utils/lscpu.h') 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); -- cgit v1.2.3-55-g7522