Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1371925pxv; Fri, 16 Jul 2021 07:57:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygzMx/xNg7DXsGZy74hc1oKdl50yZxXCbrVv4k3fqWK/rsLaEQwODd7NMgRhm/a8BjfAri X-Received: by 2002:a05:6402:270d:: with SMTP id y13mr15413437edd.66.1626447420608; Fri, 16 Jul 2021 07:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626447420; cv=none; d=google.com; s=arc-20160816; b=yndDNYYmE0FqlB2ljvxG0em+fjXmzlsuAki+Xvdckf3AitFx2IgUxxouG2eXv9uMLA QXsWjW/yZDfN8F7b8wQjeSHFPlgkDq1KqU5BWg4z8zwJaDEc2YRGKJYeZmsU7jFYwiPt 3+4ps1lWZrP1yzZAD6G8G50NXgWoKwTD0njThi/p641K6iYlGLBCDu1S3ayXP0G5a8jt hNhHlbUjqlWeugMFvJcr7enLaQU5Dp4MLo4IQ3jqC2s2SWuw40wJ7cukS1AyhNH1qLf/ 2ZoGe0WzlYqh8M+nzXjNBPAoG+YXT7rIFZGK4+/hGAH+vMLOnnDrS6llHC8Rel0IyjTH fVdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=m4dmYl9QWacuMWa0aGR6yEQBM9o4/Gc+nSoCDp3XJ0s=; b=WSMB0jUnX0qxzFzdHvnTenOAn2XgjwhCJisX47ovU/BxipUqQnLIVodCdpDy2lq4ZN YQrahwDO/Qp2N8Xpq0zDuFBgDgj2XPglVj35ZncsYEs4oHr4yHlBB86mLddXxRmjY6Dw 0EkGwFp/5MovkRfRRtlK2Q4VkVaPOkZgJ2VXiwvoNIrYRFup6wKYGSBVcol2ECFEoZTF sWsMCnwJujWL9clLw2MrI8HIu8bVu62e7erCgg9rb5eVnvFnfe8gUG5sek3frvU/BGCv dtdj6D6x5oyLUIHLBpruAxrh7h1ExCXUP9sXy1yKa+cL7MtShYM1y/ta8/HDjq15i1H+ ULEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si11408882ejk.550.2021.07.16.07.56.37; Fri, 16 Jul 2021 07:57:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240635AbhGPO4G (ORCPT + 99 others); Fri, 16 Jul 2021 10:56:06 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:36439 "EHLO mail-wr1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240460AbhGPO4A (ORCPT ); Fri, 16 Jul 2021 10:56:00 -0400 Received: by mail-wr1-f41.google.com with SMTP id v5so12447466wrt.3; Fri, 16 Jul 2021 07:53:04 -0700 (PDT) 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; bh=m4dmYl9QWacuMWa0aGR6yEQBM9o4/Gc+nSoCDp3XJ0s=; b=TT8q7YrPw4EOO3cyX0LM5I4kOZBkUyCQXU3Q47kdx/3Zgj8EpqcxLzxWU/1qWDU7bL RAhG0W26jlYM0BhDZ52izBrCe9ksx0l5YzXD43aAM+AwDqu/XIg5U3lW2Z5N51M6aF2m cfjvjiHILZsAp4mzktm4Q6GYZ5b4eOTQfbpmfdLOKNPvMysF8qe6VSApmggorg6ybFCe Q1uB4OUJmlf79cFNiutvfBAfwIw0EdC8nAF1EBjmo0ehUvafnyglmFAhT3yNeQpNAlnE knVYT0lh0b+n25bggODmQuEty1sySo59fTm8MRjzNGIIGBveb3j7y2+vajO5ESOEjybZ 9hDw== X-Gm-Message-State: AOAM530lDrvb0vTBt28DFP6Tav+sgjR7W4noE2nlPBFTcFQ0TLJM5VHm aeeLwlIV/hWkpEBY/va2x1w= X-Received: by 2002:adf:a148:: with SMTP id r8mr12438753wrr.415.1626447183978; Fri, 16 Jul 2021 07:53:03 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id p7sm5910314wmq.5.2021.07.16.07.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jul 2021 07:53:03 -0700 (PDT) Date: Fri, 16 Jul 2021 14:53:01 +0000 From: Wei Liu To: Ani Sinha Cc: linux-kernel@vger.kernel.org, anirban.sinha@nokia.com, mikelley@microsoft.com, "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , linux-hyperv@vger.kernel.org Subject: Re: [PATCH v2] x86/hyperv: add comment describing TSC_INVARIANT_CONTROL MSR setting bit 0 Message-ID: <20210716145301.xsho5zb7cqkgb3zc@liuwe-devbox-debian-v2> References: <20210716133245.3272672-1-ani@anisinha.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210716133245.3272672-1-ani@anisinha.ca> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 16, 2021 at 07:02:45PM +0530, Ani Sinha wrote: > Commit dce7cd62754b5 ("x86/hyperv: Allow guests to enable InvariantTSC") > added the support for HV_X64_MSR_TSC_INVARIANT_CONTROL. Setting bit 0 > of this synthetic MSR will allow hyper-v guests to report invariant TSC > CPU feature through CPUID. This comment adds this explanation to the code > and mentions where the Intel's generic platform init code reads this > feature bit from CPUID. The comment will help developers understand how > the two parts of the initialization (hyperV specific and non-hyperV > specific generic hw init) are related. > > Signed-off-by: Ani Sinha Applied to hyperv-next. Thanks.