Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CA861C433EF for ; Tue, 22 Feb 2022 07:07:56 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.276509.472693 (Exim 4.92) (envelope-from ) id 1nMPGm-0003mp-Qc; Tue, 22 Feb 2022 07:07:32 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 276509.472693; Tue, 22 Feb 2022 07:07:32 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nMPGm-0003mi-Mk; Tue, 22 Feb 2022 07:07:32 +0000 Received: by outflank-mailman (input) for mailman id 276509; Tue, 22 Feb 2022 07:07:31 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nMPGl-0003mc-A0 for xen-devel@lists.xenproject.org; Tue, 22 Feb 2022 07:07:31 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-sth1.inumbo.com (Halon) with ESMTP id 185f2d44-93ae-11ec-8eb8-a37418f5ba1a; Tue, 22 Feb 2022 08:07:29 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F0D1B1063; Mon, 21 Feb 2022 23:07:27 -0800 (PST) Received: from [10.57.3.116] (unknown [10.57.3.116]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A924D3F70D; Mon, 21 Feb 2022 23:07:26 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 185f2d44-93ae-11ec-8eb8-a37418f5ba1a Subject: Re: [PATCH] xen/arm: Rename psr_mode_is_32bit to regs_mode_is_32bit To: Julien Grall , xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Volodymyr Babchuk , Bertrand Marquis References: <20220221105931.12028-1-michal.orzel@arm.com> <1531f49d-c74c-8a41-a917-cfe76bee8e7d@xen.org> From: Michal Orzel Message-ID: <05b5877b-7dc0-3d35-f073-5721e1605321@arm.com> Date: Tue, 22 Feb 2022 08:07:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1531f49d-c74c-8a41-a917-cfe76bee8e7d@xen.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Hi Julien, On 21.02.2022 16:58, Julien Grall wrote: > Hi Michal, > > On 21/02/2022 10:59, Michal Orzel wrote: >> Following a discussion [1] it seems like that renaming work has >> been forgotten. > > This is in my todo list of clean-up I need to do for Xen. But I haven't yet had a chance to look at it. Thank you for taking a look! > >> Perform renaming of psr_mode_is_32bit to >> regs_mode_is_32bit as the function no longer takes psr parameter. > > If we modify psr_mode_is_32bit(), then we should also modify psr_mode_is_user() because they have the same prototype and we should keep the naming consistent. > Ok, I agree. Do you think this should be done in a separate patch? FWICS, psr_mode_is_user is used in traps.c, vcpreg.c ,vtimer.c and vsysreg.c whereas psr_mode_is_32bit - only in traps.c. >> >> [1] https://marc.info/?l=xen-devel&m=156457538423787&w=2 > > NIT: The first sentence and this link adds value for the review on the mailing list (we know where the request came from) but doesn't add any after the commit message (there are no extra information in them). > > So I would move this information after ---. This will get dropped on commit. > Ok. > Cheers, > Cheers, Michal