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

Re: [RFC v2 01/12] xen/arm: Clean-up the memory layout


  • To: Julien Grall <julien@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Tue, 25 Oct 2022 12:36:46 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=xen.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=ZGoark6TZWjz1isot1pXlfv0JBfkzgQTYqdynlWpawI=; b=f9VJi/V0PqhOJfbgBSNnNGQ7MWehkthtXSbKZP+iigtZ8hsqJEHAO0azqdvDE++MRV89FH9A+2txR5eRHw4nv0PVx1CKNIk+txCDpQdpdMrgu4SPLJ+lO8qM2Xok3ajOufoW16pDAkpn3gr6FLZU/6wF/zXtG/p+xWFaQ9zfhyQp4R0PVsLniijyq0T1dE94zebVaY5uUXdF6BfSoAyhWC3qnjsCZNwexAWyZPMBvs4tVkkHKQTW23Bx/aY39DuMgA+JW0S5soJQfOUMmnGWYy6XEtUnbK7ucApNavnylsPqn/CMC55/tAzpWeY9KINRiuDtVzmtI3FnWqSLArmWzg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HfGwHwAnWciat03q37/6kpViCGv3Eg82hcMMo80muUpHe++RkGwuAKLmxzy6QpcxxdwbLYZIDFPyKk7rJIjcxTUvdhKL7HYOMg0dTahMde4eqyRb5duc38T13qU4F6r5Fq66/OvLGpaJV7R+op6q20SEZvEXm3PiPqcpW1hnF6vVlXqbeY4qp685J8Kgk8XShScyA+0BWT4iitO753NHXQ3WqwpfN4caR8Mstil+7QVgqx4rWCgkMKHoOXrSOlUCQUZBVuRHzMwaC7Lkne7FNtZIqVhBEUFnolRffU51QU5TFSz389CZLr5Z/bw0nJqaQByztbNgDbH9mhNTQNf9sA==
  • Cc: <marco.solieri@xxxxxxxxxxxxxxx>, <lucmiccio@xxxxxxxxx>, <carlo.nonato@xxxxxxxxxxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Tue, 25 Oct 2022 10:37:06 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi,

On 25/10/2022 12:31, Julien Grall wrote:
> Caution: This message originated from an External Source. Use proper caution 
> when opening attachments, clicking links, or responding.
> 
> 
> On 25/10/2022 10:21, Michal Orzel wrote:
>> Hi Julien,
> 
> Hi Michal,
> 
> 
>> On 22/10/2022 17:04, Julien Grall wrote:
>>>
>>>
>>> From: Julien Grall <jgrall@xxxxxxxxxx>
>>>
>>> In a follow-up patch, the base address for the common mappings will
>>> vary between arm32 and arm64. To avoid any duplication, define
>>> every mapping in the common region from the previous one.
>> Maybe the following title would be better suited if you only want to touch 
>> the common mappings?
>> "xen/arm: Clean-up the common memory layout"
> 
> Ok.
> 
>>
>>>
>>> Take the opportunity to add missing *_SIZE for FIXMAP_VIRT_* and
>>> XEN_VIRT_*.
>>>
>>> Take the opportunity to add missing *_SIZE for some mappings.
>> I think this sentence can be removed as the previous one already covers it.
> 
> Yes. I will remove it.
> 
>>
>> Apart from that, wouldn't it be useful to do the cleanup for the arm32 macros
>> as you are here (FRAMETABLE, VMAP, {XEN/DOM}HEAP) ?
> 
> Can you clarify? I looked at the macros and they look clean to me.
> 
As you choose to make use of MB() macro, I think it would be beneficial
just from the consistency perspective to modify other places that use directly 
hex values.
We already do that for arm64 specific mappings, you are modifying the common 
ones
to adhere to this way, so as a natural consequence I would see the arm32 ones 
to be modified as well.

> Cheers,
> 
> --
> Julien Grall

~Michal



 


Rackspace

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