Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp902767lqc; Fri, 8 Mar 2024 15:46:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCViTzwrrFtXhzY9Umnppw4vhYVoJcGb2r/fb0zo5pMq28SqXBj2iD6z6rwOt2AKmL/pK9O1RAddqPPjrs0BRaYUJ/TEsMQf86QGakG08Q== X-Google-Smtp-Source: AGHT+IELKRCCz+QHpjtjG/xU0N4t8tX93tu8HDwv3wnnz6gayCrizQN2m7bc5MOcWQ/FLWkCkJ1J X-Received: by 2002:a05:6870:d38c:b0:220:c899:5be1 with SMTP id k12-20020a056870d38c00b00220c8995be1mr708307oag.12.1709941596823; Fri, 08 Mar 2024 15:46:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709941596; cv=pass; d=google.com; s=arc-20160816; b=KvH5UonTxM2PAi0jQQmsY1uOmWABLHTWhZj/dcPZp60xKXSTVLFxhcTGUgALIlTGo+ 7qZSNyr0SVvsuhPo+ssf0sloX0uKLjLovyewHLkUeBLzZs67K7KnTSh9TWis24ZkvvLR PVbId/fROp+hY8zaViOF1q9r7bN4fGyluXHylxBH+I07VUUr36RLvohOTYPX5NA9vUBP DGFZ0jVDpmYceD+6utV20zwGDXtEUEh7YG9wnkLCYUZa92LW2h0iJIAZNANCfHLIawlu kR18HVwIv1xD8DvPAiZcoJKvlzkf2btB/1vwZrUr12xjIVImxDrXfhqA4xqsB+He8Rwo YUcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=76NFj9Gkc1SKp3kfNLEvRY05NDu3hYQydbgadx/9sM0=; fh=V6SonCEegQWK3h7Hei8mquXEFxiDiUtzDo8FIaF1o3o=; b=qieEJ0mwuGpW8TXyIFRot7qTV2DZ3phvhVkOAKjzKB9H3B2PfhCvQirpy5AuZKxH+3 kJ6FgJ9sFf50+B4Q0LT34pc8+Z/Uj/dJSh5+1Yee7fAd27Vew8YV/T75/fw69meXAqHk XolINbfjVC/uOlhlDmmSq+oweUv8/GV4jJ0gBV0/R5ooq0ovB8A1IEhM9mk1ddtbpgOp 29v4cXi/09FJ2uXXprZ8ZNLmNlk4zdYNDWm9Z4jKzzZLa2y5Ko06qMWA5VllH5L9Kclz jxYhx7c26CTE+0L1nAK1xnyg4L+MHfkgi2hPH5+y3Gub40kFQ55XrC4YxfJitB59vOOn /Wsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-97694-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97694-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e26-20020a63745a000000b005d760c23e09si478976pgn.146.2024.03.08.15.46.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 15:46:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97694-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-97694-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97694-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7B37B282939 for ; Fri, 8 Mar 2024 23:46:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 886473CF5E; Fri, 8 Mar 2024 23:46:30 +0000 (UTC) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C33BD1E4BE; Fri, 8 Mar 2024 23:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709941590; cv=none; b=AyU4Ujfrm6uvC+k60UVgPsDLadM03mj+8OJ2qHB9Udwi0dRWHGaVZjr+JBBDpthrvzutlUCU+guEqNna1Rc5PnVHYsdqMhy2odgOf0sh2Pzn4AKTF5/AZirSLA7CpPTL5fnAhe23LK2crfUvY8bmUdOfMgTiq/dvG7tHk+77NF8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709941590; c=relaxed/simple; bh=Q5QvRrR4aFEcW9c7Wwqrc/coRB4mf2hczN6lERPbiy0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KPJpq/2wMTJbe3ffRpB9lVrFnRhB7LXzdciPimSpJzUrbCWhY2BeZcBS3HzKYHp/9T04a3yPx3LZ3hsb51WscGx/nk+CHKYJdrvfAypzj+asuuAebm+iRzDk2yQbKhWcRb3s9+s/OJSlTSSrEhN+CICL/n8Gr2cRYm9mzb+PRlc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6e66e8fcc2dso1055890b3a.3; Fri, 08 Mar 2024 15:46:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709941588; x=1710546388; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=76NFj9Gkc1SKp3kfNLEvRY05NDu3hYQydbgadx/9sM0=; b=EUvTtU7UtcywpudUe7SDSWWSXBvu3QoL5S4ahB2J+CnZzsv3XvMht0IoJxR4wgqC8/ kqI1Ppw1B3Myqen+j7RZkaWgROA49c9wMJRFFB/8Pu7//4iI6XXezcz5fTONDfZrxt+/ KpmijbyhdyC3YZX0sOwGYkDrpOKaDxKqivRdboD3mEQ8ED52EVt0/NT6DBYtsyC4tOqg hVuj5S9YUgRYe84B6l8RxpJqK2RkZglgtJII5MyPkvxvKNSXYDN3CJHkYgzaai+eSgty CjQUQTHwIYD8phZXvw3lkhln4KrYfyede7xqBNOfP2ZOKpNnY6tGXdYreFsV280ekTLp lfkw== X-Forwarded-Encrypted: i=1; AJvYcCWOE/my9NKYh9umU60l6cr9oZPBwXhWHQb96ZZ4EPiQInsLYODJHGZkc78QSaPjMWIVTC+JCmERq8kWGy4xlCKtJIVQOKIQG6TrOwd3kqoHNj7G4S8Aq5Wmpri/SwdfExXCocBO/nVHvlDB X-Gm-Message-State: AOJu0YxMkL9rojQEGC/c4z6fbC8+7NH1g9ovr1moL8e6u666Rr8IfX0S YyRCNE5xyVWJ6gy/8dXk+GwZUIX+gsYDhC49XTV3ughXljwzdWm0 X-Received: by 2002:a05:6a00:22c5:b0:6e6:4705:a081 with SMTP id f5-20020a056a0022c500b006e64705a081mr553341pfj.33.1709941587906; Fri, 08 Mar 2024 15:46:27 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([20.69.120.36]) by smtp.gmail.com with ESMTPSA id bn22-20020a056a00325600b006e6795932a4sm93481pfb.80.2024.03.08.15.46.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 15:46:27 -0800 (PST) Date: Fri, 8 Mar 2024 23:46:22 +0000 From: Wei Liu To: Michael Kelley Cc: Nuno Das Neves , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "haiyangz@microsoft.com" , "kys@microsoft.com" , "wei.liu@kernel.org" , "decui@microsoft.com" , "catalin.marinas@arm.com" , "tglx@linutronix.de" , "dave.hansen@linux.intel.com" , "arnd@arndb.de" Subject: Re: [PATCH v2] mshyperv: Introduce hv_get_hypervisor_version function Message-ID: References: <1709852618-29110-1-git-send-email-nunodasneves@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Mar 08, 2024 at 03:58:45PM +0000, Michael Kelley wrote: > From: Nuno Das Neves Sent: Thursday, March 7, 2024 3:04 PM > > > > Introduce x86_64 and arm64 functions to get the hypervisor version > > information and store it in a structure for simpler parsing. > > > > Use the new function to get and parse the version at boot time. While at > > it, move the printing code to hv_common_init() so it is not duplicated. > > > > Signed-off-by: Nuno Das Neves > > Acked-by: Wei Liu > > Reviewed-by: Michael Kelley > Applied to hyperv-next. Thanks.