From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v3] eal/x86: get hypervisor name Date: Mon, 8 Jan 2018 08:54:18 -0800 Message-ID: <20180108085418.44286d47@xeon-e3> 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 Cc: dev@dpdk.org, Stephen Hemminger , Jerin Jacob , Adrien Mazarguil To: Thomas Monjalon 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) In-Reply-To: <20180107222042.24716-1-thomas@monjalon.net> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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