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

Re: [PATCH v2 2/7] xen/arm: Implement virt/maddr conversion in MPU system


  • To: Luca Fancellu <luca.fancellu@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Mon, 17 Mar 2025 10:00: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=+VGNUOtZRvYa/vWVos/U9WZaX0EGPke5R4b+qR13hjQ=; b=Ek7RUM30fvSVIOJGrWit/uWooCI04q1pHY/oK0mQhzV1cpqYz3O2/aQ7uVtLkT0u8gal+czzfkJWFcw0SkDkAM4u2TSSwLWmXphTJkXrfvc2ne9tdegu/pIxlSlQ55MrgJyNylQRpGccGHhLahhqWcEwAV56lP0HysHkk1Evcoc2P7rBiJMtmGArfOqK/VNH0+3pfN+SC6AoVTtxabFjNy7BE17saHtJxyId2tsX06Wj6KujWjwhLJXtgsYYeNJZavmxJcLEgkRh1QzbKGW+Kq4thDFL/KdFJwrOzjP5PyHpFaO+hpdjFmaBuX0RvxzoSNI5/uNoic45d9kPXJAJnQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ciq4r/a/Y2QLGG2tzlMHjo3GgMqxjxJb+Q0wGvL82zUWwrMFtUHciZDUXhil+qk0yHG1CMy/pAsbeU4H8NlF5t4k75ZqPqfo+QR5+c2QV/KVSWcF3UqDHIIduEG9QVuMaiN0x6SnaomSvJFo9BEGXo4Z7k0xZNIkknCOw/hHexWku2zwYM2xLcAS68l/zewtrWfjvRxaeBCNoCOCI2CnTiBqRSqu255S0OZ1vv6tDRNnQOR3hMrCvfPjHY09yiFNg0QFQBjg30dNRHqe2PV0ftnnQ60bPHAzCDejBSSZgRvDPKk0axHkeo1iu8qkL1X/Zz8Zv1C4sydx/qC8dgImGg==
  • 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: Mon, 17 Mar 2025 09:01:04 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 16/03/2025 20:24, 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
> to avoid changing the existing common code.
> 
> In order to do that, move the virt_to_maddr() and maddr_to_virt()
> definitions to mmu/mm.h, move the include of memory management
> subsystems (MMU/MPU) on a different place because the mentioned
> helpers needs visibility of some macro in asm/mm.h.
> 
> Finally implement virt_to_maddr() and maddr_to_virt() for MPU systems
> under mpu/mm.h, the MPU version of virt/maddr conversion is simple since
> VA==PA.
> 
> Signed-off-by: Penny Zheng <penny.zheng@xxxxxxx>
> Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
> Signed-off-by: Luca Fancellu <luca.fancellu@xxxxxxx>

Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>

~Michal





 


Rackspace

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