[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v2 1/4] docs, xen/arm: Introduce reserved heap memory
- To: Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Henry Wang <Henry.Wang@xxxxxxx>
- Date: Tue, 6 Sep 2022 06:41:13 +0000
- Accept-language: zh-CN, 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=armh.onmicrosoft.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=ug7/sB5v5qriGhe8kvJtO8YG7xZW2naa63COGHavWYw=; b=VHbVxSUh9VRLlTT+evhlCf9vQCr3oPclpkWkcWoARPgub4RIg9JHpPBQQmCoXPkCMBN8lF98pNhrsUuMj043BNaSoRXMEcAd9+hSF+JjlAkePMKXHgIfESQAYogbys6y5ysszsO9jDyihfNn3hdCjas2GkIs+bC15sxvNcFa5y/iBexcrA0Vm3mM9PK6xIbDr+w9rrPTV+AOGDrZjtC2UuBnGufcusHOcVngK3BeNR7cinsTNrSv013dNH6bn86vQScHjoPjgpp8uDZFC3DEAwvpSOxC8SkqysybSxtxi2biYTpcSHHK195DOVA5lDpadNdKovRZCZ9jsLNe+tY25g==
- 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=ug7/sB5v5qriGhe8kvJtO8YG7xZW2naa63COGHavWYw=; b=oPObpYS9rpmIDPh58hLl7g9reBCd+yk0mdZDeXRhAtt7oWn+37PBunR/PoLKpg5fWU6qXCuwdv0r/KB0CoyUp4siWnCCBW02EDbT+5KaNYkMtNbrM0T4uZ9L8+ORW5DHhFjX0MuDh5zdcS5Um1xLEIolVC3CxpuJYQCixRGpRkmnEhnYTxMnyPWnmnkogv/9hqDag3xTFEoF9Sk49ywi4y3cO44UNN4Z8OuofZdj2lWOAYcrQ4LOubMjUpjd6bZnQ0X4CzGTvjOxJtA9sK/7lVNzWgCYjZVwdWXe/ylyngfD3aRDGKwgiSuF34/DQdclncEMFSo8P9OAm1cURjOILA==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Qh7rPBcHUgZkHATuuGDJuPZpK6FnUukcocu3OgjrXvCRGhfNHUox0BDa6r9YY7KtS2Dy9QIlrK2T1xFvX2yhlkjLvximHceiy++CDPZtOwDnWYALx/govt+RW0oOZ9ohzD1/ntUMob/j44wmZn9lsPgGDDlgypY7O9raEVvaXWAnBN83VHHIb46LNWTCFvclGZREFz2e19OaWp6s6HaVDKVWoXez818IajPxnzdf2aAB/1LzRaGSfYJ75PjuONXmJmA/LH4ZOoTh0xNC4f4XY/IcqxGJJM9D7FOMlfoTkmOGHyptQj4ZLrb+hOGUvaDT5vLTYAgrn8YYHPfcOlilfg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qa7r6cZSQ4yPiwN49DvMm+qiWHu2watumMXBIQRhVXxC72cFpPY20hGN9JZlhpezdRNS5Q+fXcyRniBc1+suMmpLg/BzItDvnOi/DWTkTKfqu+WXs0rtQorqbMTbbtfGMAwp1UutXcV2zt6vOg6e9kYtqCq/iaM63hl6qHPCW/i1ZtkqcrDQvoAS6URzV6IM6XYKcCs0xuvEA/lqWt6xg7yK0USiAn0FDgWJ6jsVG9rdpHrb41XsaSsWgG8U1zjUBiz3quyTf4b9CHU4wkanG0pttZJ44yzaUiGLmnvf3uNSjKdGiXntLeDnVkix+ho5f5l3oAH4Uch2V4BiYWM2MA==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Wei Chen <Wei.Chen@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Penny Zheng <Penny.Zheng@xxxxxxx>
- Delivery-date: Tue, 06 Sep 2022 06:41:38 +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: AQHYwPjzoXW29+zrjEaaAKDaLd6E0a3QvVUAgABZjgCAANyIgIAAAOmw
- Thread-topic: [PATCH v2 1/4] docs, xen/arm: Introduce reserved heap memory
Hi Michal,
> -----Original Message-----
> From: Michal Orzel <michal.orzel@xxxxxxx>
> Subject: Re: [PATCH v2 1/4] docs, xen/arm: Introduce reserved heap memory
>
> Hi Julien,
>
> On 05/09/2022 19:24, Julien Grall wrote:
> >
> > Hi Michal,
> >
> > On 05/09/2022 13:04, Michal Orzel wrote:
> >> On 05/09/2022 09:26, Henry Wang wrote:
> >>>
> >>> diff --git a/xen/arch/arm/include/asm/setup.h
> b/xen/arch/arm/include/asm/setup.h
> >>> index 5815ccf8c5..d0cc556833 100644
> >>> --- a/xen/arch/arm/include/asm/setup.h
> >>> +++ b/xen/arch/arm/include/asm/setup.h
> >>> @@ -22,11 +22,16 @@ typedef enum {
> >>> BOOTMOD_UNKNOWN
> >>> } bootmodule_kind;
> >>>
> >>> +typedef enum {
> >>> + MEMBANK_MEMORY,
> >>> + MEMBANK_XEN_DOMAIN, /* whether the memory bank is bound to
> a Xen domain. */
> >>> + MEMBANK_RSVD_HEAP, /* whether the memory bank is reserved as
> heap. */
> >>> +} membank_type;
> >> Whereas the patch itself looks ok (it must be modified anyway given the
> comments for patch #2),
> >> MEMBANK_XEN_DOMAIN name is quite ambiguous to me, now when it is
> part of membank_type enum.
> >> Something like MEMBANK_STATIC or MEMBANK_STATICMEM would be
> much cleaner in my opinion
> >> as it would directly indicate what type of memory we are talking about.
> >
> > I am not sure. Technically the reserved heap is static memory that has
> > been allocated for the heap. In fact, I think thn name "staticmem" is
> > now becoming quite confusing because we are referring to a very specific
> > use case (i.e. memory that has been reserved for domain use).
> >
> > So I would prefer if we keep "domain" in the name. Maybe
> > MEMBANK_STATIC_DOMAIN or MEMBANK_RESERVED_DOMAIN.
> >
> Personally I would drop completely using the "reserved heap" naming in
> favor
> of "static heap" because "staticmem" is also something we reserve at boot
> time for a domain use.
> This would also directly correlate to the device tree property "static-heap"
> and "static-mem".
> Then such enum would be created as follows and for me this is the cleanest
> solution:
> MEMBANK_DEFAULT
> MEMBANK_STATIC_DOMAIN
> MEMBANK_STATIC_HEAP
>
> But I think we are already too late in this series to request such changes,
I am ok with a pure renaming to static heap if Julien is ok with that. I think
Julien has done most of the code review and we still have 2~3 days for it.
Kind regards,
Henry
> So with the current naming we can go for:
> MEMBANK_DEFAULT
> MEMBANK_RSVD_DOMAIN /* memory reserved for a domain use */
> MEMBANK_RSVD_HEAP /* memory reserved for a heap use */
>
> > Cheers,
> >
> > --
> > Julien Grall
>
> ~Michal
|