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

Re: [PATCH v4 0/7] Static shared memory followup v2 - pt2


  • To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Tue, 11 Jun 2024 12:35:44 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; 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=Oq2k33ssq0RsWs77F3gWkmHi5LZo8p3bDqy2F5s3s2w=; b=NDNNB1i/Zl9rw9jF66gQcyVOtolcNoRl3O9nZA6zXbi9bAnEAmABel2TAhU6kP0Uw0qAJlmRqc4l5tal/bCaqPgz1ew7cp3JFn1R3DLxS10bHbs7NndQMXnRQid6JRYJtBnit+jQjkyqHT4BRgrkcJVSPqhkpN+xYUxpn2X0V9aQyKzFLIEFuEFpx0XBo9+qFd6hmpqlgJeOVVl5QKbFN4GEyrbcxcL3YHoEbFZfxv3ziD36Qava862spKguFsmL2jCWqxFH6Ph44lm7mCybivXojTqJyJX86Yy189StXug9bPpY4rc3lVWsfrwLzhtffCu6g6hppPcQ7KG4JPsaAA==
  • 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=Oq2k33ssq0RsWs77F3gWkmHi5LZo8p3bDqy2F5s3s2w=; b=H6mBWT6VNTGfKkvblwenk5S2H6OvvatusVCsk98tGNYOuaejTUjNYSR5O91a/8WqNRfs5BShnExU00EQd6CrTzF/i13cB4CHaPYI0YiRt/s6qV3mtphpShGRvGOlFHg7Wu+uqq2O7a3ZCrxGcGh8wd+lk6VI2a3VZ4tPryf2nseRTAXpL+0/rK5t3cHlvCyLClpl053lqV6jk5IacuD/2pNafkpBdD5jtuEG7/rTPCrpNtXnnoQdvri2jZz5SKUTemqmsYgQsDyk2XKYSRjQv5BXALN5gz9n5JcHSlFHdodHwUM/te8Va0UHxojLpEfzU0D2TIv3Tlc0YXiRQCyI2g==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=mVwpRiw1Rd1ggeW2tUds8zcs1eNcgHxW82eRjcICLcBaJd4yxGydTBdfgdQbf1/T+vyaFM1i8VNKT9egSC76Zfk98puF+LHqr/WGZhFGrgpzqMoIrsK2JdHtYkDYWuoMiq7dEzZB69k7+EXVlfbVfOqQ7vX3+3ybSuRCWexTyN8fZS1bxUUweVgur630Haz+MtSW3/fVwmAmAhAr0Pqb3FdpOh8PEKdm0UbCjSfd6Sl9vm0wxz7c4uxbTi6ci/ZAcw1mQSKV7S5ts2cybcTsYu/duIL2YhBJJS/NdFcH05eA8Aq7e/VS334KC2BLqtQKKlIec7Ompptmmp4NfW/+yA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ijoSzSz1Cw9KAbFPyWYRquqHyYtyuAXxVIE8a2FFL2+QHDJaqZ5Gh+sHcXD9FddDB39lkFeO4HU2m82ZNgTH6kqXNQROWAT8iiU27dfn+eQFDW4ItmcrC6X17DNwMCTWXbYbnRrUeFxHgtk07K9cORF/HtHLvqZ79N6pKZdBIV/rfVFAJMcFvwVBc4mY2jNWNRZFBX7DGJmSGkL7pyoa+xBVwPjPq2+pjqkFcDzJX33v9bCfBCvg1LGWZ7bh5Fn15oD51QSo2wjVH+4JziAJIbOdHZSiAKHPLs496WkFXD6qTkEKG1RJnc4D2+1e/fvXkfozGIflyKZuRUc/SALYDQ==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
  • Delivery-date: Tue, 11 Jun 2024 12:36:20 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHarde1wBZMIqRdOku1vS0eoyuKdLHCnAmA
  • Thread-topic: [PATCH v4 0/7] Static shared memory followup v2 - pt2

+ Oleksii

> On 24 May 2024, at 13:40, Luca Fancellu <Luca.Fancellu@xxxxxxx> wrote:
> 
> This serie is a partial rework of this other serie:
> https://patchwork.kernel.org/project/xen-devel/cover/20231206090623.1932275-1-Penny.Zheng@xxxxxxx/
> 
> The original serie is addressing an issue of the static shared memory feature
> that impacts the memory footprint of other component when the feature is
> enabled, another issue impacts the device tree generation for the guests when
> the feature is enabled and used and the last one is a missing feature that is
> the option to have a static shared memory region that is not from the host
> address space.
> 
> This serie is handling some comment on the original serie and it is splitting
> the rework in two part, this first part is addressing the memory footprint 
> issue
> and the device tree generation and currently is fully merged
> (https://patchwork.kernel.org/project/xen-devel/cover/20240418073652.3622828-1-luca.fancellu@xxxxxxx/),
> this serie is addressing the static shared memory allocation from the Xen 
> heap.
> 
> Luca Fancellu (5):
>  xen/arm: Lookup bootinfo shm bank during the mapping
>  xen/arm: Wrap shared memory mapping code in one function
>  xen/arm: Parse xen,shared-mem when host phys address is not provided
>  xen/arm: Rework heap page allocation outside allocate_bank_memory
>  xen/arm: Implement the logic for static shared memory from Xen heap
> 
> Penny Zheng (2):
>  xen/p2m: put reference for level 2 superpage
>  xen/docs: Describe static shared memory when host address is not
>    provided
> 
> docs/misc/arm/device-tree/booting.txt   |  52 ++-
> xen/arch/arm/arm32/mmu/mm.c             |  11 +-
> xen/arch/arm/dom0less-build.c           |   4 +-
> xen/arch/arm/domain_build.c             |  84 +++--
> xen/arch/arm/include/asm/domain_build.h |   9 +-
> xen/arch/arm/mmu/p2m.c                  |  82 +++--
> xen/arch/arm/setup.c                    |  14 +-
> xen/arch/arm/static-shmem.c             | 432 +++++++++++++++++-------
> 8 files changed, 502 insertions(+), 186 deletions(-)
> 
> -- 
> 2.34.1
> 
> 

Hi,

We would like this serie to be in Xen 4.19, there was a misunderstanding on our 
side because we thought
that since the serie was sent before the last posting date, it could have been 
a candidate for merging in the
new release, instead after speaking with Julien and Oleksii we are now aware 
that we need to provide a
justification for its presence.

Pros to this serie is that we are closing the circle for static shared memory, 
allowing it to use memory from
the host or from Xen, it is also a feature that is not enabled by default, so 
it should not cause too much
disruption in case of any bugs that escaped the review, however we’ve tested 
many configurations for that
with/without enabling the feature if that can be an additional value.

Cons: we are touching some common code related to p2m, but also there the 
impact should be minimal because
the new code is subject to l2 foreign mapping (to be confirmed maybe from a p2m 
expert like Julien).

The comments on patch 3 of this serie are addressed by this patch:
https://patchwork.kernel.org/project/xen-devel/patch/20240528125603.2467640-1-luca.fancellu@xxxxxxx/
And the serie is fully reviewed.

So our request is to allow this serie in 4.19, Oleksii, ARM maintainers, do you 
agree on that?

Cheers,
Luca


 


Rackspace

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