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

Re: [PATCH v2] x86: Use 32-bit counter for TLB clock on debug builds


  • To: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Tue, 13 Jan 2026 15:17:29 +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=58bMqXgpPTnxmQ/kqdDpy8DKpQ6x+tmiCu3NwDspKi4=; b=Glsaxbch5cvjwV6eKLlN8k1F+zLnxquljOzlxzxRtnltAqgZsos2nzJXSfSqm2+UcBmgde2KUK5GO/jqs3snxJ+CI4mr8oEbnJAaqAL8I2nFEPbugNtksTMjBqgamLxJ1FTUmcGwTBri2foRusGgIXvIzM2JpYzWfUs+kkSNwEF0+w+qtq/XbW6mr4jCQjOqSgGGUzGhuIaFFbhSaWJqI7Xs0vFaQ+cNWcQhcgPfmdOmqRsfsp/Z97Ax6jr8p1R9rc1snJ6LnucGCtrk52ZmslYR6io2Do5wQPM8H+LunFwNizOHIOL6hWK8R7Gz69OD8vqY+tmLgjUq/RjszKi2bA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WbUcC+3Aygqb9EmFy6w1uwPsnq/vTRE0nliwTxMmrNrrACECXyGhBZ4yRgdxkscnGMQl1xaPZS7DKYjk02ao7MCTaGUfNx6bfoFbpVKIBCyyhkpSR1lsj89C+JbAmDSPL8c6ZSHj4CvL65uopOjG9W7hKKgc4ehZINnsQLWz4CBULCSB3kzg4KJwjvUHHcCQ9BEeehRyQOi1rTPo4yrOGwXme8lPbgApArN1M1JoCDYIavGFGj5Gi3FJpcewYOK8dU8pJ4NTqBQKa4iBLhLbR+0Vx0v25IuaneNgLKj0oDDtb4XQZ+o/7WQWUR+bjA2LR+cOFERF/D8s5HhlGvLT1w==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Delivery-date: Tue, 13 Jan 2026 14:17:46 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Tue, Jan 13, 2026 at 01:09:58PM +0100, Alejandro Vallejo wrote:
> Debug builds traditionally ship with a 10-bit counter for the TLB
> clock. This forces global TLB shootdowns with high frequency, making
> debug builds unsuitable for any form of real time testing.
> 
> Remove this quirk, unifying release and debug under a wide counter.

I wonder if it makes any sense to provide this as a Kconfig tunable,
set to 32bit width for both debug and release builds?

Not sure whether there's a ton of interest in stressing the flushing
however, and by then it's a small hack to adjust the code itself.

Regards, Roger.



 


Rackspace

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