On Sun, 7 Jan 2018 23:20:42 +0100 Thomas Monjalon <tho...@monjalon.net> wrote:
> diff --git a/lib/librte_eal/common/arch/arm/rte_hypervisor.c > b/lib/librte_eal/common/arch/arm/rte_hypervisor.c > new file mode 100644 > index 000000000..3792fe2ce > --- /dev/null > +++ b/lib/librte_eal/common/arch/arm/rte_hypervisor.c > @@ -0,0 +1,11 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright 2017 Mellanox Technologies, Ltd. > + */ > + > +#include "rte_hypervisor.h" > + > +enum rte_hypervisor > +rte_hypervisor_get(void) > +{ > + return RTE_HYPERVISOR_UNKNOWN; > +} Looking at util-linux for inspiration. Xen is "XenVMMXenVMM" On PowerPC, the hypervisor type can be deduced from /proc via devicetree. OpenVz/Virtuzzo can be detected by /proc/vz and /proc/bc