Re: [PATCH v7 1/9] xen/arm: introduce static shared memory

2022-09-07 Thread Julien Grall
Subject: Re: [PATCH v7 1/9] xen/arm: introduce static shared memory Hi Penny, On 06/09/2022 09:59, Penny Zheng wrote: static int __init early_scan_node(const void *fdt, int node, const char *name, int depth, u32

RE: [PATCH v7 1/9] xen/arm: introduce static shared memory

2022-09-06 Thread Penny Zheng
Hi Julien > -Original Message- > From: Julien Grall > Sent: Wednesday, September 7, 2022 2:01 AM > To: Penny Zheng ; xen-devel@lists.xenproject.org > Cc: Wei Chen ; Stefano Stabellini > ; Bertrand Marquis ; > Volodymyr Babchuk ; Henry Wang > > Subject:

[PATCH v7 1/9] xen/arm: introduce static shared memory

2022-09-06 Thread Penny Zheng
From: Penny Zheng This patch series introduces a new feature: setting up static shared memory on a dom0less system, through device tree configuration. This commit parses shared memory node at boot-time, and reserve it in bootinfo.reserved_mem to avoid other use. This commits proposes a new Kcon

Re: [PATCH v7 1/9] xen/arm: introduce static shared memory

2022-09-06 Thread Julien Grall
Hi Penny, On 06/09/2022 09:59, Penny Zheng wrote: static int __init early_scan_node(const void *fdt, int node, const char *name, int depth, u32 address_cells, u32 size_cells, @@ -386,6 +549,8 @@ static int __init early_sca

Re: [PATCH v7 1/9] xen/arm: introduce static shared memory

2022-09-06 Thread Julien Grall
Hi Penny, On 06/09/2022 09:59, Penny Zheng wrote: +for ( i = 0; i < mem->nr_banks; i++ ) +{ +/* + * Meet the following check: + * 1) The shm ID matches and the region exactly match + * 2) The shm ID doesn't match and the region doesn't overlap + *

[PATCH v7 1/9] xen/arm: introduce static shared memory

2022-09-06 Thread Penny Zheng
From: Penny Zheng This patch series introduces a new feature: setting up static shared memory on a dom0less system, through device tree configuration. This commit parses shared memory node at boot-time, and reserve it in bootinfo.reserved_mem to avoid other use. This commits proposes a new Kcon