[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 5/6] xen/arm: mpu: Enable MPU
- To: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
- From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
- Date: Mon, 28 Oct 2024 15:39:14 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=2; 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=JN8OndcgIf2vR/RE47v19PBB+J/xFSJ5aaC6NjQV+kI=; b=FNC7GKqcI6WwCUgOGIUlOnqAGgxK1lGrzYZiq2GAuE7xBzZ5ngvtE6p+zDz0euV1UGRJQkZZgiskoyZb/vzS6alZdfCulQ5thn0hwWXOTw+E6TUUGB0sBXnZS7xJsYUBC8x44QZcYF3b1QRzQc+b/QU4ZntXbtJ1uypUZdBtUA6X74xdvVeI8YDbhdaJcEDpyWQgoLq3eBWzddeaNc+VDBeI9ygLRkau7HchJ4K/J5J1xBcm9DyP3pSuX1/R9S0FJ4ViRKrtwVFWwfiGTvTuhBCSu/fZLDa5BV03rV+2QqCaeBHtd1l5sstrKMC7l+fjnXWXMeAhjUjVPrUlrqKKUw==
- 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=JN8OndcgIf2vR/RE47v19PBB+J/xFSJ5aaC6NjQV+kI=; b=ynQceqUaGJnH+tY/dqf6BliDz6hD9wHyVFIUdwtBtsPPB8Lz0U0bVLKvOR7KbWoQqs+kRJOivv8CNotFj/e2Iy5qBmG48WWkmJACUOeZmAPzusTVXcIPLXoJYOmKcacmNw11Af4cr677TRu3/Je3WgE2jxtz6VeHKo8HCc3jqnnEcWt6DfQK9nwU9XaJOOUPjcByskCNPVkOE51D0kMMcrgmPHjwcIBvxZ1ZAJUgiyt2I0oSQVUyfqAMZJy4KLzNJ8S7PiJkMHxTGmST1jyeYwRlnZXIr1d7ip5cF5AcH+5+yO+R76tTiOnq0Mhuh2NtEBZAAZkep/tZzOYH31P+5A==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=vYAT6UL2fZZzy54VHBfrnoQAWqojYma9lVEUE00298X707Hr++uT2MGx+YWmszaGiFeuM0I1QeNPLpJSglxps7bodmGb0DusV4/3+XGKNi/6QCiYn/Lge7PY1YMs4akQF9E5Bk0jK0nppDxlzakeBe46UTYUeeXOdctSB4XZjDsg1UI0jSi1Z14gogscNnHCVsKwysPSRQS/8uJ+1ju/XcNrW3/1nK2TJcbWCia37jokQpg5B3VffFP6S86tgtN/8v1fkOEYzDR82xQaBlIjjBo0bX15BKn9U5Fyn8UaIsyc2f4ciKyZuunEL26E8HaEl+OjqUxMrTFNCJ82ouipnQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=W0+YTshbXeEbEjPoEz+jArZq3JuWlXoyfIG67Pvdk+yz/kKhou+SnkMCgaby9paPRuyu2k6cLgz9avmtp6OsZejkcbk+7XbBdi+oZsjZ/FIPg7kVDeZ/RxzbQlDzs4e1VGufx8sQJP/NadiuOWbz+8FfRKI4ki2V59o7LkDUhbXiRC4ifZV4ENCyNkI7zX9Gr1RgL00/7QZN7DZDEzCgfU4pdwxOHu2Tcz6lWvvPdVAIJPq7yYYgysEvovLS3PlQJYkO/WVeC6QPKVFUE/2Ymsovdg55rpeGjj4srsT/wZyldsonXD6D5CrMMqXOhcW/sK8esoHlHXPhJ+avs/KzkQ==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Mon, 28 Oct 2024 15:39:38 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHbKTd4TPW4dZ8zhk2oX5EUPGpTkrKcTJiA
- Thread-topic: [PATCH v4 5/6] xen/arm: mpu: Enable MPU
Hi Ayan,
> On 28 Oct 2024, at 12:45, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx> wrote:
>
> After the regions have been created, now we enable the MPU. For this we
> disable
> the background region so that the new memory map created for the regions take
> effect. Also, we treat all RW regions as non executable and the data cache is
> enabled.
>
> As enable_mpu() is invoked from enable_boot_cpu_mm(), one needs to save and
> restore the lr.
>
> Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
> ---
>
It looks good to me:
Reviewed-by: Luca Fancellu <luca.fancellu@xxxxxxx>
|