From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0BB8A20E02; Mon, 8 Jan 2018 13:46:18 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 08 Jan 2018 13:46:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=C4QE2zPd93ZbH7Lgh4DAST6NeN fMbEgnh16QcHPUKQI=; b=Xqx0Z72lD4CxTcaY2oHCGEo2yDInp/fmukgsV7gf2Z iuYiHSc5rk3FAp5abv4O9R+B6i9XstFYxTADA4iTIiBbwjV3WojKO83IzNZPE4kf Q+ogvsfUH5ICj7BwmkpIpLilCD6W8Vb5KNiLxAfaosKRaOUycmKs3weVModdKT46 A= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=C4QE2z Pd93ZbH7Lgh4DAST6NeNfMbEgnh16QcHPUKQI=; b=dLqDxMf8UZ5UxG4RRHPx5v QfS98ylb/lxYMwK8+KF4apjG/BJlRqYSt+61MhHAtasu+jyy5CUsyBq1a8UtEQKQ gETixCM8lZ0ERy/2tiI/47MRQCKnFiNDc8f9HMhX3d28dh21IgDJzNXG593iOdNH yVUNziH0GyU/q/+60W5cMi12uzthNyQUPKFaIsmoWzsLGzvVMuooV+1u/mvsC9BD 00f1ROgmhqa1dcNuN6WNN1fcfXHLinz0Lc3XP0bdp8UADfzhUIXlv+kfPzaahVX/ iG7H5jGM7DHPw7P3MpIC+hmV5MqtJvBzZq8VyicAULM0zkcKGbjDJdT0tpCyrgrQ == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id A98782470D; Mon, 8 Jan 2018 13:46:17 -0500 (EST) From: Thomas Monjalon To: Stephen Hemminger Cc: dev@dpdk.org, Stephen Hemminger , Jerin Jacob , Adrien Mazarguil Date: Mon, 08 Jan 2018 19:45:52 +0100 Message-ID: <5926649.YBCP5bObeR@xps> In-Reply-To: <20180108085418.44286d47@xeon-e3> References: <20171130214720.30098-1-thomas@monjalon.net> <20180107222042.24716-1-thomas@monjalon.net> <20180108085418.44286d47@xeon-e3> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v3] eal/x86: get hypervisor name X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2018 18:46:19 -0000 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.