From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by dpdk.org (Postfix) with ESMTP id 36D3C1B1BF for ; Mon, 8 Jan 2018 17:54:28 +0100 (CET) Received: by mail-pf0-f193.google.com with SMTP id e11so2633590pff.6 for ; Mon, 08 Jan 2018 08:54:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HbKOAPahjrLfnheeBDg2UY1xTKOlEDOgWs9Bb1SzCFs=; b=Kw9V5xbyNesDnAen7XzSPb+yUGZJlnli/owliKBTMCbHv+9HA7l3wjgDtKvkrYB8RY rVwVj/X+u757M0tHee/Nn8bNnfpjzh/IwjytA0QIBSptRXLuS+2zp2Z1R6/FN+7t8eQG Yv+VhSv6XrNQGqEXxj5QrB8UMGNbkmglghPxnSKDlklHf5eTMtpmDco3T0FBr5Nk4yKi N9E0CN1pGwL330TsvMLK5uU76hUsGQpwbxAkWtvAeatN25dREsnaRwxQXOnqGO2WeZJX spSaV9a9iPbC+vLtTi73C+BvpwruIZp5+8Y5SdcH7QaEsdLOS+vpVfKdFQy9MV+2+xhl A2jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HbKOAPahjrLfnheeBDg2UY1xTKOlEDOgWs9Bb1SzCFs=; b=cnH3X2Tmo36iPeDjuY+S3/lsjoY1rs3sSYXPzzyc3xku3/9e9OwR6Xe+YnsfXS8d3Z +jS+x0qKw9siVLzL5OlBpj0FqHpxufIASCu2ktk0CsspZ1lySi4N+z0SMEhl7yT3+xGi BK1/Ky2jznf9SKTi81AucRYQ3v06b2wmNg2XZctIQlijY6HSgc/T7YnEWpbJEqPdKoUX s95YiekXb54E3Dbo/uNVNuEapN5L1RJkraIOirOW63mOw8ukwifCFCe4KkwhI/AAsGNr W8Xjc6XScxFE9iDtnSYKtauszB3jlROWT/ww8IGN4TtpuK/y436zMtl0yBUVbzrSzsck pO0w== X-Gm-Message-State: AKGB3mJwupZQGTEZEjP140CZNWSBhrRrYDMT085gG+OOyV9cOHEYbGv2 b5W072zOTa1eKZKAlfxK+zH7yw== X-Google-Smtp-Source: ACJfBosIBtEAWcizOz8sgrOuPsxfw4V8X7oPgXT+z7QBZrHl5N3RE50WsBpx7OPfuJrwOxK+WJ/NuA== X-Received: by 10.101.101.1 with SMTP id x1mr10316880pgv.347.1515430468049; Mon, 08 Jan 2018 08:54:28 -0800 (PST) Received: from xeon-e3 (204-195-18-133.wavecable.com. [204.195.18.133]) by smtp.gmail.com with ESMTPSA id v9sm14583247pfj.88.2018.01.08.08.54.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Jan 2018 08:54:27 -0800 (PST) Date: Mon, 8 Jan 2018 08:54:18 -0800 From: Stephen Hemminger To: Thomas Monjalon Cc: dev@dpdk.org, Stephen Hemminger , Jerin Jacob , Adrien Mazarguil Message-ID: <20180108085418.44286d47@xeon-e3> In-Reply-To: <20180107222042.24716-1-thomas@monjalon.net> References: <20171130214720.30098-1-thomas@monjalon.net> <20180107222042.24716-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 16:54:29 -0000 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