summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.h
diff options
context:
space:
mode:
authorOndrej Oprala2013-04-22 14:18:24 +0200
committerKarel Zak2013-05-20 16:30:23 +0200
commitfb2627cec4c85e9af30df417e6bda0e98b6cd0be (patch)
tree27909e9cdae1d4afc30808f784e084281fe34c77 /sys-utils/lscpu.h
parentcfdisk: add long options to the command (diff)
downloadkernel-qcow2-util-linux-fb2627cec4c85e9af30df417e6bda0e98b6cd0be.tar.gz
kernel-qcow2-util-linux-fb2627cec4c85e9af30df417e6bda0e98b6cd0be.tar.xz
kernel-qcow2-util-linux-fb2627cec4c85e9af30df417e6bda0e98b6cd0be.zip
lscpu: detect more hypervisor vendors
[kzak@redhat.com: - cleanup coding style, - use path_exist()] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lscpu.h')
-rw-r--r--sys-utils/lscpu.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-utils/lscpu.h b/sys-utils/lscpu.h
new file mode 100644
index 000000000..312038fcc
--- /dev/null
+++ b/sys-utils/lscpu.h
@@ -0,0 +1,21 @@
+#ifndef LSCPU_H
+#define LSCPU_H
+
+/* hypervisor vendors */
+enum {
+ HYPER_NONE = 0,
+ HYPER_XEN,
+ HYPER_KVM,
+ HYPER_MSHV,
+ HYPER_VMWARE,
+ HYPER_IBM, /* sys-z powervm */
+ HYPER_VSERVER,
+ HYPER_UML,
+ HYPER_INNOTEK, /* VBOX */
+ HYPER_HITACHI,
+ HYPER_PARALLELS /* OpenVZ/VIrtuozzo */
+};
+
+extern int read_hypervisor_dmi(void);
+
+#endif /* LSCPU_H */