From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0138.outbound.protection.outlook.com [104.47.38.138]) by dpdk.org (Postfix) with ESMTP id D9C251B014 for ; Mon, 8 Jan 2018 20:06:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=F8Q0YfJNaa6EvCtcpdq03K0klSuc0D6BkK/iHtGekeI=; b=POKVHRCk7ruP5Y3unK7GTxLnXFuSFZVQyukL5Np3BdE3KUebK8PZ7ZXXWIdVdVej6Wu8gGheWkZe1ZNf9LBiSqM0LW1ylHfnpVmBdoZ55IwR6tmNfw8Z4Qak5p/X+E5+1GIQeQzvz8u2SkgAVqYyEhzgaWkrXVDtAGV+XxXuY6M= Received: from CY4PR21MB0837.namprd21.prod.outlook.com (10.173.192.14) by CY4PR21MB0167.namprd21.prod.outlook.com (10.173.192.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.407.2; Mon, 8 Jan 2018 19:05:59 +0000 Received: from CY4PR21MB0837.namprd21.prod.outlook.com ([10.173.192.14]) by CY4PR21MB0837.namprd21.prod.outlook.com ([10.173.192.14]) with mapi id 15.20.0407.000; Mon, 8 Jan 2018 19:05:59 +0000 From: Stephen Hemminger To: Thomas Monjalon , Stephen Hemminger CC: "dev@dpdk.org" , Jerin Jacob , Adrien Mazarguil Thread-Topic: [dpdk-dev] [PATCH v3] eal/x86: get hypervisor name Thread-Index: AQHTiAXUnvJ+smSCSESqFMgDYTPEfKNqMpkAgAAfLACAAAV7AA== Date: Mon, 8 Jan 2018 19:05:59 +0000 Message-ID: References: <20171130214720.30098-1-thomas@monjalon.net> <20180107222042.24716-1-thomas@monjalon.net> <20180108085418.44286d47@xeon-e3> <5926649.YBCP5bObeR@xps> In-Reply-To: <5926649.YBCP5bObeR@xps> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=sthemmin@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-01-08T19:05:56.3954251Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General x-originating-ip: [204.195.18.133] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CY4PR21MB0167; 7:r51SJxXvFzhf5342fMxkE2eVnFeZcRBfODFzIqKCQGrYKt6/0GNgieArFjrau7xHESk86rxp4Inqu8CjkdGitfVEUbWjlTKwhwqnAS2IhiVmFzUr08WPEV/erlFoFmBFp+iYMz5KSMw4XieEff7aZUydru0B2g/v0OXn81TWGpCGvLRSdwV3rGzXjZBt5KkamL4izqmsQgIERtE6OQRKx3ddorgURYXzD3YTYajDquyl8dVNVG8UV8DsniZVm1hb x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 6833d052-64de-4819-6a0f-08d556cadac0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020040)(5600026)(4604075)(3008032)(48565401081)(2017052603307)(7193020); SRVR:CY4PR21MB0167; x-ms-traffictypediagnostic: CY4PR21MB0167: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040470)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231023)(944501098)(6055026)(61426038)(61427038)(6041268)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:CY4PR21MB0167; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR21MB0167; x-forefront-prvs: 054642504A x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(376002)(39860400002)(346002)(366004)(39380400002)(189003)(199004)(69234005)(24454002)(13464003)(7696005)(4326008)(53546011)(99286004)(6246003)(22452003)(2900100001)(2906002)(25786009)(76176011)(86612001)(6506007)(33656002)(54906003)(316002)(110136005)(68736007)(105586002)(8676002)(106356001)(10090500001)(8990500004)(2950100002)(9686003)(14454004)(55016002)(3846002)(53936002)(77096006)(10290500003)(3280700002)(6436002)(97736004)(478600001)(81156014)(81166006)(229853002)(305945005)(86362001)(66066001)(8936002)(74316002)(6116002)(102836004)(93886005)(5660300001)(7736002)(3660700001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR21MB0167; H:CY4PR21MB0837.namprd21.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=sthemmin@microsoft.com; x-microsoft-antispam-message-info: 02jbetCplitkxvM5iea58/iPr4756XsEMF2ByLDmLVKzaTMZmdHYgj4PWkFvwp4iRBUMM6dUaDcDcBGrwy2S3w== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6833d052-64de-4819-6a0f-08d556cadac0 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jan 2018 19:05:59.4757 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0167 X-Mailman-Approved-At: Mon, 08 Jan 2018 22:27:17 +0100 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 19:06:02 -0000 My comment was intended as an FYI for future usage. -----Original Message----- From: Thomas Monjalon [mailto:thomas@monjalon.net]=20 Sent: Monday, January 8, 2018 10:46 AM To: Stephen Hemminger Cc: dev@dpdk.org; Stephen Hemminger ; Jerin Jacob <= jerin.jacob@caviumnetworks.com>; Adrien Mazarguil Subject: Re: [dpdk-dev] [PATCH v3] eal/x86: get hypervisor name 08/01/2018 17:54, Stephen Hemminger: > On Sun, 7 Jan 2018 23:20:42 +0100 > Thomas Monjalon wrote: >=20 > > diff --git a/lib/librte_eal/common/arch/arm/rte_hypervisor.c b/lib/libr= te_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; > > +} >=20 > Looking at util-linux for inspiration. >=20 > Xen is "XenVMMXenVMM" >=20 > On PowerPC, the hypervisor type can be deduced from /proc via devicetree. >=20 > 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.