From: "Simon Martin" Subject: Re: OS porting on Xen on ARM Date: Tue, 17 Dec 2013 11:44:45 +0000 Message-ID: References: <1387278345.8738.80.camel@Solace> Reply-To: Simon Martin Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0610955651999469256==" Return-path: In-Reply-To: <1387278345.8738.80.camel@Solace> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli , Arianna Avanzini Cc: Julien Grall , Stefano Stabellini , Claudio Scordino , xen-devel , Ian Campbell , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --===============0610955651999469256== Content-Type: multipart/related; boundary="=_wombat.nemo.cl-25764-1387280773-0001-2" This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_wombat.nemo.cl-25764-1387280773-0001-2 Content-Type: multipart/alternative; boundary="=_wombat.nemo.cl-25764-1387280773-0001-3" This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_wombat.nemo.cl-25764-1387280773-0001-3 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable Good luck Arianna. When I started my micro-pv implementation it took me a long time to get=20 anything to run. It eventually ended up being that I hadn't set the=20 XEN_INTERFACE macro in the makefile. Please don't get caught out by that= =20 one! The rest was reading the mini-os code, the documentation, web=20 search engines, and asking questions on this mail list. Regards. On 17/12/2013 08:05:45, "Dario Faggioli" =20 wrote: >Hi Arianna! > >First of all, some context for the Xen on ARM people that I'm Cc-ing. >Arianna will be working on porting an embedded --targeted specifically >at automotive-- OS on top of Xen on ARM. The OS is Erika, and Claudio >could give any kind of information about it (and correct me, if I said >something wrong): >http://wiki.automotive.linuxfoundation.org/index.php/Erika_Enterprise_Open= -Source_RTOS >http://erika.tuxfamily.org/ > >This mail is mainly meant at giving her some clues and pointers about >how to get on with it. I'll do my best but, given it's ARM, with which >I'm not super familiar with, feel free to chime in and fill the gaps or >correcting the mistakes I may make. > >The goal is (for now) to have the Erika OS running as a DomU, on top of >a Linux Dom0. She'll be using a Cubie* as a platform. There is >definitely some similar/related activity going on (writing/porting >embedded OSes on Xen) these days, but, if I'm not mistaken, this would >be the first example of doing it on ARM (except, perhaps, from Julien's >work on FreeBSD, but that's not embedded! )... Pretty cool, eh? > >Arianna, all the information about running Xen on Allwinner is here: >http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/Allwinner >Also, there is a thread right about this on xen-devel going on in=20 >these. >Perhaps you can have a look at it: >http://bugs.xenproject.org/xen/mid/%3CWC20131216075445.88000B@perkbv.com%3= E >(look at the whole thread, e.g., via marc.info). > >About Xen in embedded in general, there has been a thread recently, >which may contain some useful info. In case you want to skim through=20 >it, >here it is: >http://bugs.xenproject.org/xen/mid/%3C1384802050.16918.219.camel@Solace%3E > >About how a small, and an hopefully easy enough to understand, OS that >runs as a Xen DomU looks like, check out Mini-OS in the Xen Source=20 >tree: >http://xenbits.xen.org/gitweb/?p=3Dxen.git;a=3Dtree;f=3Dextras/mini-os;hb= =3DHEAD >As I said, it's small, and definitely simpler, for instance, than=20 >Linux, >but it's quite feature complete, which is something you probably won't >need. > >In fact, there are people working on even smaller and simpler=20 >solutions, >for the most diverse purposes. Some links below (again, check the=20 >entire >threads): >http://bugs.xenproject.org/xen/mid/%3Cem4158cadd-9eab-4a26-80ba-b3a3b311be= e2@smartin-alien%3E >http://bugs.xenproject.org/xen/mid/%3Cem40e5807b-ac20-4c2a-ad66-d1056397e0= 7b@smartin-alien%3E >http://bugs.xenproject.org/xen/mid/%3Cembc004940-1dbb-4924-bbab-76901c75e4= 4e@smartin-alien%3E >http://osdir.com/ml/general/2013-12/msg26912.html >http://bugs.xenproject.org/xen/mid/%3C723A93B1-0345-42C6-949B-F6070CE40043= @recoil.org%3E > >Simon also sent the code out already, here:=20 >https://github.com/FurryFuttock/micro-pv >For anything about MirageOS: http://openmirage.org/ ,=20 >https://github.com/mirage/ > >In case you need something bigger, Julien ported FreeBSD on Xen on ARM >(as a DomU). That lives here (Julien, correct me if I'm wrong): >http://xenbits.xen.org/gitweb/?p=3Dpeople/julieng/freebsd.git;a=3Dshortlog= ;h=3Drefs/heads/xen-arm >I expect this to be super-overkill, but perhaps it could help to get an >idea of what an actual port (rather than a 'write from scratch') would >require. > >Last but not least, the hypercall interface official documentation is >all in the public header files, in the repository, as well as here: >http://xenbits.xen.org/docs/unstable-staging/hypercall/index.html >http://xenbits.xen.org/docs/unstable-staging/hypercall/arm/index.html > >That is all for now I guess... Ask if there is anything you do not >understand that you think this community could help with. > >Best Regards, >Dario > >-- ><> (Raistlin Majere) >----------------------------------------------------------------- >Dario Faggioli, Ph.D, http://about.me/dario.faggioli >Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) > --=_wombat.nemo.cl-25764-1387280773-0001-3 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Good luck Arianna.
 
