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

Re: [PATCH 2/2] Arm32: tidy the memset() macro


  • To: Julien Grall <julien@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 19 Aug 2022 10:31:46 +0200
  • 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=MLFUZnovX0PeZSMhpjaT+QOsWTG07wTUM0QqRYFgYrc=; b=TlHwMvW+KftTUqzYkBzOddlacKF2yBQObECpUQK3hdUqfX3q7y8+bneI20pq0mpajjtgx/7qiKTL+jL0gwC/L2mtWJyAfr5ALvXNAdxjwUkVfuH6EWjjgnfmb+IxCee4uCgNnccGFGYSKF3u8pDCUqmFOdVt/LE41KsDGcgy6J3eSLgqJ9UNPIR3goYlWsYR+N7iBeH7/y+99SS+ND8TGpXrqIUNMDx0KbjzIwGpeOWRHrIC7/rjdYvz7d6yGtE0a2KY05T8Y1dY2QKdlj8kubg7UVLagCaPbuf69sxynoblsCUs+MnAVuAtOTjNbJ9ParIHiWzBqFiASA4sQN2Pbg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H54ObffAJs9Xti0a2lkqU89Vzxn58yB3D5FnnrV7rrfY1KKqMOCBSupTFHcbyPsJfWnDU0gYsOFuZ52JS/MZaHyQGbl2VZzMKzK1z/Bp+NCWHCwDw/Cd8fEimidDfkc0BLyLkTnGIht7zviE0kC3Ex1utRJz+MLnXMakLma13o14Vn/JrPBxl6STbLrCcslKUVBsmEsL+603FuY7Np1x1Mg5t7No86EDqXAX7yxiS+Vyad4um7P7Kr5HQe4e6qi93TQF+QxcU0tg76TNQXnJD80xdU+H7sa0hKt4PxwMk0xK2LmQ1LcXfgcA6h3t5ib9//W6RBnNFGd/XvEVoZc0SQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 19 Aug 2022 08:32:06 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 19.08.2022 10:24, Julien Grall wrote:
> On 19/08/2022 09:11, Jan Beulich wrote:
>> On 19.08.2022 10:06, Julien Grall wrote:
>>> On 19/08/2022 09:02, Jan Beulich wrote:
>>>> On 19.08.2022 09:58, Julien Grall wrote:
>>>>> On 19/08/2022 08:50, Jan Beulich wrote:
>>>>>> - add parentheses where they were missing (MISRA)
>>>>>> - make sure to evaluate also v exactly once (MISRA)
>>>>>> - remove excess parentheses
>>>>>> - rename local variables to not have leading underscores
>>>>>> - apply Xen coding style
>>>>>
>>>>> This code has been taken from Linux. From you write above, I don't see
>>>>> any strong reason for us to modify it (even if it is small).
>>>>
>>>> At least the MISRA issues want addressing, I suppose. Plus I wasn't
>>>> able to spot the macro in Linux anymore (nor __memzero()), so to me
>>>> there seemed to be little point to consider keeping anything "in sync"
>>>> here.
>>> I read the last part as we want a re-sync of the code (we haven't done
>>> one in the past couple of years).
>>
>> I'm afraid I'm now really confused: Which last part? I don't see how
>> any of what I have said could be read that way. Quite the opposite:
>> By stating that Linux doesn't have this macro anymore, isn't it quite
>> clear that there's nothing to re-sync against?
> Your view here if we will never re-sync the code. This is incorrect, we 
> still want to keep it close so we can benefit from improvement in the 
> Linux code. So if you start tweaking the code just for coding style 
> purpose, it will just make it more difficult for us (I appreciate this 
> is limited here).
> 
> In this case, Linux has removed __memzero() is patch ff5fdafc9e97 "ARM: 
> 8745/1: get rid of __memzero()" because the performance difference with 
> memset() was limited. For Xen, I think we should also remove the function.
> 
> With that, this patch becomes pointless.

Of course. I could have named this as an alternative in a post-commit-
message remark ... Looking forward to the re-syncing to be done then,
at which point I'll happily drop this patch.

Jan



 


Rackspace

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