eal/x86: get hypervisor name
authorThomas Monjalon <thomas@monjalon.net>
Thu, 30 Nov 2017 21:27:01 +0000 (22:27 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 11 Jan 2018 23:39:14 +0000 (00:39 +0100)
commit8f40ee0734c82fa10b5fa62176211ed1c5f71886
tree0b6ab894a999ad4a8cf493cea364ef2f30cbda1f
parent0d5f2ed12f9eb7b5452f66d3fcab19ed24344c0c
eal/x86: get hypervisor name

The CPUID instruction is caught by hypervisor which can return
a flag indicating one is running, and its name.

Suggested-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
12 files changed:
lib/librte_eal/bsdapp/eal/Makefile
lib/librte_eal/common/Makefile
lib/librte_eal/common/arch/arm/rte_hypervisor.c [new file with mode: 0644]
lib/librte_eal/common/arch/ppc_64/rte_hypervisor.c [new file with mode: 0644]
lib/librte_eal/common/arch/x86/rte_cpuflags.c
lib/librte_eal/common/arch/x86/rte_cpuid.h [new file with mode: 0644]
lib/librte_eal/common/arch/x86/rte_hypervisor.c [new file with mode: 0644]
lib/librte_eal/common/eal_common_hypervisor.c [new file with mode: 0644]
lib/librte_eal/common/include/arch/x86/rte_cpuflags.h
lib/librte_eal/common/include/rte_hypervisor.h [new file with mode: 0644]
lib/librte_eal/linuxapp/eal/Makefile
lib/librte_eal/rte_eal_version.map