Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5750843ybp; Tue, 15 Oct 2019 04:36:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9N/kR6x9mMEvnkE0mhGkqVKgJ+ZJXb6JHXJryXiwoB8xkf3kCi27om/1JQF0caOOYP3Lm X-Received: by 2002:a05:6402:2d2:: with SMTP id b18mr32799686edx.264.1571139365109; Tue, 15 Oct 2019 04:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571139365; cv=none; d=google.com; s=arc-20160816; b=Tdn4c61WC2uFRBk7lEyuy7JjgsQ76k0oQcSpTHED9Uit75vGFUbh7MNKFMpcE9HFNH tl7kKc3L4XM7bOHa075BYmx2loC3G2ilie0dh/YxsnGKoN7f1YRR+3OPI/kLqAfI452N +NCjjXg5DkZ5uSDv2GO7JaQxvFiQdCx4e1O0pg7x53fnQOv6UnUWJN1/29U1HIaEQ1Si cFEeay9yHk0dKClIj4toHuvaNybWK0wuln9bkshDpYIXuihAwqyZhqR6SV4bN9Zvfmkw 9xOOCbNkbHc1r+oSz2I7FYmQTR6y1LG5PrmyuR7aBMd3rQ/ICKGnT7v9JUq2NZ5TbxpT WonA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Hs18HuLQlgBABYesmo7IPm5KuxOAJYfK6ga//A893aY=; b=s5wyKylinFYvgCGCxE6yps7gVWIzkYURuxe+y0ZxdJs+czbVZDeibPDmuhcPrYWTXc efxxIlDRE+ACZOxUUcmJ7R7/IDexuhYRT4L1mRpGWIrCJE6LPFH1haWYayrFi+WCJnob lY3mSjrjv6mTG81b045ro4C43QaV0lBjyz6mR58ZHK5b/uMBcsw3ORbGp1Rs2QeqdryI 00lqPFgzd+8wwa2M6g+bacOQtYUj2+A2w7h/YYEh1MQk7Wv5aenSLmqUAaUmFL/ke0hM vybcFAcgrjtI3pprlUjj2RyCy3PN+9EmqQAZJfVi/xFSyizf8+yGXPrHh8BFagKR0ewh ixaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OkgWOtem; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gh16si12625146ejb.150.2019.10.15.04.35.41; Tue, 15 Oct 2019 04:36:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OkgWOtem; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730474AbfJOKZg (ORCPT + 99 others); Tue, 15 Oct 2019 06:25:36 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46869 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728185AbfJOKZg (ORCPT ); Tue, 15 Oct 2019 06:25:36 -0400 Received: by mail-wr1-f68.google.com with SMTP id o18so23104170wrv.13; Tue, 15 Oct 2019 03:25:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Hs18HuLQlgBABYesmo7IPm5KuxOAJYfK6ga//A893aY=; b=OkgWOtemW9nA/ZipwE4kOKLVI4eGEGdocKmL4HLlgOULjPLJIUK5OJfZyJWNEl5c8v qmSd+yrQm2a9vQNujY32vp3w4ZCWdXdGBHJpI+o0IXJjJS8bVtIrM9ehDwfB6ZD6lbTX sHKgiMQfS+Q6yB5VOvrGmtc54YveKPHy6qee3HB43Mu3Tsiq+Jn2dmhHDDLwbFJMojhT XZMgEFxG4AiJIfb0VwJ5+z9fuf0NbjAea2piH63VJm38SZpSZrYiBVHrmEkv54PV2pen yrB+OLcLMIE8UiVPoubhjXW0vSSRogWRjPLsyi8GYWHDXHZMazQAoUv5h8tyE5VFjv+i +rjQ== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Hs18HuLQlgBABYesmo7IPm5KuxOAJYfK6ga//A893aY=; b=MDrs9uEPp0kiXydnIjACKitKGUEp7RRcIAaY2lv5+77HBg/mjjWIp0vKxGZGm9r9nd W7UC/6h6NRW+D+sI1l7gtSaCkvIlnrHjy3cXVOQIhL1YC+9THWj9ZaCHYpuRJWCxCIfG lVyPzKCkzjsgv7BCUN1kXksfrgKTYL/+X3LWsxPScJgipT2BC4Nmhlz4sPGdp6gMQqdl f6hhXtCx5Y5ST3txoa+6FZS9a0tr8vpPZuyMsGg7BAcBJGUigWfcIK/kBYW82v3uVE5x irKD1efc2IBEOQ52aSM37MkUQuo6qvo8Tq7TCCKggPRq2yBnQJ8gXL+C7029CLqs0oHr Q1mg== X-Gm-Message-State: APjAAAWlLpvpFMmALEMaJ7UGdgjh0jZ4puYQtunv2Ti1sDljM0vgPyQr XATFaSj2MzLF/zZ6h3brOnE= X-Received: by 2002:a5d:518f:: with SMTP id k15mr28782850wrv.328.1571135134302; Tue, 15 Oct 2019 03:25:34 -0700 (PDT) Received: from andrea.guest.corp.microsoft.com ([2a01:110:8012:1012:8d40:cc61:bfff:65c2]) by smtp.gmail.com with ESMTPSA id o18sm1779059wrm.11.2019.10.15.03.25.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 03:25:33 -0700 (PDT) Date: Tue, 15 Oct 2019 12:25:27 +0200 From: Andrea Parri To: Wei Liu Cc: Linux Kernel List , Linux on Hyper-V List , x86@kernel.org, "K . Y . Srinivasan" , Haiyang Zhang , Stephen Hemminger , Sasha Levin , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Michael Kelley , Vitaly Kuznetsov , Dexuan Cui Subject: Re: [PATCH] x86/hyperv: Set pv_info.name to "Hyper-V" Message-ID: <20191015102527.GA12412@andrea.guest.corp.microsoft.com> References: <20191015092937.11244-1-parri.andrea@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > @@ -154,6 +154,8 @@ static uint32_t __init ms_hyperv_platform(void) > > This function is for platform detection only. > > > if (!boot_cpu_has(X86_FEATURE_HYPERVISOR)) > > return 0; > > > > + pv_info.name = "Hyper-V"; > > + > > At this point we're not sure if Linux is really running on Hyper-V yet. > > Setting pv_info.name should be moved to the init_platform hook, i.e. > ms_hyperv_init_platform. Thank you for the review, Wei. I'll move this to the init_platform hook and re-submit shortly. Thanks, Andrea