From: Luca Miccio Subject: Re: [GSoC] Xen on ARM: create multiple guests from device tree Date: Thu, 30 Mar 2017 20:14:14 +0200 Message-ID: <2269F9CB-1227-46D9-918D-6D60073D6559@gmail.com> References: <58D17A85.5050709@gmail.com> <2A15827A-D2E8-4D7C-96F2-076A0C6AD8EC@gmail.com> <172A126F-34AD-48BC-A305-0C3F43623E76@gmail.com> <075C6339-D4FD-4518-BE67-B63D2B4960EF@gmail.com> <8dfa724f-091d-9f06-51c9-64d233bdea04@arm.com> <0095A93B-AC2C-4922-AD99-AA3F4277BAAD@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: multipart/mixed; boundary="===============1942127081704901504==" Return-path: Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cteaQ-0002Vl-Rj for xen-devel@lists.xenproject.org; Thu, 30 Mar 2017 18:14:19 +0000 Received: by mail-wr0-f196.google.com with SMTP id k6so13048822wre.3 for ; Thu, 30 Mar 2017 11:14:16 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Stefano Stabellini Cc: andre.przywara@arm.com, Dario.faggioli@citrix.com, Stefano Stabellini , Julien Grall , xen-devel@lists.xenproject.org, nd@arm.com List-Id: xen-devel@lists.xenproject.org --===============1942127081704901504== Content-Type: multipart/alternative; boundary="Apple-Mail=_72363C2C-6911-446C-896A-B4775D2FE49D" --Apple-Mail=_72363C2C-6911-446C-896A-B4775D2FE49D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Stefano, sorry if i am so late but my schedule was full this week. I am currently = preparing a presentation for an event here in Italy and i had no time to check even my emails. > Il giorno 29 mar 2017, alle ore 02:13, Stefano Stabellini = ha scritto: >=20 > On Tue, 28 Mar 2017, Stefano Stabellini wrote: >> Hello Luca, >>=20 >> did you manage to make any progress on the number of cores exposed by = the model? >>=20 I am still not using the psci and the XEN console says that he is = bringing up all the 4 CPUs. >> Thank you for the Makefile patch! If you have time, I encourage you = to >> fix one of the other small outstanding bugs, for example XEN-20 or >> XEN-11 (just the ability to load a Dom0 kernel bigger than 128MB or = just >> the ability to parse the new image_size field introduced in Linux = 3.17). >>=20 I will try to give it a look this weekend but i am not sure to have the = time to make e fix soon.=20 >> Finally, I would like to remind you of the upcoming deadline for >> applications submissions, which is the 3rd of April for GSoC, see: >>=20 >> http://marc.info/?l=3Dxen-devel&m=3D149071502330534 >>=20 >> The GSoC application system is >> https://summerofcode.withgoogle.com/get-started/. >>=20 >> Please give a look at the Xen Project application template here: >>=20 >> https://wiki.xenproject.org/wiki/GSoC_Student_Application_Template >>=20 >> It also includes an "Implementation Plan", where you have the chance = to >> explain the implementation plan for the project you would like to = apply >> for. >=20 > FYI I added some more information on this project here: > http://marc.info/?l=3Dxen-devel&m=3D149074542307880 = >=20 Thank you for all the information. Unfortunately I have not considered = all of my personal deadlines before attempting to approach this project. It was my mistake. Anyway I = will try with all my strength to fill up the application this weekend and try to submit it anyway. I = like the Xen project, and even if I will not be chosen for this task, surely I will continue to support = and follow it diligently. >=20 >>=20 >> On Thu, 23 Mar 2017, Luca Miccio wrote: >>> Hello Julien >>>> Il giorno 23 mar 2017, alle ore 15:49, Julien Grall = ha scritto: >>>>=20 >>>> Hello Luca, >>>>=20 >>>> On 23/03/17 02:23, Luca Miccio wrote: >>>>> I tried also this method but i had the same error. So i came up = with the >>>>> idea of removing the >>>>> psci method from the configure and also from the dtsi file that i = have >>>>> changed. >>>>=20 >>>> I guess you are using only 1 core in this case. Am I right? >>>>=20 >>> No, i am using 4 cores, with =E2=80=94cores option and i think that = i am using actually 4 cores >>> because on the model =E2=80=9Ccontrol panel=E2=80=9D i have 4 green = triangles which ones of them should >>> represent the number of cores and their status.=20 >>> It is only my opinion so, please, tell me if i am wrong. >>>>>=20 >>>>> With this configuration the model booted up correctly, even if the >>>>> process took about 10 minutes. >>>>> Just for my personal knowledge: it is normal that the boot is very = slow? >>>>> Is the rootfs that i=E2=80=99m using? >>>>=20 >>>> Booting a full distro on the model can be slow. Usually I write my = own initscript to start the necessary daemon and skip systemd. >>>>=20 >>>> 42sh> cat /root/init.sh >>>>=20 >>>> set -x >>>> mount -t proc proc /proc >>>> mount -t devtmpfs dev /dev >>>>=20 >>>> export HOME=3D/root >>>>=20 >>>> rm -rf /var/run/xenstore >>>> rm -rf /var/run/xen >>>>=20 >>>> /etc/init.d/xencommons start >>>>=20 >>>> exec /bin/bash >>>>=20 >>>> ------------------- >>>>=20 >>>> And I pass init=3D/root/init.sh on the Linux kernel command line. >>>>=20 >>> That helped a lot, thank you. >>>> Cheers, >>>>=20 >>>> --=20 >>>> Julien Grall >>>=20 >>> Luca. Thank you, Luca --Apple-Mail=_72363C2C-6911-446C-896A-B4775D2FE49D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi Stefano,
sorry if i am so late but my = schedule was full this week. I am currently preparing a presentation for = an event here
in Italy and i had no time to check = even my emails.

