All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Orzel <michal.orzel@amd.com>
To: Luca Fancellu <luca.fancellu@arm.com>, <xen-devel@lists.xenproject.org>
Cc: Penny Zheng <Penny.Zheng@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 v3 3/7] xen/p2m: put reference for level 2 superpage
Date: Wed, 22 May 2024 15:16:37 +0200	[thread overview]
Message-ID: <309bdbda-a720-4891-a082-ee749f4c9440@amd.com> (raw)
In-Reply-To: <20240522075151.3373899-4-luca.fancellu@arm.com>

Hi Luca,

On 22/05/2024 09:51, 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_l2_superpage to handle
> 2MB superpages, specifically for helping put extra references for
> foreign superpages.
> 
> Modify relinquish_p2m_mapping as well to take into account preemption
> when type is foreign memory and order is above 9 (2MB).
> 
> Currently 1GB superpages are not handled because Xen is not preemptible
> and therefore some work is needed to handle such superpages, for which
> at some point Xen might end up freeing memory and therefore for such a
> big mapping it could end up in a very long operation.
> 
> Signed-off-by: Penny Zheng <penny.zheng@arm.com>
> Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>

~Michal



  reply	other threads:[~2024-05-22 13:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-22  7:51 [PATCH v3 0/7] Static shared memory followup v2 - pt2 Luca Fancellu
2024-05-22  7:51 ` [PATCH v3 1/7] xen/arm: Lookup bootinfo shm bank during the mapping Luca Fancellu
2024-05-22  7:51 ` [PATCH v3 2/7] xen/arm: Wrap shared memory mapping code in one function Luca Fancellu
2024-05-22  7:51 ` [PATCH v3 3/7] xen/p2m: put reference for level 2 superpage Luca Fancellu
2024-05-22 13:16   ` Michal Orzel [this message]
2024-05-22 13:25   ` Julien Grall
2024-05-22 13:47     ` Luca Fancellu
2024-05-22 20:47       ` Julien Grall
2024-05-22  7:51 ` [PATCH v3 4/7] xen/arm: Parse xen,shared-mem when host phys address is not provided Luca Fancellu
2024-05-22 13:50   ` Michal Orzel
2024-05-22 14:07     ` Luca Fancellu
2024-05-22  7:51 ` [PATCH v3 5/7] xen/arm: Rework heap page allocation outside allocate_bank_memory Luca Fancellu
2024-05-22  7:51 ` [PATCH v3 6/7] xen/arm: Implement the logic for static shared memory from Xen heap Luca Fancellu
2024-05-22 13:19   ` Michal Orzel
2024-05-22  7:51 ` [PATCH v3 7/7] xen/docs: Describe static shared memory when host address is not provided Luca Fancellu

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=309bdbda-a720-4891-a082-ee749f4c9440@amd.com \
    --to=michal.orzel@amd.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=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.