[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 04/10] arm/mpu: Implement virt/maddr conversion in MPU system
- To: Luca Fancellu <luca.fancellu@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: "Orzel, Michal" <michal.orzel@xxxxxxx>
- Date: Thu, 13 Mar 2025 09:55:44 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=rrrD5oCVC/NSiZ2ZBj+N7PSn0wQ8LF0I0qiB8qhdH3E=; b=uC8xMRwBqkMvWCysOfQa4Si3RhLj/3fXFtAia85yTKqRgzWJ/vdMtie6Vq2J0CwwU8m3iwJ9+TWhL01fie/IBvJgU1QwiBRl0T1mPo4pLKiiQW7BqJ6PywxWupWZDWlBetWAE8z4eoLgPAJZ6HCh8qQgyOuPt9oo4HDluhvEpA4hHfuhsmnBOL9FWKcI6AfG8jgk6wmq9AYMAd7M1P7SLHiErziYxgQkEgPi9qCKkkYp7aldBdrssij4HzvaGv243Gbla13saX1A9Qk4jj5Fy12cyKbDKcG3aW47GTwmUmMupu6UMjShBnnLD8ODigEJQbOr1ewgwCs8dDzt8BfGcA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZTFIfbc+2SDX4wS/g7g3vhapTTZGcMjuZatyZby4D92o4l3PCFhmMxDLtEi1BSMe1QgSdAYvxAptWNdUW0LVk2UT/qtrB6SedKdv/uoNO/I+L6LfZ79+nMlbPzUhsiLSM21BIelteV+3EfhAW3wULHnfVEZka9heYNlmeGAUdxrIcyAnNTBTcG9ukD9lbtDzlZ9hp9IfzWWTx4iab83hdnQQ38W1dZSYegN+knoSdtMQ4JIv9RUHhjhbRIhzABpKcSeNVVEZHmHYkGgIO6bdTgfm7MqqcxRaZklGln4+IXVG/JlSYI+2Gx2r7zYgAsXKR0FZUi8FtiEROR4Q365f9A==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
- Cc: Penny Zheng <Penny.Zheng@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Wei Chen <wei.chen@xxxxxxx>
- Delivery-date: Thu, 13 Mar 2025 08:56:02 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 13/03/2025 09:48, Orzel, Michal wrote:
>
>
> On 12/03/2025 14:52, Luca Fancellu wrote:
>>
>>
>> From: Penny Zheng <Penny.Zheng@xxxxxxx>
>>
>> virt_to_maddr and maddr_to_virt are used widely in Xen code. So
>> even there is no VMSA in MPU system, we keep the interface in MPU to
>> don't change the existing common code.
>>
>> In order to do that, move the virt_to_maddr() definition to mmu/mm.h,
>> instead for maddr_to_virt() it's more difficult to isolate it under mmu/
>> so it will be protected by #ifdef CONFIG_MMU.
> I don't understand this rationale. I did a quick test and moving maddr_to_virt
> to mmu/mm.h works just fine.
Ignore this comment. I was not right.
~Michal
|