From: "Orzel, Michal" <michal.orzel@amd.com>
To: Hari Limaye <hari.limaye@arm.com>, <xen-devel@lists.xenproject.org>
Cc: <luca.fancellu@arm.com>,
Stefano Stabellini <sstabellini@kernel.org>,
Julien Grall <julien@xen.org>,
Bertrand Marquis <bertrand.marquis@arm.com>,
Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Subject: Re: [PATCH 3/5] arm/mpu: Implement transient mapping
Date: Thu, 21 Aug 2025 13:05:41 +0200 [thread overview]
Message-ID: <bb1ed794-e63d-4d9f-94ea-a468f57a6eb2@amd.com> (raw)
In-Reply-To: <d6bd97094991a08fb5ffb48f2642b510b55693e8.1753864612.git.hari.limaye@arm.com>
On 30/07/2025 10:45, Hari Limaye wrote:
> From: Luca Fancellu <luca.fancellu@arm.com>
>
> Add a scheme to distinguish transient MPU regions, to identify MPU
> regions which will be mapped for a short period of time.
The commit msg lacks description why this is needed.
>
> Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
> Signed-off-by: Hari Limaye <hari.limaye@arm.com>
> ---
> xen/arch/arm/include/asm/arm32/mpu.h | 2 ++
> xen/arch/arm/include/asm/arm64/mpu.h | 2 ++
> xen/arch/arm/include/asm/mpu/mm.h | 14 +++++++++++++-
> xen/arch/arm/include/asm/mpu/regions.inc | 19 +++++++++++++++++--
> xen/arch/arm/mpu/mm.c | 23 ++++++++++++++---------
> 5 files changed, 48 insertions(+), 12 deletions(-)
>
> diff --git a/xen/arch/arm/include/asm/arm32/mpu.h b/xen/arch/arm/include/asm/arm32/mpu.h
> index 0a6930b3a0..9906d98809 100644
> --- a/xen/arch/arm/include/asm/arm32/mpu.h
> +++ b/xen/arch/arm/include/asm/arm32/mpu.h
> @@ -39,6 +39,8 @@ typedef union {
> typedef struct {
> prbar_t prbar;
> prlar_t prlar;
> + bool transient;
> + uint8_t pad[7]; /* Pad structure to 16 Bytes */
> } pr_t;
>
> #endif /* __ASSEMBLY__ */
> diff --git a/xen/arch/arm/include/asm/arm64/mpu.h b/xen/arch/arm/include/asm/arm64/mpu.h
> index f0ce344e78..1d1843eda0 100644
> --- a/xen/arch/arm/include/asm/arm64/mpu.h
> +++ b/xen/arch/arm/include/asm/arm64/mpu.h
> @@ -38,6 +38,8 @@ typedef union {
> typedef struct {
> prbar_t prbar;
> prlar_t prlar;
> + bool transient;
> + uint8_t pad[15]; /* Pad structure to 32 Bytes */
> } pr_t;
>
> #endif /* __ASSEMBLY__ */
> diff --git a/xen/arch/arm/include/asm/mpu/mm.h b/xen/arch/arm/include/asm/mpu/mm.h
> index c32fac8905..56ca411af4 100644
> --- a/xen/arch/arm/include/asm/mpu/mm.h
> +++ b/xen/arch/arm/include/asm/mpu/mm.h
> @@ -60,6 +60,16 @@ static inline void context_sync_mpu(void)
> isb();
> }
>
> +static inline bool region_is_transient(pr_t *pr)
As this is just a read helper, pr could be const?
~Michal
next prev parent reply other threads:[~2025-08-21 11:06 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-30 8:45 [PATCH 0/5] Third series for R82 MPU support Hari Limaye
2025-07-30 8:45 ` [PATCH 1/5] arm/mpu: Implement setup_frametable_mappings for MPU systems Hari Limaye
2025-08-04 12:45 ` Ayan Kumar Halder
2025-08-21 10:44 ` Orzel, Michal
2025-07-30 8:45 ` [PATCH 2/5] arm/mpu: Implement setup_mm " Hari Limaye
2025-08-04 12:52 ` Ayan Kumar Halder
2025-08-21 10:54 ` Orzel, Michal
2025-08-27 17:04 ` Hari Limaye
2025-08-28 6:50 ` Orzel, Michal
2025-07-30 8:45 ` [PATCH 3/5] arm/mpu: Implement transient mapping Hari Limaye
2025-08-04 12:56 ` Ayan Kumar Halder
2025-08-21 11:05 ` Orzel, Michal [this message]
2025-07-30 8:45 ` [PATCH 4/5] arm/mpu: Implement ioremap_attr for MPU Hari Limaye
2025-08-04 13:03 ` Ayan Kumar Halder
2025-08-22 7:47 ` Orzel, Michal
2025-08-27 12:25 ` Hari Limaye
2025-07-30 8:45 ` [PATCH 5/5] xen/arm: map static memory on demand Hari Limaye
2025-08-04 13:05 ` Ayan Kumar Halder
2025-08-22 7:50 ` Orzel, Michal
2025-08-27 12:31 ` Hari Limaye
2025-08-27 13:30 ` Ayan Kumar Halder
2025-08-27 16:07 ` Orzel, Michal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bb1ed794-e63d-4d9f-94ea-a468f57a6eb2@amd.com \
--to=michal.orzel@amd.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=bertrand.marquis@arm.com \
--cc=hari.limaye@arm.com \
--cc=julien@xen.org \
--cc=luca.fancellu@arm.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.