Re: [PATCH] xen/arm: Prevent Dom0 to be loaded when using dom0less

2021-03-18 Thread Luca Fancellu
Hi Julien, I will create a new serie with all the improvements we have discussed. Thank you for your time. Cheers, Luca > On 18 Mar 2021, at 11:13, Julien Grall wrote: > > > > On 17/03/2021 17:04, Luca Fancellu wrote: >> Hi, > > Hi Luca, > >> I’ve checked the common code and the arm part

Re: [PATCH] xen/arm: Prevent Dom0 to be loaded when using dom0less

2021-03-18 Thread Julien Grall
On 17/03/2021 17:04, Luca Fancellu wrote: Hi, Hi Luca, I’ve checked the common code and the arm part, I can confirm that the domid 0 is never allocated even if the domain 0 is not present, here the only places where domain_create(…) is called using a variable value: Thanks for checking

Re: [PATCH] xen/arm: Prevent Dom0 to be loaded when using dom0less

2021-03-17 Thread Luca Fancellu
Hi, I’ve checked the common code and the arm part, I can confirm that the domid 0 is never allocated even if the domain 0 is not present, here the only places where domain_create(…) is called using a variable value: 1) xen/arch/arm/domain_build.c d = domain_create(++max_init_domid, &d_cfg, fals

Re: [PATCH] xen/arm: Prevent Dom0 to be loaded when using dom0less

2021-03-12 Thread Julien Grall
Hi Luca, On 12/03/2021 09:38, Luca Fancellu wrote: + size_t __read_mostly dcache_line_bytes; /* C entry point for boot CPU */ @@ -804,7 +833,7 @@ void __init start_xen(unsigned long boot_phys_offset, int cpus, i; const char *cmdline; struct bootmodule *xen_bootmodule; -

Re: [PATCH] xen/arm: Prevent Dom0 to be loaded when using dom0less

2021-03-12 Thread Luca Fancellu
Hi all, > On 8 Mar 2021, at 14:12, Julien Grall wrote: > > Hi Luca, > > On 08/03/2021 11:56, Luca Fancellu wrote: >> This patch prevents the dom0 to be loaded skipping its >> building and going forward to build domUs when the dom0 >> kernel is not found and at least one domU is present. > > As

Re: [PATCH] xen/arm: Prevent Dom0 to be loaded when using dom0less

2021-03-08 Thread Stefano Stabellini
On Mon, 8 Mar 2021, Luca Fancellu wrote: > This patch prevents the dom0 to be loaded skipping its > building and going forward to build domUs when the dom0 > kernel is not found and at least one domU is present. > > Signed-off-by: Luca Fancellu > --- > xen/arch/arm/setup.c | 83 +

Re: [PATCH] xen/arm: Prevent Dom0 to be loaded when using dom0less

2021-03-08 Thread Stefano Stabellini
On Mon, 8 Mar 2021, Jan Beulich wrote: > On 08.03.2021 15:12, Julien Grall wrote: > > On 08/03/2021 11:56, Luca Fancellu wrote: > >> This patch prevents the dom0 to be loaded skipping its > >> building and going forward to build domUs when the dom0 > >> kernel is not found and at least one domU is

Re: [PATCH] xen/arm: Prevent Dom0 to be loaded when using dom0less

2021-03-08 Thread Jan Beulich
On 08.03.2021 15:12, Julien Grall wrote: > On 08/03/2021 11:56, Luca Fancellu wrote: >> This patch prevents the dom0 to be loaded skipping its >> building and going forward to build domUs when the dom0 >> kernel is not found and at least one domU is present. > > As you are skipping dom0, the domid

Re: [PATCH] xen/arm: Prevent Dom0 to be loaded when using dom0less

2021-03-08 Thread Julien Grall
Hi Luca, On 08/03/2021 11:56, Luca Fancellu wrote: This patch prevents the dom0 to be loaded skipping its building and going forward to build domUs when the dom0 kernel is not found and at least one domU is present. As you are skipping dom0, the domid 0 will not be usable for another domain.

Re: [PATCH] xen/arm: Prevent Dom0 to be loaded when using dom0less

2021-03-08 Thread Luca Fancellu
> On 8 Mar 2021, at 11:59, Julien Grall wrote: > > Hi Luca, > > On 08/03/2021 11:56, Luca Fancellu wrote: >> This patch prevents the dom0 to be loaded skipping its >> building and going forward to build domUs when the dom0 >> kernel is not found and at least one domU is present. >> Signed-off

Re: [PATCH] xen/arm: Prevent Dom0 to be loaded when using dom0less

2021-03-08 Thread Julien Grall
Hi Luca, On 08/03/2021 11:56, Luca Fancellu wrote: This patch prevents the dom0 to be loaded skipping its building and going forward to build domUs when the dom0 kernel is not found and at least one domU is present. Signed-off-by: Luca Fancellu I have received 3 versions of this patch, can yo

[PATCH] xen/arm: Prevent Dom0 to be loaded when using dom0less

2021-03-08 Thread Luca Fancellu
This patch prevents the dom0 to be loaded skipping its building and going forward to build domUs when the dom0 kernel is not found and at least one domU is present. Signed-off-by: Luca Fancellu --- xen/arch/arm/setup.c | 83 +++- 1 file changed, 59 inserti

[PATCH] xen/arm: Prevent Dom0 to be loaded when using dom0less

2021-03-08 Thread Luca Fancellu
This patch prevents the dom0 to be loaded skipping its building and going forward to build domUs when the dom0 kernel is not found and at least one domU is present. Signed-off-by: Luca Fancellu Change-Id: Ieb9630b80cc7be7688d7d5fff3f839958f142ac0 --- xen/arch/arm/setup.c | 83 +++

[PATCH] xen/arm: Prevent Dom0 to be loaded when using dom0less

2021-03-08 Thread Luca Fancellu
This patch prevents the dom0 to be loaded skipping its building and going forward to build domUs when the dom0 kernel is not found and at least one domU is present. Signed-off-by: Luca Fancellu Change-Id: Ieb9630b80cc7be7688d7d5fff3f839958f142ac0 --- xen/arch/arm/setup.c | 83 +++