From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Luca Fancellu <luca.fancellu@arm.com>
Cc: xen-devel@lists.xenproject.org, Penny Zheng <Penny.Zheng@arm.com>,
Stefano Stabellini <sstabellini@kernel.org>,
Julien Grall <julien@xen.org>,
Bertrand Marquis <bertrand.marquis@arm.com>,
Michal Orzel <michal.orzel@amd.com>,
Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Subject: Re: [PATCH 3/7] xen/p2m: put reference for superpage
Date: Thu, 9 May 2024 09:55:35 +0200 [thread overview]
Message-ID: <ZjyBd7Yn5Od3qPF9@macbook> (raw)
In-Reply-To: <20240423082532.776623-4-luca.fancellu@arm.com>
On Tue, Apr 23, 2024 at 09:25:28AM +0100, Luca Fancellu wrote:
> From: Penny Zheng <Penny.Zheng@arm.com>
>
> We are doing foreign memory mapping for static shared memory, and
> there is a great possibility that it could be super mapped.
> But today, p2m_put_l3_page could not handle superpages.
>
> This commits implements a new function p2m_put_superpage to handle superpages,
> specifically for helping put extra references for foreign superpages.
>
> Signed-off-by: Penny Zheng <penny.zheng@arm.com>
> Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
> ---
> v1:
> - patch from https://patchwork.kernel.org/project/xen-devel/patch/20231206090623.1932275-9-Penny.Zheng@arm.com/
> ---
> xen/arch/arm/mmu/p2m.c | 58 +++++++++++++++++++++++++++++++-----------
> 1 file changed, 43 insertions(+), 15 deletions(-)
>
> diff --git a/xen/arch/arm/mmu/p2m.c b/xen/arch/arm/mmu/p2m.c
> index 41fcca011cf4..479a80fbd4cf 100644
> --- a/xen/arch/arm/mmu/p2m.c
> +++ b/xen/arch/arm/mmu/p2m.c
> @@ -753,17 +753,9 @@ static int p2m_mem_access_radix_set(struct p2m_domain *p2m, gfn_t gfn,
> return rc;
> }
>
> -/*
> - * Put any references on the single 4K page referenced by pte.
> - * TODO: Handle superpages, for now we only take special references for leaf
> - * pages (specifically foreign ones, which can't be super mapped today).
> - */
> -static void p2m_put_l3_page(const lpae_t pte)
> +/* Put any references on the single 4K page referenced by mfn. */
> +static void p2m_put_l3_page(mfn_t mfn, unsigned type)
^ p2m_type_t?
Roger.
next prev parent reply other threads:[~2024-05-09 7:55 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-23 8:25 [PATCH 0/7] Static shared memory followup v2 - pt2 Luca Fancellu
2024-04-23 8:25 ` [PATCH 1/7] xen/arm: Lookup bootinfo shm bank during the mapping Luca Fancellu
2024-05-06 13:24 ` Michal Orzel
2024-05-07 13:44 ` Luca Fancellu
2024-05-07 14:01 ` Michal Orzel
2024-05-07 14:12 ` Luca Fancellu
2024-04-23 8:25 ` [PATCH 2/7] xen/arm: Wrap shared memory mapping code in one function Luca Fancellu
2024-05-06 13:39 ` Michal Orzel
2024-05-07 13:57 ` Luca Fancellu
2024-05-07 14:08 ` Michal Orzel
2024-05-07 14:15 ` Luca Fancellu
2024-05-08 6:33 ` Michal Orzel
2024-04-23 8:25 ` [PATCH 3/7] xen/p2m: put reference for superpage Luca Fancellu
2024-05-07 12:26 ` Michal Orzel
2024-05-07 13:20 ` Julien Grall
2024-05-07 13:30 ` Luca Fancellu
2024-05-08 21:05 ` Julien Grall
2024-05-08 22:11 ` Julien Grall
2024-05-09 8:13 ` Roger Pau Monné
2024-05-09 9:50 ` Julien Grall
2024-05-09 11:28 ` Roger Pau Monné
2024-05-09 12:12 ` Julien Grall
2024-05-09 12:58 ` Roger Pau Monné
2024-05-10 21:37 ` Julien Grall
2024-05-13 8:04 ` Roger Pau Monné
2024-05-14 7:55 ` Luca Fancellu
2024-05-09 7:55 ` Roger Pau Monné [this message]
2024-04-23 8:25 ` [PATCH 4/7] xen/arm: Parse xen,shared-mem when host phys address is not provided Luca Fancellu
2024-05-08 12:09 ` Michal Orzel
2024-05-08 13:28 ` Luca Fancellu
2024-05-09 8:58 ` Luca Fancellu
2024-04-23 8:25 ` [PATCH 5/7] xen/arm: Rework heap page allocation outside allocate_bank_memory Luca Fancellu
2024-05-09 11:04 ` Michal Orzel
2024-04-23 8:25 ` [PATCH 6/7] xen/arm: Implement the logic for static shared memory from Xen heap Luca Fancellu
2024-05-10 9:17 ` Michal Orzel
2024-05-10 9:25 ` Luca Fancellu
2024-05-10 9:32 ` Michal Orzel
2024-05-10 9:37 ` Luca Fancellu
2024-04-23 8:25 ` [PATCH 7/7] xen/docs: Describe static shared memory when host address is not provided Luca Fancellu
2024-05-10 9:33 ` Michal Orzel
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=ZjyBd7Yn5Od3qPF9@macbook \
--to=roger.pau@citrix.com \
--cc=Penny.Zheng@arm.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=bertrand.marquis@arm.com \
--cc=julien@xen.org \
--cc=luca.fancellu@arm.com \
--cc=michal.orzel@amd.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.