RE: [PATCH 07/10] xen/arm: intruduce alloc_domstatic_pages

2021-05-18 Thread Penny Zheng
Hi Jan > -Original Message- > From: Jan Beulich > Sent: Tuesday, May 18, 2021 3:35 PM > To: Penny Zheng > Cc: Bertrand Marquis ; Wei Chen > ; nd ; xen-devel@lists.xenproject.org; > sstabell...@kernel.org; jul...@xen.org > Subject: Re: [PATCH 0

RE: [PATCH 08/10] xen/arm: introduce reserved_page_list

2021-05-18 Thread Penny Zheng
Hi Jan > -Original Message- > From: Jan Beulich > Sent: Tuesday, May 18, 2021 3:39 PM > To: Penny Zheng > Cc: Bertrand Marquis ; Wei Chen > ; nd ; xen-devel@lists.xenproject.org; > sstabell...@kernel.org; jul...@xen.org > Subject: Re: [PATCH 08/10] xen/arm: intr

[PATCH 10/10] xen/arm: introduce allocate_static_memory

2021-05-17 Thread Penny Zheng
GUEST_RAM0_BASE, GUEST_RAM1_BASE. Signed-off-by: Penny Zheng --- xen/arch/arm/domain_build.c | 157 +++- 1 file changed, 155 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 30b55588b7..9f662313ad 100644 --- a/xen

[PATCH 09/10] xen/arm: parse `xen,static-mem` info during domain construction

2021-05-17 Thread Penny Zheng
of allocate_static_memory is missing, and will be introduced later. It just BUG() out at the moment. Signed-off-by: Penny Zheng --- xen/arch/arm/domain_build.c | 58 xen/include/asm-arm/domain.h | 3 ++ 2 files changed, 56 insertions(+), 5 deletions(-) diff --git a/xen/arch/arm

[PATCH 08/10] xen/arm: introduce reserved_page_list

2021-05-17 Thread Penny Zheng
pages of static memory. Let page_to_list return reserved_page_list, when flag is PGC_reserved. Later, when domain get destroyed or restarted, those new values will help relinquish memory to proper place, not been given back to heap. Signed-off-by: Penny Zheng --- xen/common/domain.c | 1

[PATCH 07/10] xen/arm: intruduce alloc_domstatic_pages

2021-05-17 Thread Penny Zheng
those pages to one specific domain, including using page_set_reserved_owner to set its reserved domain owner. Signed-off-by: Penny Zheng --- xen/common/page_alloc.c | 53 + xen/include/xen/mm.h| 4 2 files changed, 57 insertions(+) diff --git

[PATCH 06/10] xen: replace order with nr_pfns in assign_pages for better compatibility

2021-05-17 Thread Penny Zheng
Function parameter order in assign_pages is always used as 1ul << order, referring to 2@order pages. Now, for better compatibility with new static memory, order shall be replaced with nr_pfns pointing to page count with no constraint, like 250MB. Signed-off-by: Penny Zheng --- xen/arch/

[PATCH 05/10] xen/arm: introduce alloc_staticmem_pages

2021-05-17 Thread Penny Zheng
) and free. It shall also do a set of necessary initialization, which are mostly the same ones in alloc_heap_pages, like, following the same cache-coherency policy and turning page status into PGC_state_used, etc. Signed-off-by: Penny Zheng --- xen/common/page_alloc.c | 64

[PATCH 02/10] xen/arm: handle static memory in dt_unreserved_regions

2021-05-17 Thread Penny Zheng
static memory regions overlap with memory nodes. The overlapping memory is reserved-memory and should be handled accordingly: dt_unreserved_regions should skip these regions the same way they are already skipping mem-reserved regions. Signed-off-by: Penny Zheng --- xen/arch/arm/setup.c | 39

[PATCH 01/10] xen/arm: introduce domain on Static Allocation

2021-05-17 Thread Penny Zheng
` property to define static memory nodes in device tree file. This patch also documents and parses this new attribute at boot time and stores related info in static_mem for later initialization. Signed-off-by: Penny Zheng --- docs/misc/arm/device-tree/booting.txt | 33 + xen/arch/arm

[PATCH 03/10] xen/arm: introduce PGC_reserved

2021-05-17 Thread Penny Zheng
page_get_reserved_owner and page_set_reserved_owner are designated to get/set reserved page's owner. Struct domain is enlarged to more than PAGE_SIZE, due to newly-imported struct reserved in struct page_info. Signed-off-by: Penny Zheng --- xen/include/asm-arm/mm.h | 16 +++- 1 file changed, 15

[PATCH 00/10] Domain on Static Allocation

2021-05-17 Thread Penny Zheng
features will be delievered through different patch series. Penny Zheng (10): xen/arm: introduce domain on Static Allocation xen/arm: handle static memory in dt_unreserved_regions xen/arm: introduce PGC_reserved xen/arm: static memory initialization xen/arm: introduce alloc_staticmem_pages

[PATCH 04/10] xen/arm: static memory initialization

2021-05-17 Thread Penny Zheng
the page in need Signed-off-by: Penny Zheng --- xen/arch/arm/setup.c| 2 ++ xen/common/page_alloc.c | 70 + xen/include/xen/mm.h| 3 ++ 3 files changed, 75 insertions(+) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index 444dbbd676

[PATCH] Xen: Design doc for 1:1 direct-map and static allocation

2021-05-17 Thread Penny Zheng
Create one design doc for 1:1 direct-map and static allocation. It is the first draft and aims to describe why and how we allocate 1:1 direct-map(guest physical == physical) domains, and why and how we let domains on static allocation. Signed-off-by: Penny Zheng --- docs/designs

RE: [RFC] design: design doc for 1:1 direct-map

2021-01-06 Thread Penny Zheng
> -Original Message- > From: Julien Grall > Sent: Tuesday, January 5, 2021 8:41 PM > To: Penny Zheng ; xen-devel@lists.xenproject.org; > sstabell...@kernel.org > Cc: Bertrand Marquis ; Kaly Xin > ; Wei Chen ; nd ; > Paul Durrant ; famzh...@amazon.com > Subjec

RE: [RFC] design: design doc for 1:1 direct-map

2020-12-09 Thread Penny Zheng
Hi Julien Thanks for the nice and detailed comments. (*^▽^*) Here are the replies: > -Original Message- > From: Julien Grall > Sent: Tuesday, December 8, 2020 5:07 PM > To: Penny Zheng ; xen-devel@lists.xenproject.org; > sstabell...@kernel.org > Cc: Bertrand Marquis

[RFC] design: design doc for 1:1 direct-map

2020-12-07 Thread Penny Zheng
== physical) domains. This document is partly based on Stefano Stabellini's patch serie v1: [direct-map DomUs]( https://lists.xenproject.org/archives/html/xen-devel/2020-04/msg00707.html). Signed-off-by: Penny Zheng --- For the part regarding allocating 1:1 direct-map domains with user-defined

RE: [PATCH] xen/arm: Add Cortex-A73 erratum 858921 workaround

2020-11-10 Thread Penny Zheng
> -Original Message- > From: Julien Grall > Sent: Monday, November 9, 2020 8:04 PM > To: Penny Zheng ; xen-devel@lists.xenproject.org; > sstabell...@kernel.org > Cc: Andre Przywara ; Bertrand Marquis > ; Wei Chen ; Kaly Xin > ; nd > Subject: Re: [PATCH] xen/

<    3   4   5   6   7   8