When I started my micro-pv implementation it took me a long= time to get anything to run. It eventually ended up being that I hadn't= set the XEN_INTERFACE macro in the makefile. Please don't get caught out= by that one! The rest was reading the mini-os code, the document= ation, web search engines, and asking questions on this mail list.
 
Regards.
 
 
On 17/12/2013 08:05:45, "Dario Faggioli" <dario.faggioli@citrix.com> wrote:
 
Hi Arianna!
 
First of all, some context for the Xen on ARM people that I'm Cc-ing.=
Arianna will be working on porting an embedded --targeted specifically=
at automotive-- OS on top of Xen on ARM. The OS is Erika, and Claudio=
could give any kind of information about it (and correct me, if I said=
something wrong):
 
This mail is mainly meant at giving her some clues and pointers about=
how to get on with it. I'll do my best but, given it's ARM, with which=
I'm not super familiar with, feel free to chime in and fill the gaps= or
correcting the mistakes I may make.
 
The goal is (for now) to have the Erika OS running as a DomU, on top= of
a Linux Dom0. She'll be using a Cubie* as a platform. There is
definitely some similar/related activity going on (writing/porting =
embedded OSes on Xen) these days, but, if I'm not mistaken, this would=
be the first example of doing it on ARM (except, perhaps, from Julien'= s
work on FreeBSD, but that's not embedded! 3D:-P)... Pretty cool, eh?
 
Arianna, all the information about running Xen on Allwinner is here:=
Also, there is a thread right about this on xen-devel going on in thes= e.
Perhaps you can have a look at it:
(look at the whole thread, e.g., via marc.info).
 
About Xen in embedded in general, there has been a thread recently,=
which may contain some useful info. In case you want to skim through= it,
here it is:
 
About how a small, and an hopefully easy enough to understand, OS that=
runs as a Xen DomU looks like, check out Mini-OS in the Xen Source = tree:
As I said, it's small, and definitely simpler, for instance, than Linu= x,
but it's quite feature complete, which is something you probably won't=
need.
 
In fact, there are people working on even smaller and simpler solution= s,
for the most diverse purposes. Some links below (again, check the enti= re
threads):
 
Simon also sent the code out already, here: https://github.com/FurryFuttock/micro-pv =
 
In case you need something bigger, Julien ported FreeBSD on Xen on = ARM
(as a DomU). That lives here (Julien, correct me if I'm wrong):
http://xenbits.xen.org/gitweb/?p= =3Dpeople/julieng/freebsd.git;a=3Dshortlog;h=3Drefs/heads/xen-arm
I expect this to be super-overkill, but perhaps it could help to get= an
idea of what an actual port (rather than a 'write from scratch') would=
require.
 
Last but not least, the hypercall interface official documentation = is
all in the public header files, in the repository, as well as here:=
 
That is all for now I guess... Ask if there is anything you do not =
understand that you think this community could help with. 3D=
 
Best Regards,
Dario
 
--
<<This happens because I choose it to happen!>> (Raistlin= Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http:= //about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)=
 
--=_wombat.nemo.cl-25764-1387280773-0001-3-- --=_wombat.nemo.cl-25764-1387280773-0001-2 Content-Type: image/png Content-Transfer-Encoding: base64 Content-Disposition: inline Content-Id: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8YQUAAAJSSURBVDhPnYxNSFRhGIXfRZtmkbQJ2hQEE0G0skVFORNGPxZTmS50KENoIlrYooii NmEgrdpIXKVMJby46EeIoq7j34zSJCHGkA6o1TBaXtFLf3Sv45y+8800tHDV4nzvd97zvEc+d4ik O0XmukS+mOKb75aQkqFkKSUKkz7EnBx53gHIfwoFfiVzMbpz0v14y1lZaPfw7XGOk5575uRWK/Bn zLW9P5PnbSwYwLyS3Q4sdOYnvdozJ0e+WDB1X3wzbWL+GA/bswM1eN20RSsTu4jc3D09/+6YkyPP O12QapFQpmdbKjd9AbNWBdKvjiNtVWGuP4zczE096blnTo4873RBslmM7++qnJWxY3CGDiGbdVEa MeDET2EleVZPeu6ZkyPPO10wdlcs932Nl02UYym6T4MRYxRLfeXIjh7Vk557nSuOPO90QeKOJLLj 1bnleBnyCmJ5mNr/j5TnvsCQ550uiDWK9WukwvMG9uDDw63wBvcqlcEbCigF85Ne7XWuOPK80wXW DTG+Pt/tuL278OT6OphXSvCicRNiZ7YX9fL2ZnRfXa/yEpAjzztd8PSShGJNG1JuXwBuNAh38Ai8 +EnYlZVYbmjQk557nSuOPO90waNz4uuoF3PiwQ7b7T+s4Gp4b+owfe0gJgIBPem5Z06OPO90QWtY pKVW/G11a3qTraW2OxyG9zaCxf7T+NRzQk967pmTI8+7YoFRI9JcLX4l89nljZNTXQccJ1rr/R6p z3HSc8+cHPnVCiifUkjJULKUEoVJzz1zzRcL+Py/IH8A8FuEpq41LHMAAAAASUVORK5CYII= --=_wombat.nemo.cl-25764-1387280773-0001-2 Content-Type: image/png Content-Transfer-Encoding: base64 Content-Disposition: inline Content-Id: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8YQUAAAJXSURBVDhPnZBPSJNxGMefQ5d2SDpUdCkIVl26tIiKUsOgWLEO6WHuUAgtoogORVDZ IQwkCLpIvEqZSvjiIZcQSb3OmZvCHCKLoQ7McKi1rXzpH72v2/v0fH9bq4OnBt993+f5fp7vCy8t dBNleoiWe4k+6uTK9pFPpIkMUbzsmH3IwYHHHTOXHsoFbpH+Jbxv1vpw1yzmu2z++tyBY8YeObi1 CtyL+vqhH6kLOc5rzFlRros531NyzLJHDg58pWDuMbnmO0n/ngzklkb8/KZ1h9Ji9BI7y4+U/9kh Bwced6og3U6+xYHdaef9RV4yvJx5fZozRj0vRwLszDcrx4w9cnDgcacKUm2kfZusN4tTp9gcPc6F gsWeoMZm7AwXU+eUY8YeOTjwuFMFUw/JsN757UK8jlfCRxQY1BK8MlzHhcRJ5ZixV7lw4HGnCuL3 KV5INjirsWouqZZXx6Cj/0hm7MsMeNypgmgLGT/HvbY9coinn+5k++1hUTXbozWi2pJjlv10l+TC gcedKjBuk/bp5UHTGjrA/Tc3sH69il+1bKt8eWjw3nbuu7GR+29VMTjwuFMFoavki7ZuTlvDNZwN 7edQ8yaeScYk+/vDPHBni8rBgcedRETPzpOru4n0mSd7clbkBOcHvTyh7eXIg13q7fBEu4c/yx45 OPC4UwUdAaL2RnJ3nl03lOrw5KyxANsTQbYnL4uulFxm7JGDA4+7SoHmJ2prILdIf3Ft6+xc7zHT DDfav8abHDhm7JGDA79WAeQS+USayBDFy44Ze+SKrxTg7//F9Bs8U4bjEi0nagAAAABJRU5ErkJg gg== --=_wombat.nemo.cl-25764-1387280773-0001-2-- --===============0610955651999469256== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============0610955651999469256==--