Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5732949ybp; Tue, 15 Oct 2019 04:19:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3sMGexcD0aNTebe4r0YIvA1x7zA62xdPC9OsTH50cTvz77VZJ9t5IYhG3Y8+hZDGfrBMi X-Received: by 2002:a50:9a46:: with SMTP id o64mr33568115edb.191.1571138391648; Tue, 15 Oct 2019 04:19:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571138391; cv=none; d=google.com; s=arc-20160816; b=bqQqTbEPkVN02/P7OxF11yEwvIaPN0P2nfvFjOzQ4rFCyDa3M6fYqIaZb+DO0pBRFw incI3NMlgS/82vM7ImEieyKyIyf8omdSF22azmka4tzKJqU9JQfjsD4laAkO1guBRjAs N4NxFTe41BaY8kteMXUQQtVW3UVTgxoEZbZdvZ+TWFhynx9yCuLoKEd9B68xMlr3r34F H4wmcoYPf0nwkVntdl9KpuQL4FJN0hE5fKJG1qmh0Xya85iJwN9ArFKoWZpgMG0fXmsy npfUbXRN6rfJUL9KHRLZzcQ+i6OusYT4PgYAIGgcLoL0+nAL9JBaA+Gvn5EdUalF03SW 1hqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=0k1UhNt+lnCy4opmNo9Jk1dZr1UqF/QzrkJNC+Z0nRY=; b=rxhTr4G2sQogvO9/J3AkNkazFwbgMe/NZfjYytF83lTbqR7sX7sr1aZTba8WMHZ3a6 ASA8/m2Jh2YDevszvOjUr6VrMdbAt3bMblG/h4afh1GRVjeQFDb+ONe3H4hfFJkVBufQ bu0zrNuzmg+HL/EKKjP6GlsEGvsmVvVQH4uMeF3kmVroImkTvV80TWaJDI5ecB/GvADH Dshi14+BeDokhO9yhjjTDfr8nUMz3f8ouFFL/+XsK0gzfGXT3jCuEEEcc+TWQykb74sO OAltgaeqE7FD/BGZTHU6SLzuFfKXvwvrzOmpGDQzcS7BLI37TSkFTsLjou6o9xU0Kou7 8bog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iFC9tJUZ; 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 d52si12759751ede.370.2019.10.15.04.19.27; Tue, 15 Oct 2019 04:19:51 -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=iFC9tJUZ; 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 S1729889AbfJOJaV (ORCPT + 99 others); Tue, 15 Oct 2019 05:30:21 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39698 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729873AbfJOJaV (ORCPT ); Tue, 15 Oct 2019 05:30:21 -0400 Received: by mail-wr1-f65.google.com with SMTP id r3so22951280wrj.6; Tue, 15 Oct 2019 02:30:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0k1UhNt+lnCy4opmNo9Jk1dZr1UqF/QzrkJNC+Z0nRY=; b=iFC9tJUZqSToJ0033lhSNVo46R+jGHoh0U/T3BNvPE+/yn6Bk0+vfg0/1c3bPzpC6E SLsGVDB3HXBqF/SSUY61mOnYxpcxJfoxWd61W2oNrve2Z95ODT8E+jdIle/2sVpgKLYa x0m9WoNe4xWtEYNuMdbD1uV4innoVvHrKYYahl4s/af6syoEqkcKdAwhwzjb57juHyjo 10RKkBpi/x06srTOxbzIYsG2eaEDw0LmY2qg+UgK3rxqk3c09Bwf09q3gx00h5GWtiob k16dgqUAwtCYlBJQSZ+27D6MA9Lfdh/xjTvLx3rb7Y7b6PVI0LZQVpm1KKmaIo2YAEpB eC4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0k1UhNt+lnCy4opmNo9Jk1dZr1UqF/QzrkJNC+Z0nRY=; b=czM7VHM8ywgGHFpEIP89wxmXKeLy0nwAtCGTy3OpUH6HA9MzSoC6p+i88wxX/CQti7 zcKUHnoU93hT8TmLItZ7pmJQ7nwN+KbTg0CqLqnSBi5RxJsrLuYil8pOGZ2qjPJ62sum Q5gV6cvav068Ytn2LZNz6j4VVjDVTI2nL9BNGpcIk08WXZ9eG1MNrZhbRJ/0RqCB2UI8 l/MF52D0qIMFk+vS/JIqZ2m5r0E8b1s29Z4Z5xC5chEd0/QguIhmtDoC2fftxeP/0Bpe 0A9pzw7thZ3GMYBsTy9bllATxm3Nj1y9mknugEcmDEdGTbajXRDeprRlEHFCLhFfO06l vr7g== X-Gm-Message-State: APjAAAUmmXxk92hQGDjU3ysg2aOQIa78jTkyN58iDnKha+ComPNj88NI fZKRALJtC4/16heRWqh/E3SYcA2yaALIeg== X-Received: by 2002:adf:9102:: with SMTP id j2mr27723909wrj.136.1571131818356; Tue, 15 Oct 2019 02:30:18 -0700 (PDT) Received: from andrea.corp.microsoft.com ([2a01:110:8012:1012:8d40:cc61:bfff:65c2]) by smtp.gmail.com with ESMTPSA id 63sm31786877wri.25.2019.10.15.02.30.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 02:30:17 -0700 (PDT) From: Andrea Parri To: linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, x86@kernel.org Cc: "K . Y . Srinivasan" , Haiyang Zhang , Stephen Hemminger , Sasha Levin , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Michael Kelley , Vitaly Kuznetsov , Dexuan Cui , Andrea Parri Subject: [PATCH] x86/hyperv: Set pv_info.name to "Hyper-V" Date: Tue, 15 Oct 2019 11:29:37 +0200 Message-Id: <20191015092937.11244-1-parri.andrea@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michael reported that the x86/hyperv initialization code printed the following dmesg when running in a VM on Hyper-V: [ 0.000738] Booting paravirtualized kernel on bare hardware Let the x86/hyperv initialization code set pv_info.name to "Hyper-V"; with this addition, the dmesg read: [ 0.000138] Booting paravirtualized kernel on Hyper-V Reported-by: Michael Kelley Signed-off-by: Andrea Parri --- arch/x86/kernel/cpu/mshyperv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c index 105844d542e5..c7d1801fa88b 100644 --- a/arch/x86/kernel/cpu/mshyperv.c +++ b/arch/x86/kernel/cpu/mshyperv.c @@ -154,6 +154,8 @@ static uint32_t __init ms_hyperv_platform(void) if (!boot_cpu_has(X86_FEATURE_HYPERVISOR)) return 0; + pv_info.name = "Hyper-V"; + cpuid(HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS, &eax, &hyp_signature[0], &hyp_signature[1], &hyp_signature[2]); -- 2.17.1