[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 5/6] xen/arm: mpu: Enable MPU
- To: Julien Grall <julien@xxxxxxx>
- From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
- Date: Tue, 22 Oct 2024 09:56:06 +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=4/jkBc+Jo2chXmFr1nPWkw0pkZ25zz2KFn/IsMUEgcU=; b=RkVxq2s0zHRRBraQtklYmBBh/8smoUEbyj2dSKN2GdCQKxUJJIih+BdrIPnbGob0MG2txxH5O6p7Dv1bAUh1QPYKwUe/ID/thZP+TuGbEOgYWpaxr42KHkQcUhx1LJFdh3n7bUJZocFjfNGgo5Wm3DU3Q9GwL31lHhzIP1G65x4Fs/nr2XqlLnyG45T4UzOC3jLSruVLbVlg280RPgpPT9JVJ9/5AOxAJVIbLqj/AX+bMp8NoiGszZGZLVaMmFNZVYR0w5Cy0fPnnXM/6+h8S80Zy9d0fQ1iLl+pVGdzZoIV7aunPgFCOfqSmCWGhfaEuVeAZXcyW3A9tNS8FMar6Q==
- 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=4/jkBc+Jo2chXmFr1nPWkw0pkZ25zz2KFn/IsMUEgcU=; b=tAXc7WPbEIqBnMi/9/yObplAGwrqiPgXQZ6wvTw+QRHoY4emqgXkhOFTkciEPnZyQMHCxu+q2OHP0G+oNTCMPxUXQPMG+crdbVBadqh8aH986aXZy27GthORPzKztwVaW4jdHieo73cnCkTEhfaqVoFV5eaSx3vcWjhQZhw+oLSNMivUFVGJQPpS8AYsZavh0M6HLSnTQxRIJm9gFuqekzSxiZKUHPakUKZgPH9J1EmwUAlPdO9TKRBZ50DpXTEKW48VgqmocVKESbaDcn1CxwKqMblE8Tnt6vU1FM1GE/JJZtQ2lcKanHLR35fY4V90LK1pGJH1Deupa8bUxd1ZCA==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=Jv8SlrmUKHtaHUxe0C5oeJ2EwcP6N35MqeLddeicsKVzg+9eicIsDyqg/1lKWNAEY/mEPwo0kEMPyXp2Ppe8D6mAZy9bmGCrwlMKXSgeYVP433eZPYUxwY5IY9cUYaHBhd8HHCQOiwa6T416LI5bH3StCtR2e/YxvZgQY4TMLNIjmRBP4uBOeOrcuVt6UUwO+3FJZQW5vwgaMHt5CaKdOeHXq1e0EU/6tYdHq3QY3EJ26KGZVfUSRCLIgFlp6Jc1zfmoeDMuXfoqSh9/X2sdLfwRmGQuIWMn94LD9lU42xPfnpRz0+ODyOqyIehzoz5Ib2xeD/9p2Yb0zASde1iILg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bYLWpNZSo9jBXNWlGrwtmB4r55sERdSzdZwluTRMuqiOTei7s0lhd+UcIjgVQQd5kzgoZiFB6OVAj/jCtPN7Mao0u0ULcpvvo1DlzrLuWJh28OpdSiQidGb0bzJ+ibV/+OdCB26X2hCSbxheSSaD/LekP/an9Xgye0wJDZu1QVPFYXYuLewNJ7P8G5RNKSwuQXuBh8mguveXc9pzI8WKXMBKg/iNz+7pNKGSoojTNQ4n7l8WonZcFGuih+XPzNS8uMsP9j+cwGcJUV4cnmvS6Zqad1z/6PjQ2vCBy5q3FmbmijKmgt2QI229V7Iubm+LyIHUaShdO35YOHzO/RNG2w==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: Ayan Kumar Halder <ayankuma@xxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Tue, 22 Oct 2024 09:56:34 +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: AQHbGx2Ge9N55hTx/U2iD9lYiTVQprKNIysAgARC6gCAAA8agIAAAOKAgAEgqoCAAAHOgIAAAmiA
- Thread-topic: [PATCH v3 5/6] xen/arm: mpu: Enable MPU
> On 22 Oct 2024, at 10:47, Julien Grall <julien@xxxxxxx> wrote:
>
> Hi Luca,
>
> On 22/10/2024 10:41, Luca Fancellu wrote:
>>> On 21 Oct 2024, at 17:27, Julien Grall <julien@xxxxxxx> wrote:
>> 2) dsb+isb barrier after enabling the MPU, since we are enabling the MPU but
>> also because we are disabling the background region
>
> TBH, I don't understand this one. Why would disabling the background region
> requires a dsb + isb? Do you have any pointer in the Armv8-R specification?
I’m afraid this is only my deduction, Section C1.4 of the Arm® Architecture
Reference Manual Supplement Armv8, for R-profile AArch64 architecture,
(DDI 0600B.a) explains what is the background region, it says it implements
physical address range(s), so when we disable it, we would like any data
access to complete before changing this implementation defined range with the
ranges defined by us tweaking PRBAR/PRLAR, am I right?
>
> Cheers,
>
> --
> Julien Grall
>
|