[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] x86/cpu/intel: Limit the non-architectural constant_tsc model checks


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Fri, 20 Feb 2026 11:58:53 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2VErCTf+x3zse7ZXw6pMHjldFOdikMbOkcUOnjiKh8w=; b=DvLdSj6LODb5D5G+BzuxSgeTAQ+7ma6hbbsUoOnwl7SBo9hfRqFSFSJSc4pdiMPNycsF+XmRkg2dJcnqZYcDGC29iPqKv1YV9UebSnzzdTe8n4Bd/sFvwV2vImGCK0/Cu0BJGtCnJYmzZgaaFnuYNOpHJsdADWD47hDv3qH7PTm7KC7NNDKIj10GBH8MGFjJz+JTQbyp+rJukzX0qPq/mF9icufowzFqTQH85ENrSKv1nbRyS/OCtzrvF7s+4zilNNvQLFHsDCAYsve9sNUfdUzwyeKIC0iKrrwEHDEeVRaCljaYmWE3Gj5Y+z36Ng9Mzhltrp1KRsR+oU6DAeJfUg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Oo2QpABFR3hy2GtsCjCG2vncbGuF5Qx7utDYtbwpRXD35FvD7l/CNrllTUpaBVyWuQ9OrKysphoCzsOuL9mFaeP9E4jSzXq5lIPe47tkthjZypGJEBwGJkVYA2G56oAYEGtGfGbio3Iwu7ktobZNTRFEYBfuAlBlqu6G0UjfIQAKKSlJwhPdKQZ4D3Wb9DiEb7gC/0158EQgZF/Eo97QwcOcVeAhv+wJc8Mq1h/HKYLQ34M5RvRaFJvpuZ9WufEQxwKs0K7ghta5uQ6dcP9hnpyPPuaq3+qCyY2Qe2bLEEuz3fBU5Nm6Z/Vs8JwHwofmPqAX/MdxVcZIuEDPQ58Rdg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, jbeulich@xxxxxxxx, kevin.lampis@xxxxxxxxxx
  • Delivery-date: Fri, 20 Feb 2026 10:59:06 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Fri, Feb 20, 2026 at 10:42:57AM +0000, Andrew Cooper wrote:
> From: Sohil Mehta <sohil.mehta@xxxxxxxxx>
> 
> X86_FEATURE_CONSTANT_TSC is a Linux-defined, synthesized feature flag.
> It is used across several vendors. Intel CPUs will set the feature when
> the architectural CPUID.80000007.EDX[1] bit is set. There are also some
> Intel CPUs that have the X86_FEATURE_CONSTANT_TSC behavior but don't
> enumerate it with the architectural bit.  Those currently have a model
> range check.
> 
> Today, virtually all of the CPUs that have the CPUID bit *also* match
> the "model >= 0x0e" check. This is confusing. Instead of an open-ended
> check, pick some models (INTEL_IVYBRIDGE and P4_WILLAMETTE) as the end
> of goofy CPUs that should enumerate the bit but don't.  These models are
> relatively arbitrary but conservative pick for this.
> 
> This makes it obvious that later CPUs (like Family 18+) no longer need
> to synthesize X86_FEATURE_CONSTANT_TSC.
> 
> Signed-off-by: Sohil Mehta <sohil.mehta@xxxxxxxxx>
> Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
> Link: https://lore.kernel.org/r/20250219184133.816753-14-sohil.mehta@xxxxxxxxx
> Link: https://git.kernel.org/tip/fadb6f569b10bf668677add876ed50586931b8f3
> [Port to Xen]
> Signed-off-by: Kevin Lampis <kevin.lampis@xxxxxxxxxx>
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

Acked-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Thanks, Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.