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

Re: [PATCH 2/2] x86/time: add CF-clobber annotations


  • To: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 1 Mar 2022 15:47:55 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=QGJRUDfOJhcjOsQNVB6rBpzXdwkRo0EE1W5f+8ArDks=; b=ZCfp8o0SoDZDokIcdHGiiLm/0cw3bgUwVuCTuh07715YQlT7me0s3xTsPGhRajnNEXHP7VSrKD6ejQbnryXtK46vqejvEqNy6lW0TAOK08aDy9TQWFOwlXDQJ77A4g2PPSqnb/wst3OMCtxbBipywChkmq90XJZJjnABpxnnCRJeqIq9+zzh97riLHkwKPn5HGX2ERufoIfBHvNDMFzdOJyXzSN7XShxBYcM0oigN950de2BsbX6VyB/15VpRw1zea25zfOnAyxM68H6Ut4JB1E0qkF4U7Eoub1j8YOqizkxB6XrB+GU/vRuIEhj54IMIau8MV1uvPyeHtaDUyUBvg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UrD9zzenl5+1NjBkiJMigWlPcPtH2MiG2GQSAym8C0ACz+MMFPCLtfYSTtWfqqXgHHwKrRswlJIFMumTCPZ+596Dzt1NSfBLuiAXUIYXCzeZf4u92e6cSO951KVHWAf97XHrkrmxW2guwQowEaaofC/uZufzgSsTEWVNe23z8nDGDdmB/u8LDWDZ4j+9HpEneMc+kWfqg1c2vbH3fBenWM0FBZs0G+niMxj7sx3wcB2Dk2xZIeAOnM4ksdqvOfMhVeMtKWmcI9pgjkn+1b/oLyr3EHdfm4yxK8Q0W8NtXHJepx+1c43Yja9PQi4OWvnWXHxwumzf6Dz2f6RvUUwbJg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 01 Mar 2022 14:48:03 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 01.03.2022 15:35, Andrew Cooper wrote:
> On 01/03/2022 14:24, Andrew Cooper wrote:
>> On 01/03/2022 14:18, Jan Beulich wrote:
>>> On 01.03.2022 14:18, Andrew Cooper wrote:
>>>> On 01/03/2022 11:06, Jan Beulich wrote:
>>>>> With bed9ae54df44 ("x86/time: switch platform timer hooks to altcall")
>>>>> in place we can further arrange for ENDBR removal from the functions no
>>>>> longer subject to indirect calls. Note that plt_tsc is left untouched,
>>>>> for not holding any pointer eligible for ENDBR removal.
>>>> I'd be tempted to include it, for consistency sake alone.
>>>>
>>>> It is less likely to go wrong in the future if another hook is introduced.
>>> Can do, sure.
>>>
>>>>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
>>>> With the commit message, I'm not not certain if this is linked to the
>>>> previous patch.
>>>>
>>>> Overall it looks fine, but I'd like to get clarity on this point.
>>> Converting read_tsc() was discussed (with Roger) earlier on, so I'd
>>> view this as a separate change. As said in reply to your comments on
>>> the 1st patch, how exactly read_tsc() looks like is orthogonal to
>>> the changes here at least as long as it doesn't live in .text.
>> Ok.  Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> 
> Actually, you probably want to move plt_src into __ro_after_init along
> with this change.

I'd view this as an independent change. Perhaps it would make for a
better change if we went through and converted from __read_mostly for
a bunch of items all in one go.

Jan




 


Rackspace

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