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

Re: [PATCH v4 4/6] xen/arm: mpu: Create boot-time MPU protection regions


  • To: Julien Grall <julien@xxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Ayan Kumar Halder <ayankuma@xxxxxxx>
  • Date: Fri, 1 Nov 2024 17:11:20 +0000
  • 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=wKNiRUoJBh34OOIZZDdDLUarzzN4O5cpl4UDR701yvU=; b=q8/ObKWUgqOSVW9Qro72sLqcY7bXisxLHwau/2pgrPIsg9BoooTHKSATmvygA4bhxVewdaIXeJaTBehFLFoBWbLKEqDgOzqy21+hfbM9t5Wo/Zv07rA+89WI6bGMkJG7J+YrU4gelicS1qfTSiT3THqFVc66tpYm+03sPng9BBKyePwWEwWpMx8U5a+IemVrmSoXtjIsUYc19zZvHoPWBHqUXAuU1SqXOfiEQD8ydEyyZ50NzoZwhF5UVVfq0Hj6VQ69M0veKpdsVqRKdcSzbiQh7NZYqdog1dpbf5nlpCUpOXmr6WR5UZEX2TiDDwrHL7Vpv/KO2bWW/MlaSRrUHg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WQbk6xBRlyBxltaLefY+u+0r15U7uYftSUF60T7n4PXhF0Q7gCObLvCqEzqJA1qCATw5dXFmjNcmoyw3tQDTvkCoaYpavU1q7Xtxt3aje6MxQc+O4/bDTQAqMmONyixVaskeErkmsZ2eIT0oUcvevrG70iiqofPKlxTkO7Ne4t3M+suG38mxaWIA5N+tQVuXMc5l4d0Yqo8Prjyt+ydBTc6H6W9msdVSpFLxneClNHo3h1/d1GiTYlhU5DDhlZf9JloyZd2nA86pOziZcGhwzGeYzQ94VcczmxBRTIpdExH2WTdmlsLMNTTMx3x9eb+D80J7l/xPh4kbkRUzmKVb6A==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 01 Nov 2024 17:11:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 01/11/2024 17:08, Ayan Kumar Halder wrote:

On 01/11/2024 14:11, Julien Grall wrote:
Hi Ayan,
Hi Julien,

Yes, you are correct. We need the following change.
--- a/xen/arch/arm/arch.mk
+++ b/xen/arch/arm/arch.mk
@@ -9,7 +9,11 @@ CFLAGS-$(CONFIG_ARM_32) += -msoft-float
 CFLAGS-$(CONFIG_ARM_32) += -mcpu=cortex-a15
 CFLAGS-$(CONFIG_ARM_32) += -mno-unaligned-access

+ifeq ($(CONFIG_MPU),y)
+CFLAGS-$(CONFIG_ARM_64) += -march=armv8-r
+else
 CFLAGS-$(CONFIG_ARM_64) += -mcpu=generic
+endif
 CFLAGS-$(CONFIG_ARM_64) += -mgeneral-regs-only # No fp registers etc
 $(call cc-option-add,CFLAGS-$(CONFIG_ARM_64),CC,-mno-outline-atomics)


(Sorry for the misformatted snippet in the previous mail)

- Ayan





 


Rackspace

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