From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) by dpdk.org (Postfix) with ESMTP id 957448E01 for ; Tue, 2 Jan 2018 17:34:08 +0100 (CET) Received: by mail-pl0-f67.google.com with SMTP id 1so27484210plv.0 for ; Tue, 02 Jan 2018 08:34:08 -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=eDbX+y/R4+zbPUWUoTufAPMNi5werL7CODpigHlS0bI=; b=0oiBMMiabDgK8UD5KeM2WsrhhBq/Qc7zPpEGkgKY9iGEtEGjD5hp07H6NcQctSo/t+ 9ihH5MJT7uddj/W+PPkLx5JABctqLIhtdVn/e9rnIDe4BHaCJhxPciNnB6evwE/27nyl U7BDFn2eI3oPxZOsy49e4gVXIs+kq3Z3rg6j+JA3vdr7NpDT1V+XmulS86+31iUukHMH uYvZyATtILj2Vk4lVE3bwcjWLBncybaYFn05VkZetUKV6Sb5mmby+Yw4Y0iyJYGofh8t hkeFC1RhCB3ut5j+43CExHvE3FqR/Eh270bwIQKS6WBRRBikJfedSFYPsykeJlLJ3sfQ N3Fg== 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=eDbX+y/R4+zbPUWUoTufAPMNi5werL7CODpigHlS0bI=; b=ov5ATNEUdcmzHztRnQIxvEXH7hnaZrfAIwIh/MQ38Gwnvq84LJ0eOWZ1iBFDCt6suH KQdP+G3ic1hPoVX+4gHsxvV4eciD05FTZGlHmnQtKMBtXJXooQf+ZYNzeLG667/jFvVy xAmeI1Her2g/4FxFVV1rf/7dKvLslmoAeF/3kk90rm3oYooFya/XYI+6qpta5UeLGOiB xOurPi3Qf1PeIztCIN11DplqDzsgnVNxO78/fGUEUMT9LV47UimAS44nv3WBOSM6CR1i Plre4MEarXgr+S/64OxdjwQaN8mCxdY055qbuCKTDdgFISDTEbfM3O2Zmfox5WzsLhQu 2YlA== X-Gm-Message-State: AKGB3mKoL4hXrUVqCuc726OI9lly2kgzAWrEzd6InKcqq2Umc5gjLzP9 YxDRhDm5HKQCo50chOhKz46mYYAL2rQ= X-Google-Smtp-Source: ACJfBot5PolBTQJZSfT7zA7J2WoBnT9RF1xKfsRcPMIz7avD+LUL9jqLCsLFqI/jkhKC5Oaih55yxA== X-Received: by 10.84.175.65 with SMTP id s59mr47582073plb.141.1514910847674; Tue, 02 Jan 2018 08:34:07 -0800 (PST) Received: from xeon-e3 (204-195-18-133.wavecable.com. [204.195.18.133]) by smtp.gmail.com with ESMTPSA id i5sm23230917pgp.0.2018.01.02.08.34.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Jan 2018 08:34:07 -0800 (PST) Date: Tue, 2 Jan 2018 08:34:05 -0800 From: Stephen Hemminger To: Thomas Monjalon Cc: dev@dpdk.org, Stephen Hemminger , Jerin Jacob Message-ID: <20180102083405.2ffd9bed@xeon-e3> In-Reply-To: <20171230224723.13147-1-thomas@monjalon.net> 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-Transfer-Encoding: 7bit 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 16:34:08 -0000 On Sat, 30 Dec 2017 23:47:23 +0100 Thomas Monjalon wrote: > 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 Looks good to me. What about Xen?