|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 8/9] xen/arm: check `xen,static-mem` property during domain construction
On 06/07/2021 07:31, Penny Zheng wrote: Hi Hi, -----Original Message----- From: Julien Grall <julien@xxxxxxx> Sent: Saturday, July 3, 2021 9:26 PM To: Penny Zheng <Penny.Zheng@xxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx; sstabellini@xxxxxxxxxx; jbeulich@xxxxxxxx Cc: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>; Wei Chen <Wei.Chen@xxxxxxx> Subject: Re: [PATCH 8/9] xen/arm: check `xen,static-mem` property during domain construction Hi Penny, On 07/06/2021 03:43, Penny Zheng wrote:This commit checks `xen,static-mem` device tree property in /domUx node, to determine whether domain is on Static Allocation, when constructing domain during boot-up. Right now, the implementation of allocate_static_memory is missing, and will be introduced later. It just BUG() out at the moment. And if the `memory` property and `xen,static-mem` are both set, it shall be verified that if the memory size defined in both is consistent. Signed-off-by: Penny Zheng <penny.zheng@xxxxxxx> --- changes v2: - remove parsing procedure here - check the consistency when `xen,static-mem` and `memory` are both defined --- xen/arch/arm/domain_build.c | 37 +++++++++++++++++++++++++++++++------1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 282416e74d..4166d7993c 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -2424,23 +2424,47 @@ static int __init construct_domU(struct domain*d, I really meant "parse and allocate" in a iteration. My comment this time is the parsing/allocation for static memory should happen close to when the allocation for dynamic memory is done. After all you are allocating memory for domain, so it makes more sense to have the two different way to allocate cloe to each other. Hmm... I am not sure this is necessary, the property "memory" is not marked as optional even after your patch. However, I would clarify that all the memory should either be allocated statically or dynamically... Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |