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

Re: [PATCH v4 2/8] x86/HPET: make another channel flags update atomic


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Wed, 21 Jan 2026 18:55:49 +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=qXLG5js2bmCVC7w+J77wWpSarpQwuBXm6HqW1ce1Dkg=; b=jquJf3CIl9eL4Ndtwict7W6qUIVrrOT8dVzEVITSo4w+Is/X6ehiiAUCXlR5UjWwH2ned2u5kAdmyueM/byJgVso99S9KTegSULtlwAcmUDB3wpEc64o/kR4ZNizLzpGSWNrdwLWgKORclp1anEQrQDswqsBwOj3PhaJeDwfI1F9odwen+Suz//hCA9EN54usIWfA+vGxRnjlmo0/9iVUom1IeqVd5NXtstwI51C1FVVJHakL5rAPxFJLU6kCN5WRHOo2jmobM7UAlwVKmYDDZ8R/9yR+KGgH8ho8VHXbLEFVMwkP/681zY4qbeBalbo3bcNSiR34wBrjwLq0gcn1w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kP2N5f+yNmNDsKLwddFWZHeah5yY7zrnJN7brJdupBuBPgQ6e0uGmZyufD3pkIny4e1O4NP5WNFqmaefiwUZO50NBK181L/mNl9omPptkit0o4n1zOU1o1OGdCuP0gUhfCgCtJCY4eU2iAMPqNYHdXTIiPpblVSAPGtP1DfAn7fpPmmYn+m8ztqJbjakOxgPXPsqJSWFVwGMYA3+STeC67Oel3w1Jbk4R5tkudv8kcX6M0mAl3NZM245cOe6vb6g8IXTRdgXjnV0qOK8b5qvLPN+j0KAYghgsxoc192nH4iEwZTVNMqF6DFmPsYZCMrYp2pZH+WhHKu7Kebo1n8lBA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Delivery-date: Wed, 21 Jan 2026 17:56:08 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Mon, Nov 17, 2025 at 03:37:21PM +0100, Jan Beulich wrote:
> Unlike the setting of HPET_EVT_LEGACY in hpet_broadcast_init(), the
> setting of HPET_EVT_DISABLE in hpet_disable_legacy_broadcast() isn't init-
> only and hence can race other flag manipulation (not all of which occur
> while holding the channel's lock). While possibly any such updates would
> only ever occur when HPET_EVT_LEGACY isn't set in the first place, this
> doesn't look straightforward to prove, so better be on the safe side.
> 
> Fixes: d09486dba36a ("cpuidle: Enable hpet broadcast by default")
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

I also think it's quite likely that hpet_disable_legacy_broadcast() is
not possible to be used concurrently while the setting of the other
flags, that seem to happen in broadcast mode only, but better be on
the safe side.

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®.