[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 2/4] xen/arm: mpu: Define Xen start address for MPU systems
- To: Julien Grall <julien@xxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Ayan Kumar Halder <ayankuma@xxxxxxx>
- Date: Mon, 9 Sep 2024 11:29:32 +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=/2XQsAwenDUBpH4RUBEG+YIRhYhM5ZS9gFhUlag3Wno=; b=L6aCKpGC/L3OXvJDr9uFIAnSx7gE5YS9GaQPEDibqUOjADSQe3ujYmwFjTS7JjGylFu/xHt6D5c7a5HAj1O6Ts1dLaxh/M1cXEaEXpxVo7mNJQ+HyRoYADHpI7vmkAVHSQyMiFGB06R5fsIQfmBKMgkKiWRK+wMVF2HlZj9DqXDBsEf+p6QtPSPA3kpftf8bERP9Hk/DImIx1T8BA9zd+WzOsVuS5da9cNeXORwlJlR8WvB/O2B9SwoqeFgZuOAR7R0ht4KhKI2eFoDfk99ISJu/3kdk4Y4Ifx40XrF9US7R0g55FABl2hYIHZbAJlXe2oBpwDuufM2Y5LwDdY3uXg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hemg1DXgVYPywY5xp3QLbRJ1470oTlKtbNdrZWNXn13S90uJKyQ175p7tzmEtUJwHf7CokK0rDGyN83LwH36gWXHpel4w5LS5I/p5t871n42Tz13NxJTQpkCk5r5zO4XAyj/YLCvZK2NWDlusXjjZ7q4i1xDejZHgiiFB9fKdD7MMk4PzKrZOjPdeS70nzw4kHnRL6m1p6QN7ikB9Fsli3n9M81pa7RYlrmO85hucMFK51Jr8LRKz+An9OBisrhPELuKRRiaO20aXN1Sd+sgvGY1R31wNoHoAa0M6D3AqCcDSHnHWffe1fZK7nIBhM2OgL8c2x/1GDJrgCSKctShBA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
- Cc: Wei Chen <wei.chen@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, "Jiamei . Xie" <jiamei.xie@xxxxxxx>
- Delivery-date: Mon, 09 Sep 2024 10:29:59 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 08/09/2024 22:13, Julien Grall wrote:
Hi,
Hi Julien,
On 02/09/2024 15:48, Ayan Kumar Halder wrote:
I will rephrase this as ...
"Used to set customized address at which which Xen will be linked
on MPU systems. This address must be aligned to a page size.
0xFFFFFFFF is used as the default value to indicate that user hasn't
customized this address."
Reading this comment, I would like to ask some clarification. In the
context of the MPU how do you define a page size? The definition is
pretty clear when using the MMU because the granularity if defined by
the HW. But for the MPU, it is a bit blur. Is it still 4KB? If so, is
it actually realistic (we don't have that many MPU regions)?
From ARM DDI 0600A.d ID120821, C1.1.1 Protection regions
"Protection regions have a minimum size of 64 bytes."
Thus, I would infer that the minimum page size (in context of MPU) is 64
bytes.
Also, if you see the register fields of PRBAR and PRLAR, the lower 6
bits are 0 extended to provide the address.
So, may be I should say
".... address must be aligned to the minimum region size (ie 64 bytes).
0xFFFFFFFF is used ...."
Let me know if this sounds ok.
- Ayan
|