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

Re: [PATCH] Arm64: make setup_virt_paging()'s pa_range_info[] static


  • To: Julien Grall <julien@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 30 Nov 2022 08:13:53 +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=nC8kG7822CvfUwgpiXQ97BriLBn2mJ5fFfA/1em2LJM=; b=n3H2FtVMtTIHNz4on9XzQ+kb1il5K89qBzl6JkCB+KAVEICsTUo/AX3yzQ5MXg4DzPmgc2+ibCX/bBDt1/kBshLngnKbDuCDPlYZXC5kOGdv03PjhFTcvwfjNwdOHgeVjJXj5OmOTK9QCHAaZG7ynOFRqWV0FQhchxlhhJIoijtYgrb7PFygWGDeXoOOpD2x/HPm7iZyfFUyvGDnzEtWQwSnERUOskEUStRuFgV6c8Di6X88FOCb3qVNmXUlCNGxbYNUTnJQ15UuI6QRlZf3Y/PVips0GS+faOXDhb3nIrA6Wwxbbuc3Vm73j+g6EhKFMq0lQt5eHhva6lb8Zi3SAQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GZpGl8cZDdLaSXCOH1zD6N/7kXH3tAn4YdkwVcbrjSII07L8/xcw5Jg+t7d4vhe2jBeX+ThBRIiRGYs+iuH3NVOCGFmTOgizxVBuLhsB+Lh0vX4LKc8spu9orQsH+uUhZ0JWzMw6eVc7MZZ30qlaTLaJzYSVPYgPkupv8YNNFvcLKh/ewNuqemfsV2nVZli7jW39WHp0co8zuH6WvkYzE530H3MOab6mt91LG7MRugbj5qJglGt0NEtQUOIpr0zCgWaipRfqySfbLLJiJckhCa/0MaKVS8mH4J+LdSNzKk+uscXVS5JXly0q+IPefyp3e7FtSttCHQFlNGTSDbu//A==
  • 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: Wed, 30 Nov 2022 07:14:08 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 29.11.2022 17:01, Julien Grall wrote:
> On 29/11/2022 15:39, Jan Beulich wrote:
>> While not as inefficient as it would be on x86 (due to suitable constant
>> loading and register pair storing instructions being available to fill
>> some of the fields), having the compiler construct an array of constants
>> on the stack still looks odd to me.
> 
> The function is only called once at boot. So this seems more a 
> micro-optimization than anything else.

Well, yes - hence the "looks odd" as a justification, not performance or
anything.

>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> 
> Acked-by: Julien Grall <jgrall@xxxxxxxxxx>

Thanks.

>> ---
>> Actual space savings could be had if further converting the field types
>> to e.g. unsigned char (all of the values fit in that type).
> 
> This is a micro-optimization. If you want to send it then I will review it.

I probably won't bother; I've pointed this out largely in case actual
space savings would be made a requirement to accept this change.

Jan



 


Rackspace

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