From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3] eal/x86: get hypervisor name Date: Mon, 08 Jan 2018 19:45:52 +0100 Message-ID: <5926649.YBCP5bObeR@xps> References: <20171130214720.30098-1-thomas@monjalon.net> <20180107222042.24716-1-thomas@monjalon.net> <20180108085418.44286d47@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Stephen Hemminger , Jerin Jacob , Adrien Mazarguil To: Stephen Hemminger Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id C1A6F1B1CD for ; Mon, 8 Jan 2018 19:46:18 +0100 (CET) In-Reply-To: <20180108085418.44286d47@xeon-e3> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 08/01/2018 17:54, Stephen Hemminger: > On Sun, 7 Jan 2018 23:20:42 +0100 > Thomas Monjalon 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 I really don't see any benefit of detecting Xen or OpenVz in DPDK.