Il giorno 29 mar 2017, alle ore = 02:13, Stefano Stabellini <sstabellini@kernel.org> ha scritto:

On Tue, 28 Mar 2017, Stefano Stabellini = wrote:
Hello Luca,

did you manage to make any progress on the number of cores = exposed by the model?

I am still not using the psci = and the XEN console says that he is bringing up all the 4 CPUs.
Thank you for the Makefile = patch! If you have time, I encourage you to
fix one of the = other small outstanding bugs, for example XEN-20 or
XEN-11 = (just the ability to load a Dom0 kernel bigger than 128MB or just
the ability to parse the new image_size field introduced in = Linux 3.17).

I will try to give it a look = this weekend but i am not sure to have the time to
before attempting to approach this = project. It was my mistake. Anyway I will try with all my = strength
to fill up the application this weekend and try to = submit it anyway. I like the Xen project, and even if
I will = not be chosen for this task, surely I will continue to support and = follow it diligently.



On Thu, 23 = Mar 2017, Luca Miccio wrote:
Hello Julien
Il giorno 23 mar 2017, alle ore 15:49, Julien Grall <julien.grall@arm.com> ha scritto:

Hello Luca,

On 23/03/17 02:23, = Luca Miccio wrote:
I = tried also this method but i had the same error. So i came up with = the
idea of removing the
psci method from = the configure and also from the dtsi file that i have
changed.

I guess = you are using only 1 core in this case. Am I right?

No, i am using 4 cores, with =E2=80=94cores = option and i think that i am using actually 4 cores
because = on the model =E2=80=9Ccontrol panel=E2=80=9D i have 4 green triangles = which ones of them should
represent the number of cores = and their status. 
It is only my opinion so, please, tell me if i am wrong.

With this configuration the model booted up = correctly, even if the
process took about 10 minutes.
Just for my personal knowledge: it is normal that the boot is = very slow?
Is the rootfs that i=E2=80=99m using?

Booting a full distro on the = model can be slow. Usually I write my own initscript to start the = necessary daemon and skip systemd.

42sh> = cat /root/init.sh

set -x
mount = -t proc proc  /proc
mount -t devtmpfs dev /dev

export HOME=3D/root

rm -rf /var/run/xenstore
rm -rf /var/run/xen

/etc/init.d/xencommons start

exec /bin/bash

-------------------

And I pass = init=3D/root/init.sh on the Linux kernel command line.

That helped a lot, thank you.
Cheers,

-- 
Julien Grall

Luca.
Thank = you,
Luca

= --Apple-Mail=_72363C2C-6911-446C-896A-B4775D2FE49D-- --===============1942127081704901504== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============1942127081704901504==--