From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0064.outbound.protection.outlook.com [104.47.36.64]) by dpdk.org (Postfix) with ESMTP id 664D97D19 for ; Tue, 2 Jan 2018 11:20:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=tCzA/XJhkEWU1uKH/hnxmeyzBaErMwzbJfELBMcKCso=; b=OO2PZFg2loxnJTS2XoQbUFR91qoaqApmfi1UzVD+f+aWuUaJa2AGe+ODumv1/7kwoSJGfrAO1r3o4vnrBls4HRGNkXRIGO5k1NGranXublqS+9FG4Pr4rcHxHVedA+R8YAK5gpXUpL1WLVZAoAVJ+Y+nqEF+WyHFNO0WfjpkEWk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (115.113.156.3) by BN3PR07MB2513.namprd07.prod.outlook.com (10.167.4.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.8; Tue, 2 Jan 2018 10:20:23 +0000 Date: Tue, 2 Jan 2018 15:50:00 +0530 From: Jerin Jacob To: Thomas Monjalon Cc: dev@dpdk.org, Stephen Hemminger Message-ID: <20180102101959.GA16958@jerin> References: <20171130214720.30098-1-thomas@monjalon.net> <20171230224723.13147-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171230224723.13147-1-thomas@monjalon.net> User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: MA1PR0101CA0043.INDPRD01.PROD.OUTLOOK.COM (52.134.137.29) To BN3PR07MB2513.namprd07.prod.outlook.com (10.167.4.138) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 758ad16e-36dd-488e-3693-08d551ca70aa X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(7168020)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060); SRVR:BN3PR07MB2513; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 3:GQHhfOiee4JFUVCAFzcTLLeVlFxXD2b1Ga8dhhSKLcdcLNAMWbKiAt/xgAIyJwoLdEDmlx3fNWWWkmE0KB8H+KT9C7slbWGSX+XX+IWg09FuHXu6k1IAC1gA2TCvLfQrc/Ruj4gMKr7Nh6hUvHB5ns6lh8jB5o25+osbN1vyecrE2A6Ab/K14IR+xF6i6a8x2zRcWLUS538z5Z3EwpDDR3Q3tSb5S/oyiz7ioXX8qCwVcO7kSDIY/ZrXLYZriu5H; 25:D7tY86YfVdVec2BvYS85EvomV90euy6a13JCMJFSex7GgNJDlqyf3lo2nSaZLRcVLV4xf4ff0X0t2oyjcn/yHsGr8yS0p6gokpNOYRStPgYbw5QNS4bB3gOo4T6yI9ggG4znelIz8uiHEsC+p2dM0TYrdy1f7cbqA+0aAeKRrJ1lDpH6kM731ShffU8f+OhNMxQJX4K4sBq7VeG8VoURRmay0VJ8nENZxDLRyN3lIYaemhunJLNyl0dwDM05okSlQ+PO0Y2IVle5GDfXoCe6Qu1OPjSDoRh/0LkHA4PeRByUXyS5ErmM4yo3U9e6wAddEBuUFJ0rUrf7FvMuPD2QCg==; 31:+rEqlQjYHDe27CX7O2ADbi0QuTQ+ctWneEwWJ9sIsYmCo732+ZA5GN6coBUzeWIFrjT5bFibqS5HjILJJ2Lgp6XulQ2ajGz1s5MgAo1SKmOQUe3M2EcuSVsP4giVRqDGS32xbFs7qMUNcEX9M4QjCtTyexCuhRCiYQlKIzhvvjF7+amXP4c4OCwda8QgS095URfSz1gQW+sf4acMmsX2cwH1PIsnzw2jijT3lMQ32xM= X-MS-TrafficTypeDiagnostic: BN3PR07MB2513: X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 20:N5Ktm4bl85IZ9pj9pmFSNS1I2SBHM9+/ToM4hPWFWu+y+6mRinfsuToaenRLNbDSVFd1OFop3BSFwNyIUdPd483Xh9yYpGnOlWccjGypbVIiKa/qAJRIRw5AiJ+D2RYVeSBdeblH/OgL1DDCy3/V7fJMqERfNzEgH4tqvX7Dftsd3ST7xEluJhoaFO6Z5cotxLZy7yVDFfoHlMKj0E0/ZWtee8deFFx7Bag1ippPmPDetj6AoPFuuGa2I0IYPJTtIeAWL9Gu+R5bCBvRpm9KSHXZNBLh8Gc+dh4Zup9fnswB/TyfGvqvXPxQMmzle967L0oil5dJBPMgCM2icH2GNvcdyFsyUMaGWdWqXcw5u43JUW7XDcr/HAcEPHnsGXx/FTh1pgMvVaavxJScNPDSvo3rujm0YdT0GjEChqAwnbOgzjNMLTljFPePtDVhnov1hypsk+5v1NwTOGhw/hVJ8HFNc3LhIesZ0xA6pucnvyqUE3FQDmOJi/Mn8Jj9sqmmM87mHc1JdigplxrCS96be/sCndg/URWYn0YTFiXjAs0lz+JN6ezcRvDOMxiorIx0aB+Xp9N3MVRRyP0JfyHl6t9uGNhTB8CTQ4uEvylHkZ4=; 4:K4A5pGoyFtgBA4NNWeDG7Rp5v7WEQFmPww53AMq9LrR7hNZ7rkAPG9TaAApmAO4PgHWT2yqkhCFEWLOx83SR4zCLI293c8VYyTm84+uepWK7qqCyeQc4T9Qfv8pcRlNGPNtLCGLud8ZeQYxoGNkD4HJGnXXjoymejxdwtcWb6AEGT/Vy8YImkVIuA84P0QQkCm3G45xMqWCwp7KEipgPlK3kk7yeIzYfiNVL61sXaNO9IRfx3HWPXu5GKylEGd3aO8xXX3x6eB0mDfwd6p9pHbiiEkf9CM9U8/W4JLkpNFuJJTpNOKRm3hE0wpyuH4lY X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(89211679590171); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(3231023)(944501075)(6041268)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:BN3PR07MB2513; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN3PR07MB2513; X-Forefront-PRVS: 0540846A1D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39850400004)(39380400002)(396003)(366004)(346002)(376002)(13464003)(199004)(189003)(16526018)(55016002)(58126008)(6666003)(81156014)(81166006)(16586007)(6246003)(9686003)(8666007)(45080400002)(66066001)(8936002)(8676002)(4326008)(72206003)(42882006)(316002)(478600001)(6916009)(25786009)(2950100002)(7736002)(305945005)(68736007)(50466002)(105586002)(106356001)(55236004)(53936002)(2906002)(97736004)(47776003)(52116002)(76176011)(6496006)(33656002)(33896004)(386003)(83506002)(5660300001)(23726003)(6116002)(3846002)(1076002)(33716001)(229853002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2513; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR07MB2513; 23:gYAXsFI9sY55YS8Ha7hBGgX7DuIGXNCYGA4sxornU?= =?us-ascii?Q?v6Xqzdb00ogkEHvf37MmAuWSkSJ+ah+wQRtwzgLuaon1umFyB8JvCNRgY7F2?= =?us-ascii?Q?PhCs7BL6YyH7vleOzHSX8rFsky8eT4Ox6R8kTJFFak6x5frgvB4jf6G9pty3?= =?us-ascii?Q?roJgTBrhoF3rWuZ7pHaOf3APOICaIjE6qAEIGQGlU0Q+xo5GdqsaZL5EtbSz?= =?us-ascii?Q?8d0KaORzqIZtrQBtL+eD/0s6+dgIE+OE5YFuYluKdio4nje5lCjwsX2/qB9U?= =?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n763drnN4Hkcu7bGwuDlC5J10CDkn6yqogQ12opTR+OHOzmyy127GbEBC7Ni50kffEQrHn2qmO/spvZwWHEsCiwWFo7jCnC8tjkpDS153I6 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jan 2018 10:20:23.4645 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 758ad16e-36dd-488e-3693-08d551ca70aa X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2513 Subject: Re: [dpdk-dev] [PATCH v2] 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: Tue, 02 Jan 2018 10:20:27 -0000 -----Original Message----- > Date: Sat, 30 Dec 2017 23:47:23 +0100 > From: Thomas Monjalon > To: dev@dpdk.org > Cc: Stephen Hemminger , Jerin Jacob > > Subject: [PATCH v2] eal/x86: get hypervisor name > X-Mailer: git-send-email 2.15.1 > > The CPUID instruction is catched by hypervisor which can return > a flag indicating one is running, and its name. > > Suggested-by: Stephen Hemminger > Signed-off-by: Thomas Monjalon > --- > v2 changes: > - remove C99 style declaration > - move code in rte_hypervisor.* files > - add a function to get the name string >>From the new API change perspective, Acked-by: Jerin Jacob