[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 3/7] xen/p2m: put reference for level 2 superpage


  • To: Luca Fancellu <luca.fancellu@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Wed, 22 May 2024 15:16:37 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=arm.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=qezSWhI+vIIqlcOsVgRs306/jm1ivIoR5Jn5pb1EKJQ=; b=Z3dnwR/GlL3UAjWNIfZ3tOjr74sN0QGy6oNED0xeKmCzpq02fDfzLA1RhSRwTyoUyTnl7y4d4FV+m/x4QttOwZh40In3z0Ho9z9BA9kKDpa9D94QEly2FbD77SVwYlk0R5jBh8Br6QpIhm0UWvhPjDuGFj64VIHx9+zCU2wcueLt/VjKG8qfbfFLkRYTVBlSF9032RO9G1HBh1dcA7OhMsuC//2ZWHZ6qzHc4hDz+GKun2/CSDllljAJmhBsItJCHEdAOnSKljyB8UFoi6KGGC8BuANanph1xLtxJQ4LTecfF6fe5qZh+wo7U6z0FEfUJBTeiosSMKvtzuiqkkkZIA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VpDEF+CSzSe27gFEpZPk8Q4+mkWZ5+VpkrV87T9qcPbeI7ze3n8WSmmM71cpJV6eaQsCZLZmEkom80iFJdiPzYC6FoMyiFx/Bm7yUjOECBR4BtgTIcuhx4LaBSK6Keyf32Mp1w+HS9/BUsHn9th1zCN2StrZXK8TBLSGoTGpL/8ypvuMRz7brRqTz2o42QOZqy1enP9ZT//WaBfyXe6uRB64RDBqjiKdQaBvHlnF24nv3nDmbub85xEHYEEBc6lhKXiSLphyYnKxO4aNqLGPGh85L5sJdAnHeOU+C1CmtPGfmhYptB4uqXYBRbM35SOhN6T5DDT0l1CNOkVIU/gRSg==
  • Cc: Penny Zheng <Penny.Zheng@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Wed, 22 May 2024 13:16:51 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Luca,

On 22/05/2024 09:51, Luca Fancellu wrote:
> 
> 
> From: Penny Zheng <Penny.Zheng@xxxxxxx>
> 
> 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@xxxxxxx>
> Signed-off-by: Luca Fancellu <luca.fancellu@xxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>

~Michal




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.