From anil@recoil.org Sun Feb 03 12:23:13 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U1ybJ-0005IN-Qh (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 03 Feb 2013 12:23:13 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1441715
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:2885
	helo=dark.recoil.org)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with smtp id 1U1ybI-00059u-YT (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 03 Feb 2013 12:23:13 +0000
Received: (qmail 9488 invoked by uid 634); 3 Feb 2013 12:23:12 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.38]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Sun, 03 Feb 2013 12:23:12 +0000
Content-Type: text/plain; charset=GB2312
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: big data structure problem in ocaml
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <000501cdfe7b$d5b98470$812c8d50$@gmail.com>
Date: Sun, 3 Feb 2013 12:23:13 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <1483685C-2E52-45D3-925C-6828F6D22CC9@recoil.org>
References: <000501cdfe7b$d5b98470$812c8d50$@gmail.com>
To: Yiming Zhang <sdiris@gmail.com>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: cl-mirage@lists.cam.ac.uk
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 03 Feb 2013 12:23:13 -0000
Content-Length: 2859
Lines: 92

This is the built-in Hashtbl in OCaml, which is described at:
http://caml.inria.fr/pub/docs/manual-ocaml/libref/Hashtbl.html

It's used throughout Mirage, so just grep for 'Hashtbl' in (for example)
the DNS server, and ask any questions you might have about its use here.
Do remember that you want to test out its performance characteristics on
UNIX and not Xen first, to take advantage of local profiling tools.

-anil

On 29 Jan 2013, at 23:53, Yiming Zhang <sdiris@gmail.com> wrote:

> Thanks Anil, I will try it.
>=20
> About "mutable Hashtbl", is there any example ocaml code for it (or I =
can
> just reference ocaml-openflow suggested by Thomas)? I have done =
similar
> things by C, but I have no idea how to implement it by ocaml :-(
>=20
> Cheers,
> Yimig
>=20
>=20
> -----=D3=CA=BC=FE=D4=AD=BC=FE-----
> =B7=A2=BC=FE=C8=CB: Anil Madhavapeddy [mailto:anil@recoil.org]=20
> =B7=A2=CB=CD=CA=B1=BC=E4: 2013=C4=EA1=D4=C229=C8=D5 17:23
> =CA=D5=BC=FE=C8=CB: Thomas Gazagnaire
> =B3=AD=CB=CD: Yiming Zhang; cl-mirage@lists.cam.ac.uk
> =D6=F7=CC=E2: Re: big data structure problem in ocaml
>=20
> On 28 Jan 2013, at 19:54, Thomas Gazagnaire =
<thomas.gazagnaire@gmail.com>
> wrote:
>=20
>>> ********************************
>>> module OrdKey =3D struct
>>> type t =3D string
>>> let compare =3D Pervasives.compare
>>> end
>>=20
>> If you keys are always be strings, I would suggest using the =
optimized
> String.compare.
>>=20
>>> module KVMap =3D Map.Make(OrdKey)
>>> let kv =3D ref KVMap.empty
>>> =A1=AD=A1=AD
>>> (* each time when a new kv pair is set, the following is invoked *)=20=

>>> kv :=3D KVMap.add !key_in_process line !kv
>>> **********************************
>>=20
>> You are not copying kv here, you are just setting the box where you =
store
> the kv tree with an updated tree, so you can't do much.
>>=20
>>> Does anyone have some hint? Or there are example code for similar=20
>>> problems in the ocaml world=A3=BF
>>=20
>> What are you testing exactly ? Do you care about fast reads or fast =
writes
> ? Do you clean-up your cache regularly or is it an ever-growing one =
(which
> could explain the performance issues).
>>=20
>> Some hints: usually a cheap way to build fixed-size cache is to use
> hash-indexed arrays: if you have few hash collision and a rough idea =
of the
> number of elements you want to store, that's pretty efficient. An =
example
> here:
>>=20
>> =
https://github.com/samoht/ocaml-openflow/blob/master/controller/learni
>> ng_switch.ml#L41
>=20
> Note also that this sort of data structure work is better done in UNIX =
and
> userspace, where you can use conventional profiling tools to measure =
the
> size complexity.
>=20
> You could also consider trying a normal mutable Hashtbl instead of a
> functional Map, which may operate better depending on your specific
> workload...
>=20
> -anil=3D
>=20
>=20



From mailinglists.tech@gmail.com Mon Feb 04 10:29:22 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U2JIg-0004iv-J4 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <mailinglists.tech@gmail.com>);
	Mon, 04 Feb 2013 10:29:22 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.8 from SpamAssassin-3.3.2-1441874 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.212.171 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (mailinglists.tech[at]gmail.com)
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	*      author's domain
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-wi0-f171.google.com ([209.85.212.171]:60392)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1U2JIf-0003Nd-r7 (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <mailinglists.tech@gmail.com>);
	Mon, 04 Feb 2013 10:29:22 +0000
Received: by mail-wi0-f171.google.com with SMTP id hn17so1400884wib.16
	for <cl-mirage@lists.cam.ac.uk>; Mon, 04 Feb 2013 02:29:21 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.180.90.147 with SMTP id bw19mr9395196wib.28.1359973761273;
	Mon, 04 Feb 2013 02:29:21 -0800 (PST)
Received: by 10.227.203.18 with HTTP; Mon, 4 Feb 2013 02:29:21 -0800 (PST)
Date: Mon, 4 Feb 2013 11:29:21 +0100
Message-ID: <CAMCOOJtbjHX0LzQnSMgtQnT_P677chEuYHAM8y-X-Jebboss1w@mail.gmail.com>
Subject: A question about mirage
From: tech mailinglists <mailinglists.tech@gmail.com>
To: cl-mirage <cl-mirage@lists.cam.ac.uk>
Content-Type: multipart/alternative; boundary=f46d04389251f1ced604d4e390d4
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 04 Feb 2013 10:29:22 -0000
Content-Length: 683
Lines: 19

--f46d04389251f1ced604d4e390d4
Content-Type: text/plain; charset=ISO-8859-1

Hello all,

I have a question about the mirage OS. Is it possible to run every OCaml
Source Code in mirage? So would it be possible to run for example a
webserver written in OCaml or MLDonkey in mirage?

Best Regards

--f46d04389251f1ced604d4e390d4
Content-Type: text/html; charset=ISO-8859-1

<div dir="ltr"><div><div>Hello all,<br><br></div>I have a question about the mirage OS. Is it possible to run every OCaml Source Code in mirage? So would it be possible to run for example a webserver written in OCaml or MLDonkey in mirage?<br>
<br></div>Best Regards<br></div>

--f46d04389251f1ced604d4e390d4--


From anil@recoil.org Mon Feb 04 10:31:59 2013
Received: from ppsw-41.csi.cam.ac.uk ([131.111.8.141])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U2JLC-0004tu-VS (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 04 Feb 2013 10:31:58 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1441874
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:17786
	helo=dark.recoil.org)
	by ppsw-41.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with smtp id 1U2JLB-0000BN-Q5 (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 04 Feb 2013 10:31:58 +0000
Received: (qmail 11755 invoked by uid 634); 4 Feb 2013 10:31:56 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from host81-149-102-120.in-addr.btopenworld.com (HELO [192.168.1.7])
	(81.149.102.120)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Mon, 04 Feb 2013 10:31:56 +0000
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: A question about mirage
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAMCOOJtbjHX0LzQnSMgtQnT_P677chEuYHAM8y-X-Jebboss1w@mail.gmail.com>
Date: Mon, 4 Feb 2013 10:31:53 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <67AE5BA3-D8F6-4E80-B695-EB3825352071@recoil.org>
References: <CAMCOOJtbjHX0LzQnSMgtQnT_P677chEuYHAM8y-X-Jebboss1w@mail.gmail.com>
To: tech mailinglists <mailinglists.tech@gmail.com>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: Raphael Proust <raphael.proust@cl.cam.ac.uk>,
	cl-mirage <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 04 Feb 2013 10:31:59 -0000
Content-Length: 865
Lines: 24

Not yet; you have to use the Mirage base module which provides the OS =
abstraction. However, some software is already written to be functorised =
across an OS module for portability, such as the Arakoon database engine =
(arakoon.org).  These were quite easy to port to Mirage.  Others, such =
as MLDonkey, use the Unix module extensively and are harder.

Raphael Proust is looking into a Mirage/UNIX compatibility layer, so =
this is something we'll expand on more later on in the year once a =
stable first version has been released.

-anil

On 4 Feb 2013, at 10:29, tech mailinglists <mailinglists.tech@gmail.com> =
wrote:

> Hello all,
>=20
> I have a question about the mirage OS. Is it possible to run every =
OCaml Source Code in mirage? So would it be possible to run for example =
a webserver written in OCaml or MLDonkey in mirage?
>=20
> Best Regards



From mailinglists.tech@gmail.com Mon Feb 04 12:11:08 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U2KtA-0003Pp-Af (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <mailinglists.tech@gmail.com>);
	Mon, 04 Feb 2013 12:11:08 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.8 from SpamAssassin-3.3.2-1441874 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [74.125.82.47 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (mailinglists.tech[at]gmail.com)
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	*      author's domain
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-wg0-f47.google.com ([74.125.82.47]:50842)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1U2Kt9-0007nY-rL (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <mailinglists.tech@gmail.com>);
	Mon, 04 Feb 2013 12:11:08 +0000
Received: by mail-wg0-f47.google.com with SMTP id dr13so4716813wgb.14
	for <cl-mirage@lists.cam.ac.uk>; Mon, 04 Feb 2013 04:11:07 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.194.78.236 with SMTP id e12mr34603671wjx.32.1359979867254;
	Mon, 04 Feb 2013 04:11:07 -0800 (PST)
Received: by 10.227.203.18 with HTTP; Mon, 4 Feb 2013 04:11:07 -0800 (PST)
In-Reply-To: <67AE5BA3-D8F6-4E80-B695-EB3825352071@recoil.org>
References: <CAMCOOJtbjHX0LzQnSMgtQnT_P677chEuYHAM8y-X-Jebboss1w@mail.gmail.com>
	<67AE5BA3-D8F6-4E80-B695-EB3825352071@recoil.org>
Date: Mon, 4 Feb 2013 13:11:07 +0100
Message-ID: <CAMCOOJtVvwxKj+u3Z1AcUJO3deD5eU6rHbVpDv0LWBgtmE91fg@mail.gmail.com>
Subject: Re: A question about mirage
From: tech mailinglists <mailinglists.tech@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: multipart/alternative; boundary=047d7bf0d330e3ae1304d4e4fc2b
Cc: Raphael Proust <raphael.proust@cl.cam.ac.uk>,
	cl-mirage <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 04 Feb 2013 12:11:08 -0000
Content-Length: 4451
Lines: 103

--047d7bf0d330e3ae1304d4e4fc2b
Content-Type: text/plain; charset=ISO-8859-1

Hello Anil,

thanks for your reply. This sounds very good to me. I think that Mirage is
a great project, I think that the building of specialized appliances will
be the future.

I have another question about a special Mirage usecase: I builded a
oxenstored mirage appliance which worked without problems. Now I would like
to run it on a Xen 4.2.1 with Linux 3.7.4. I talked already with some
persons and they say that there are problems with XSM/FLASK. Daniel de
Graaf wrote an XSM/FLASK ruleset which should work with 4.3 unstable in
this mailinglist post:
http://lists.xen.org/archives/html/xen-devel/2013-01/msg00956.html

Do you know whether it's possible to modify this ruleset so that oxenstored
could work on 4.2.1 and the given XSM/FLASK features in this version?

Best Regards


2013/2/4 Anil Madhavapeddy <anil@recoil.org>

> Not yet; you have to use the Mirage base module which provides the OS
> abstraction. However, some software is already written to be functorised
> across an OS module for portability, such as the Arakoon database engine (
> arakoon.org).  These were quite easy to port to Mirage.  Others, such as
> MLDonkey, use the Unix module extensively and are harder.
>
> Raphael Proust is looking into a Mirage/UNIX compatibility layer, so this
> is something we'll expand on more later on in the year once a stable first
> version has been released.
>
> -anil
>
> On 4 Feb 2013, at 10:29, tech mailinglists <mailinglists.tech@gmail.com>
> wrote:
>
> > Hello all,
> >
> > I have a question about the mirage OS. Is it possible to run every OCaml
> Source Code in mirage? So would it be possible to run for example a
> webserver written in OCaml or MLDonkey in mirage?
> >
> > Best Regards
>
>

--047d7bf0d330e3ae1304d4e4fc2b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div><div>Hello Anil,<br><br></div>thanks for yo=
ur reply. This sounds very good to me. I think that Mirage is a great proje=
ct, I think that the building of specialized appliances will be the future.=
<br>
<br></div>I have another question about a special Mirage usecase: I builded=
 a oxenstored mirage appliance which worked without problems. Now I would l=
ike to run it on a Xen 4.2.1 with Linux 3.7.4. I talked already with some p=
ersons and they say that there are problems with XSM/FLASK. Daniel de Graaf=
 wrote an XSM/FLASK ruleset which should work with 4.3 unstable in this mai=
linglist post: <a href=3D"http://lists.xen.org/archives/html/xen-devel/2013=
-01/msg00956.html">http://lists.xen.org/archives/html/xen-devel/2013-01/msg=
00956.html</a><br>
<br></div>Do you know whether it&#39;s possible to modify this ruleset so t=
hat oxenstored could work on 4.2.1 and the given XSM/FLASK features in this=
 version?<br><br></div>Best Regards<br></div><div class=3D"gmail_extra"><br=
>
<br><div class=3D"gmail_quote">2013/2/4 Anil Madhavapeddy <span dir=3D"ltr"=
>&lt;<a href=3D"mailto:anil@recoil.org" target=3D"_blank">anil@recoil.org</=
a>&gt;</span><br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex">
Not yet; you have to use the Mirage base module which provides the OS abstr=
action. However, some software is already written to be functorised across =
an OS module for portability, such as the Arakoon database engine (<a href=
=3D"http://arakoon.org" target=3D"_blank">arakoon.org</a>). =A0These were q=
uite easy to port to Mirage. =A0Others, such as MLDonkey, use the Unix modu=
le extensively and are harder.<br>

<br>
Raphael Proust is looking into a Mirage/UNIX compatibility layer, so this i=
s something we&#39;ll expand on more later on in the year once a stable fir=
st version has been released.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-anil<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
On 4 Feb 2013, at 10:29, tech mailinglists &lt;<a href=3D"mailto:mailinglis=
ts.tech@gmail.com">mailinglists.tech@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hello all,<br>
&gt;<br>
&gt; I have a question about the mirage OS. Is it possible to run every OCa=
ml Source Code in mirage? So would it be possible to run for example a webs=
erver written in OCaml or MLDonkey in mirage?<br>
&gt;<br>
&gt; Best Regards<br>
<br>
</div></div></blockquote></div><br></div>

--047d7bf0d330e3ae1304d4e4fc2b--


From anil@recoil.org Mon Feb 04 12:17:49 2013
Received: from ppsw-41.csi.cam.ac.uk ([131.111.8.141])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U2Kzd-00044y-AL (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 04 Feb 2013 12:17:49 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1441874
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:22167
	helo=dark.recoil.org)
	by ppsw-41.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with smtp id 1U2Kzc-0007B7-Rh (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 04 Feb 2013 12:17:49 +0000
Received: (qmail 28036 invoked by uid 634); 4 Feb 2013 12:17:48 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO [10.0.1.83]) (128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Mon, 04 Feb 2013 12:17:47 +0000
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: A question about mirage
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAMCOOJtVvwxKj+u3Z1AcUJO3deD5eU6rHbVpDv0LWBgtmE91fg@mail.gmail.com>
Date: Mon, 4 Feb 2013 12:17:48 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <B65336BF-D64D-487D-9E4E-DE944F24F4B7@recoil.org>
References: <CAMCOOJtbjHX0LzQnSMgtQnT_P677chEuYHAM8y-X-Jebboss1w@mail.gmail.com>
	<67AE5BA3-D8F6-4E80-B695-EB3825352071@recoil.org>
	<CAMCOOJtVvwxKj+u3Z1AcUJO3deD5eU6rHbVpDv0LWBgtmE91fg@mail.gmail.com>
To: tech mailinglists <mailinglists.tech@gmail.com>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: cl-mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 04 Feb 2013 12:17:49 -0000
Content-Length: 2062
Lines: 57

I have no idea  about the state of XSM/FLASK I'm afraid.  Dave Scott is =
probably the person most qualified to answer this one, as he's built =
oxenstored as a stub domain already.

-a

On 4 Feb 2013, at 12:11, tech mailinglists <mailinglists.tech@gmail.com> =
wrote:

> Hello Anil,
>=20
> thanks for your reply. This sounds very good to me. I think that =
Mirage is a great project, I think that the building of specialized =
appliances will be the future.
>=20
> I have another question about a special Mirage usecase: I builded a =
oxenstored mirage appliance which worked without problems. Now I would =
like to run it on a Xen 4.2.1 with Linux 3.7.4. I talked already with =
some persons and they say that there are problems with XSM/FLASK. Daniel =
de Graaf wrote an XSM/FLASK ruleset which should work with 4.3 unstable =
in this mailinglist post: =
http://lists.xen.org/archives/html/xen-devel/2013-01/msg00956.html
>=20
> Do you know whether it's possible to modify this ruleset so that =
oxenstored could work on 4.2.1 and the given XSM/FLASK features in this =
version?
>=20
> Best Regards
>=20
>=20
> 2013/2/4 Anil Madhavapeddy <anil@recoil.org>
> Not yet; you have to use the Mirage base module which provides the OS =
abstraction. However, some software is already written to be functorised =
across an OS module for portability, such as the Arakoon database engine =
(arakoon.org).  These were quite easy to port to Mirage.  Others, such =
as MLDonkey, use the Unix module extensively and are harder.
>=20
> Raphael Proust is looking into a Mirage/UNIX compatibility layer, so =
this is something we'll expand on more later on in the year once a =
stable first version has been released.
>=20
> -anil
>=20
> On 4 Feb 2013, at 10:29, tech mailinglists =
<mailinglists.tech@gmail.com> wrote:
>=20
> > Hello all,
> >
> > I have a question about the mirage OS. Is it possible to run every =
OCaml Source Code in mirage? So would it be possible to run for example =
a webserver written in OCaml or MLDonkey in mirage?
> >
> > Best Regards
>=20
>=20



From returns@hmr.com Tue Feb 05 08:17:24 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U2diW-0006Qz-Ea (Exim 4.70)
	(return-path <returns@hmr.com>); Tue, 05 Feb 2013 08:17:24 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamScore: sssssssss
X-Cam-SpamDetails: score 9.1 from SpamAssassin-3.3.2-1442048 
	*  1.2 MISSING_HEADERS Missing To: header
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  1.1 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
	* 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars
	* -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,
	no *      trust
	*      [41.87.227.6 listed in list.dnswl.dnsbl.ja.net]
	*  1.9 REPLYTO_WITHOUT_TO_CC REPLYTO_WITHOUT_TO_CC
	*  1.5 TVD_PH_BODY_ACCOUNTS_PRE TVD_PH_BODY_ACCOUNTS_PRE
	*  3.3 TVD_PH_BODY_META TVD_PH_BODY_META
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from smtp.atcsp.co.za ([41.87.227.6]:2984)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1U2diV-0006pk-We (Exim 4.72)
	(return-path <returns@hmr.com>); Tue, 05 Feb 2013 08:17:24 +0000
Received: from [41.87.246.83] (port=27870 helo=tetra.mes.org.za)
	by smtp.atcsp.co.za with esmtp (Exim 4.77 (FreeBSD))
	(envelope-from <returns@hmr.com>)
	id 1U2dhj-00004C-P6; Tue, 05 Feb 2013 10:16:36 +0200
Received: from hmr.com ([192.168.123.100]) by tetra.mes.org.za with Microsoft
	SMTPSVC(6.0.3790.4675); Tue, 5 Feb 2013 10:15:33 +0200
From: "HMRC" <returns@hmr.com>
Subject: Notice of Tax Return
Date: 05 Feb 2013 02:16:35 -0600
Message-ID: <20130205021635.A09C674BE92B67F7@hmr.com>
MIME-Version: 1.0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Bcc: 
X-OriginalArrivalTime: 05 Feb 2013 08:15:33.0689 (UTC)
	FILETIME=[F84A2290:01CE0378]
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
Reply-To: noreply@hm1.com
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 05 Feb 2013 08:17:24 -0000
Content-Length: 3394
Lines: 87

<html>

<head>
<meta http-equiv=3D"Content-Language" content=3D"en-us">
<meta name=3D"GENERATOR" content=3D"Microsoft FrontPage 5.0">
<meta name=3D"ProgId" content=3D"FrontPage.Editor.Document">
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dwindows-12=
52">
<title>New Page 1</title>
<style>
<!--
=2Estyle14 {font-size: 9px; font-family: Arial, Helvetica, sans-serif; color: =
#000000; }
=2Estyle12 {color: #CCCCCC}
=2Estyle8 {
	font-size: x-small;
	font-family: Arial, Helvetica, sans-serif;
	color: #000000;
}
#a {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 10px;
}
-->
</style>
</head>

<body>

<table borderColor=3D"#307D7E" cellSpacing=3D"0" borderColorDark=3D"#ffffff"=
 cellPadding=3D"10"
width=3D"575" summary=3D"layout" borderColorLight=3D"#307D7E" border=3D"1">
  <tr>
    <td>
    <p align=3D"right">
    <img src=3D"http://i50.tinypic.com/2re37fc.png"></p>
    <p><font face=3D"Verdana, Arial, Helvetica, sans-serif" size=3D"3" color=
=3D"#307D7E"><br><b>
      Cl<!--9RRwt11-->aim Yo<!--9RRwt11-->ur T<!--9RRwt11-->ax Ref<!--9RRwt1=
1-->und On<!--9RRwt11-->line<br></b></font><font face=3D"Verdana, Arial, Hel=
vetica, sans-serif" size=3D"-1">
      <br>
      W<!--9RRwt11-->e identi<!--9RRwt11-->fied a<!--9RRwt11-->n e<!--9RRwt1=
1-->rror i<!--9RRwt11-->n t<!--9RRwt11-->he cal<!--9RRwt11-->cula<!--9RRwt11=
-->tion o<!--9RRwt11-->f y<!--9RRwt11-->our t<!--9RRwt11-->ax fr<!--9RRwt11-=
->om t<!--9RRwt11-->he las<!--9RRwt11-->t p<!--9RRwt11-->aym<!--9RRwt11-->en=
t, a<!--9RRwt11-->moun<!--9RRwt11-->ting <br>t<!--9RRwt11-->o =A3 27<!--9RRw=
t11-->3.00. I<!--9RRwt11-->n o<!--9RRwt11-->rder f<!--9RRwt11-->or u<!--9RRw=
t11-->s t<!--9RRwt11-->o re<!--9RRwt11-->turn t<!--9RRwt11-->he exc<!--9RRwt=
11-->ess p<!--9RRwt11-->ayme<!--9RRwt11-->nt, y<!--9RRwt11-->ou n<!--9RRwt11=
-->eed to cr<!--9RRwt11-->eate a Ta<!--9RRwt11-->x Ga<!--9RRwt11-->tew<!--9R=
Rwt11-->ay acc<!--9RRwt11-->ount af<!--9RRwt11-->ter wh<!--9RRwt11-->ich t<!=
--9RRwt11-->he fun<!--9RRwt11-->ds w<!--9RRwt11-->ill b<!--9RRwt11-->e cr<!-=
-9RRwt11-->edit<!--9RRwt11-->ed t<!--9RRwt11-->o y<!--9RRwt11-->our spec<!--=
9RRwt11-->ified ba<!--9RRwt11-->nk acc<!--9RRwt11-->ount. <br><br>Ple<!--9RR=
wt11-->ase cl<!--9RRwt11-->ick "G<!--9RRwt11-->et Sta<!--9RRwt11-->rted" be<=
!--9RRwt11-->low t<!--9RRwt11-->o cl<!--9RRwt11-->aim y<!--9RRwt11-->our re<=
!--9RRwt11-->fund:<br>
      <br></font><font face=3D"Verdana, Arial, Helvetica, sans-serif" size=
=3D"2" color=3D"#307D7E">
      
=20=20=20=20=20=20
      <a href=3D"http://aksiyonue.com/expo/">Ge<!--9RRwt11-->t Star<!--9RRwt=
11-->ted</a><br>
=20=20=20=20=20=20
      <P><FONT color=3D#808080 size=3D1 face=3Dverdana>W<!--9RRwt11-->e a<!-=
-9RRwt11-->re he<!--9RRwt11-->re t<!--9RRwt11-->o en<!--9RRwt11-->sure t<!--=
9RRwt11-->he cor<!--9RRwt11-->rect t<!--9RRwt11-->ax i<!--9RRwt11-->s pa<!--=
9RRwt11-->id at t<!--9RRwt11-->he r<!--9RRwt11-->ight t<!--9RRwt11-->ime, wh=
e<!--9RRwt11-->ther t<!--9RRwt11-->his rel<!--9RRwt11-->ates t<!--9RRwt11-->=
o pa<!--9RRwt11-->y<!--9RRwt11-->ment of ta<!--9RRwt11-->xes recei<!--9RRwt1=
1-->ved b<!--9RRwt11-->y t<!--9RRwt11-->he depa<!--9RRwt11-->rtment o<!--9RR=
wt11-->r ent<!--9RRwt11-->itleme<!--9RRwt11-->nt t<!--9RRwt11-->o be<!--9RRw=
t11-->nef<!--9RRwt11-->its p<!--9RRwt11-->aid.</font><br>
=20=20=20=20=20=20
    </p>

    </td>
  </tr>
</table>


</body>

</html>



From Dave.Scott@eu.citrix.com Wed Feb 06 08:06:44 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U301k-0003sa-Bn (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk (return-path <Dave.Scott@eu.citrix.com>);
	Wed, 06 Feb 2013 08:06:44 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.0 from SpamAssassin-3.3.2-1442501 
	* -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from smtp.eu.citrix.com ([46.33.159.39]:36698)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1U301j-00029z-ry (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk (return-path <Dave.Scott@eu.citrix.com>);
	Wed, 06 Feb 2013 08:06:44 +0000
X-IronPort-AV: E=Sophos;i="4.84,614,1355097600"; 
   d="scan'208";a="1185235"
Received: from lonpmailmx01.citrite.net ([10.30.203.162])
	by LONPIPO01.EU.CITRIX.COM with ESMTP/TLS/RC4-MD5;
	06 Feb 2013 08:06:43 +0000
Received: from LONPMAILBOX01.citrite.net ([10.30.224.160]) by
	LONPMAILMX01.citrite.net ([10.30.203.162]) with mapi; Wed, 6 Feb 2013
	08:06:43 +0000
From: Dave Scott <Dave.Scott@eu.citrix.com>
To: Anil Madhavapeddy <anil@recoil.org>
Date: Wed, 6 Feb 2013 08:06:42 +0000
Subject: Re: A question about mirage
Thread-Topic: A question about mirage
Thread-Index: Ac4EQOaAr5aZTwOiRA+9pIYTY01XjQ==
Message-ID: <BA51DA32-37DE-4D14-AE36-5215CD2C9CF5@eu.citrix.com>
References: <CAMCOOJtbjHX0LzQnSMgtQnT_P677chEuYHAM8y-X-Jebboss1w@mail.gmail.com>
	<67AE5BA3-D8F6-4E80-B695-EB3825352071@recoil.org>
	<CAMCOOJtVvwxKj+u3Z1AcUJO3deD5eU6rHbVpDv0LWBgtmE91fg@mail.gmail.com>
	<B65336BF-D64D-487D-9E4E-DE944F24F4B7@recoil.org>
In-Reply-To: <B65336BF-D64D-487D-9E4E-DE944F24F4B7@recoil.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: tech mailinglists <mailinglists.tech@gmail.com>,
	cl-mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 06 Feb 2013 08:06:44 -0000
Content-Length: 2494
Lines: 67

Hi,

I've not tried configuring XSM/FLASK yet but I do know it's only necessary =
for the domain getinfo hyper call, which is only necessary to detect domain=
 shutdown (and that a ring should be shutdown). Without it everything will =
work but you'll slowly leak memory.

--=20
Dave Scott
XenServer System Architect

On Feb 4, 2013, at 12:17 PM, "Anil Madhavapeddy" <anil@recoil.org> wrote:

> I have no idea  about the state of XSM/FLASK I'm afraid.  Dave Scott is p=
robably the person most qualified to answer this one, as he's built oxensto=
red as a stub domain already.
>=20
> -a
>=20
> On 4 Feb 2013, at 12:11, tech mailinglists <mailinglists.tech@gmail.com> =
wrote:
>=20
>> Hello Anil,
>>=20
>> thanks for your reply. This sounds very good to me. I think that Mirage =
is a great project, I think that the building of specialized appliances wil=
l be the future.
>>=20
>> I have another question about a special Mirage usecase: I builded a oxen=
stored mirage appliance which worked without problems. Now I would like to =
run it on a Xen 4.2.1 with Linux 3.7.4. I talked already with some persons =
and they say that there are problems with XSM/FLASK. Daniel de Graaf wrote =
an XSM/FLASK ruleset which should work with 4.3 unstable in this mailinglis=
t post: http://lists.xen.org/archives/html/xen-devel/2013-01/msg00956.html
>>=20
>> Do you know whether it's possible to modify this ruleset so that oxensto=
red could work on 4.2.1 and the given XSM/FLASK features in this version?
>>=20
>> Best Regards
>>=20
>>=20
>> 2013/2/4 Anil Madhavapeddy <anil@recoil.org>
>> Not yet; you have to use the Mirage base module which provides the OS ab=
straction. However, some software is already written to be functorised acro=
ss an OS module for portability, such as the Arakoon database engine (arako=
on.org).  These were quite easy to port to Mirage.  Others, such as MLDonke=
y, use the Unix module extensively and are harder.
>>=20
>> Raphael Proust is looking into a Mirage/UNIX compatibility layer, so thi=
s is something we'll expand on more later on in the year once a stable firs=
t version has been released.
>>=20
>> -anil
>>=20
>> On 4 Feb 2013, at 10:29, tech mailinglists <mailinglists.tech@gmail.com>=
 wrote:
>>=20
>>> Hello all,
>>>=20
>>> I have a question about the mirage OS. Is it possible to run every OCam=
l Source Code in mirage? So would it be possible to run for example a webse=
rver written in OCaml or MLDonkey in mirage?
>>>=20
>>> Best Regards
>=20
>=20


From mailinglists.tech@gmail.com Wed Feb 06 08:34:55 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U30T1-0004Rg-E2 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <mailinglists.tech@gmail.com>);
	Wed, 06 Feb 2013 08:34:55 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.8 from SpamAssassin-3.3.2-1442501 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [74.125.82.43 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (mailinglists.tech[at]gmail.com)
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	*      author's domain
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-wg0-f43.google.com ([74.125.82.43]:57844)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1U30T0-00017c-rP (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <mailinglists.tech@gmail.com>);
	Wed, 06 Feb 2013 08:34:55 +0000
Received: by mail-wg0-f43.google.com with SMTP id e12so869274wge.34
	for <cl-mirage@lists.cam.ac.uk>; Wed, 06 Feb 2013 00:34:54 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.180.8.130 with SMTP id r2mr3213255wia.28.1360139694362; Wed,
	06 Feb 2013 00:34:54 -0800 (PST)
Received: by 10.227.203.18 with HTTP; Wed, 6 Feb 2013 00:34:54 -0800 (PST)
In-Reply-To: <BA51DA32-37DE-4D14-AE36-5215CD2C9CF5@eu.citrix.com>
References: <CAMCOOJtbjHX0LzQnSMgtQnT_P677chEuYHAM8y-X-Jebboss1w@mail.gmail.com>
	<67AE5BA3-D8F6-4E80-B695-EB3825352071@recoil.org>
	<CAMCOOJtVvwxKj+u3Z1AcUJO3deD5eU6rHbVpDv0LWBgtmE91fg@mail.gmail.com>
	<B65336BF-D64D-487D-9E4E-DE944F24F4B7@recoil.org>
	<BA51DA32-37DE-4D14-AE36-5215CD2C9CF5@eu.citrix.com>
Date: Wed, 6 Feb 2013 09:34:54 +0100
Message-ID: <CAMCOOJs7U3E9APMFQv_JJmm20Oya81781u_qAM8EDw9NZUfFfA@mail.gmail.com>
Subject: Re: A question about mirage
From: tech mailinglists <mailinglists.tech@gmail.com>
To: Dave Scott <Dave.Scott@eu.citrix.com>
Content-Type: multipart/alternative; boundary=f46d0444029a53cef504d50a332c
Cc: cl-mirage List <cl-mirage@lists.cam.ac.uk>,
	Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 06 Feb 2013 08:34:55 -0000
Content-Length: 7295
Lines: 184

--f46d0444029a53cef504d50a332c
Content-Type: text/plain; charset=ISO-8859-1

Hello Dave,

thanks for your reply.

When I understood you right, this rule is not needed:

*# Xenstore requires the global VIRQ for domain destroy
operations**allow dom0_t xenstore_t:domain set_virq_handler;*

So it would be possible to shutdown a guest from within the guest but not
via for example xl shutdown and xl destroy am I right?

Best Regards


2013/2/6 Dave Scott <Dave.Scott@eu.citrix.com>

> Hi,
>
> I've not tried configuring XSM/FLASK yet but I do know it's only necessary
> for the domain getinfo hyper call, which is only necessary to detect domain
> shutdown (and that a ring should be shutdown). Without it everything will
> work but you'll slowly leak memory.
>
> --
> Dave Scott
> XenServer System Architect
>
> On Feb 4, 2013, at 12:17 PM, "Anil Madhavapeddy" <anil@recoil.org> wrote:
>
> > I have no idea  about the state of XSM/FLASK I'm afraid.  Dave Scott is
> probably the person most qualified to answer this one, as he's built
> oxenstored as a stub domain already.
> >
> > -a
> >
> > On 4 Feb 2013, at 12:11, tech mailinglists <mailinglists.tech@gmail.com>
> wrote:
> >
> >> Hello Anil,
> >>
> >> thanks for your reply. This sounds very good to me. I think that Mirage
> is a great project, I think that the building of specialized appliances
> will be the future.
> >>
> >> I have another question about a special Mirage usecase: I builded a
> oxenstored mirage appliance which worked without problems. Now I would like
> to run it on a Xen 4.2.1 with Linux 3.7.4. I talked already with some
> persons and they say that there are problems with XSM/FLASK. Daniel de
> Graaf wrote an XSM/FLASK ruleset which should work with 4.3 unstable in
> this mailinglist post:
> http://lists.xen.org/archives/html/xen-devel/2013-01/msg00956.html
> >>
> >> Do you know whether it's possible to modify this ruleset so that
> oxenstored could work on 4.2.1 and the given XSM/FLASK features in this
> version?
> >>
> >> Best Regards
> >>
> >>
> >> 2013/2/4 Anil Madhavapeddy <anil@recoil.org>
> >> Not yet; you have to use the Mirage base module which provides the OS
> abstraction. However, some software is already written to be functorised
> across an OS module for portability, such as the Arakoon database engine (
> arakoon.org).  These were quite easy to port to Mirage.  Others, such as
> MLDonkey, use the Unix module extensively and are harder.
> >>
> >> Raphael Proust is looking into a Mirage/UNIX compatibility layer, so
> this is something we'll expand on more later on in the year once a stable
> first version has been released.
> >>
> >> -anil
> >>
> >> On 4 Feb 2013, at 10:29, tech mailinglists <mailinglists.tech@gmail.com>
> wrote:
> >>
> >>> Hello all,
> >>>
> >>> I have a question about the mirage OS. Is it possible to run every
> OCaml Source Code in mirage? So would it be possible to run for example a
> webserver written in OCaml or MLDonkey in mirage?
> >>>
> >>> Best Regards
> >
> >
>

--f46d0444029a53cef504d50a332c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello Dave,<br><br>thanks for your reply.<br><br></di=
v>When I understood you right, this rule is not needed:<br><br><pre><i># Xe=
nstore requires the global VIRQ for domain destroy operations</i>
<i>allow dom0_t xenstore_t:domain set_virq_handler;</i></pre>So it would be=
 possible to shutdown a guest from within the guest but not via for example=
 xl shutdown and xl destroy am I right?<br><br>Best Regards<br></div><div c=
lass=3D"gmail_extra">
<br><br><div class=3D"gmail_quote">2013/2/6 Dave Scott <span dir=3D"ltr">&l=
t;<a href=3D"mailto:Dave.Scott@eu.citrix.com" target=3D"_blank">Dave.Scott@=
eu.citrix.com</a>&gt;</span><br><blockquote class=3D"gmail_quote" style=3D"=
margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I&#39;ve not tried configuring XSM/FLASK yet but I do know it&#39;s only ne=
cessary for the domain getinfo hyper call, which is only necessary to detec=
t domain shutdown (and that a ring should be shutdown). Without it everythi=
ng will work but you&#39;ll slowly leak memory.<br>

<span class=3D"HOEnZb"><font color=3D"#888888"><br>
--<br>
Dave Scott<br>
XenServer System Architect<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
On Feb 4, 2013, at 12:17 PM, &quot;Anil Madhavapeddy&quot; &lt;<a href=3D"m=
ailto:anil@recoil.org">anil@recoil.org</a>&gt; wrote:<br>
<br>
&gt; I have no idea =A0about the state of XSM/FLASK I&#39;m afraid. =A0Dave=
 Scott is probably the person most qualified to answer this one, as he&#39;=
s built oxenstored as a stub domain already.<br>
&gt;<br>
&gt; -a<br>
&gt;<br>
&gt; On 4 Feb 2013, at 12:11, tech mailinglists &lt;<a href=3D"mailto:maili=
nglists.tech@gmail.com">mailinglists.tech@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hello Anil,<br>
&gt;&gt;<br>
&gt;&gt; thanks for your reply. This sounds very good to me. I think that M=
irage is a great project, I think that the building of specialized applianc=
es will be the future.<br>
&gt;&gt;<br>
&gt;&gt; I have another question about a special Mirage usecase: I builded =
a oxenstored mirage appliance which worked without problems. Now I would li=
ke to run it on a Xen 4.2.1 with Linux 3.7.4. I talked already with some pe=
rsons and they say that there are problems with XSM/FLASK. Daniel de Graaf =
wrote an XSM/FLASK ruleset which should work with 4.3 unstable in this mail=
inglist post: <a href=3D"http://lists.xen.org/archives/html/xen-devel/2013-=
01/msg00956.html" target=3D"_blank">http://lists.xen.org/archives/html/xen-=
devel/2013-01/msg00956.html</a><br>

&gt;&gt;<br>
&gt;&gt; Do you know whether it&#39;s possible to modify this ruleset so th=
at oxenstored could work on 4.2.1 and the given XSM/FLASK features in this =
version?<br>
&gt;&gt;<br>
&gt;&gt; Best Regards<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 2013/2/4 Anil Madhavapeddy &lt;<a href=3D"mailto:anil@recoil.org">=
anil@recoil.org</a>&gt;<br>
&gt;&gt; Not yet; you have to use the Mirage base module which provides the=
 OS abstraction. However, some software is already written to be functorise=
d across an OS module for portability, such as the Arakoon database engine =
(<a href=3D"http://arakoon.org" target=3D"_blank">arakoon.org</a>). =A0Thes=
e were quite easy to port to Mirage. =A0Others, such as MLDonkey, use the U=
nix module extensively and are harder.<br>

&gt;&gt;<br>
&gt;&gt; Raphael Proust is looking into a Mirage/UNIX compatibility layer, =
so this is something we&#39;ll expand on more later on in the year once a s=
table first version has been released.<br>
&gt;&gt;<br>
&gt;&gt; -anil<br>
&gt;&gt;<br>
&gt;&gt; On 4 Feb 2013, at 10:29, tech mailinglists &lt;<a href=3D"mailto:m=
ailinglists.tech@gmail.com">mailinglists.tech@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Hello all,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have a question about the mirage OS. Is it possible to run e=
very OCaml Source Code in mirage? So would it be possible to run for exampl=
e a webserver written in OCaml or MLDonkey in mirage?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Best Regards<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>

--f46d0444029a53cef504d50a332c--


From anil@recoil.org Wed Feb 06 09:46:15 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U31a3-0001Qz-EO (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Wed, 06 Feb 2013 09:46:15 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1442501
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:32013
	helo=dark.recoil.org)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1U31a2-0005Ts-sh (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Wed, 06 Feb 2013 09:46:15 +0000
Received: (qmail 7920 invoked by uid 634); 6 Feb 2013 09:46:14 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO [10.0.1.83]) (128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Wed, 06 Feb 2013 09:46:14 +0000
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: Fwd: [SRG-SEMINAR] Feb. 6 - A. Madhavapeddy: Unikernels: Library
	Operating Systems for the Cloud 
Date: Wed, 6 Feb 2013 09:46:13 +0000
References: <000001ce0230$bb85d8c0$32918a40$@cl.cam.ac.uk>
To: cl-mirage List <cl-mirage@lists.cam.ac.uk>
Message-Id: <44EBB16B-25C3-4186-8896-139CDE366CE4@recoil.org>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 06 Feb 2013 09:46:15 -0000
Content-Length: 1622
Lines: 38

I'll be giving an update about Mirage at the Computer Lab today. All =
welcome!

-anil

Begin forwarded message:

> From: "Eiko Yoneki" <eiko.yoneki@cl.cam.ac.uk>
> Subject: [SRG-SEMINAR] Feb. 6 - A. Madhavapeddy: Unikernels: Library =
Operating Systems for the Cloud=20
> Date: 3 February 2013 17:05:56 GMT
> To: <srg-seminars@cl.cam.ac.uk>
> Reply-To: <eiko.yoneki@cl.cam.ac.uk>
>=20
> Date: Wednesday February 6, 2013, 13:00
> Location: LT2, Computer Lab
> Speaker:  Anil Madhavapeddy (University of Cambridge)
>=20
> Title: Unikernels: Library Operating Systems for the Cloud
>=20
> Abstract: We present unikernels, a new approach to deploying cloud =
services via applications written in high-level source code. Unikernels =
are single-purpose appliances that are compile-time specialised into =
standalone kernels, and sealed against modification when deployed to a =
cloud platform. In return they offer significant reduction in image =
sizes, improved efficiency and security, and should reduce operational =
costs. Our Mirage prototype compiles OCaml code into unikernels that run =
on commodity clouds and offer an order of magnitude reduction in code =
size without significant performance penalty. The architecture combines =
static type-safety with a single address-space layout that can be made =
immutable via a hypervisor extension. Mirage contributes a suite of =
type-safe protocol libraries, and our results demonstrate that the =
hypervisor is a platform that overcomes the hardware compatibility =
issues that have made past library operating systems impractical to =
deploy in the real-world.
>=20



From Dave.Scott@eu.citrix.com Wed Feb 06 09:52:57 2013
Received: from ppsw-41.csi.cam.ac.uk ([131.111.8.141])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U31gX-0002DA-UR (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk (return-path <Dave.Scott@eu.citrix.com>);
	Wed, 06 Feb 2013 09:52:57 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1442501 
	* -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
	*  0.0 HTML_MESSAGE BODY: HTML included in message
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from smtp.eu.citrix.com ([46.33.159.39]:9885)
	by ppsw-41.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with esmtp id 1U31gV-0001GK-T0 (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk (return-path <Dave.Scott@eu.citrix.com>);
	Wed, 06 Feb 2013 09:52:57 +0000
X-IronPort-AV: E=Sophos;i="4.84,614,1355097600"; d="scan'208,217";a="1189230"
Received: from lonpmailmx02.citrite.net ([10.30.203.163])
	by LONPIPO01.EU.CITRIX.COM with ESMTP/TLS/RC4-MD5;
	06 Feb 2013 09:52:55 +0000
Received: from LONPMAILBOX01.citrite.net ([10.30.224.160]) by
	LONPMAILMX02.citrite.net ([10.30.203.163]) with mapi; Wed, 6 Feb 2013
	09:52:55 +0000
From: Dave Scott <Dave.Scott@eu.citrix.com>
To: 'tech mailinglists' <mailinglists.tech@gmail.com>
Date: Wed, 6 Feb 2013 09:52:55 +0000
Subject: RE: A question about mirage
Thread-Topic: A question about mirage
Thread-Index: Ac4ERODfnMNnZOPgSjGw+Y1X+pm5NgACjmMA
Message-ID: <81A73678E76EA642801C8F2E4823AD21014183065D4D@LONPMAILBOX01.citrite.net>
References: <CAMCOOJtbjHX0LzQnSMgtQnT_P677chEuYHAM8y-X-Jebboss1w@mail.gmail.com>
	<67AE5BA3-D8F6-4E80-B695-EB3825352071@recoil.org>
	<CAMCOOJtVvwxKj+u3Z1AcUJO3deD5eU6rHbVpDv0LWBgtmE91fg@mail.gmail.com>
	<B65336BF-D64D-487D-9E4E-DE944F24F4B7@recoil.org>
	<BA51DA32-37DE-4D14-AE36-5215CD2C9CF5@eu.citrix.com>
	<CAMCOOJs7U3E9APMFQv_JJmm20Oya81781u_qAM8EDw9NZUfFfA@mail.gmail.com>
In-Reply-To: <CAMCOOJs7U3E9APMFQv_JJmm20Oya81781u_qAM8EDw9NZUfFfA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: multipart/alternative;
	boundary="_000_81A73678E76EA642801C8F2E4823AD21014183065D4DLONPMAILBOX_"
MIME-Version: 1.0
Cc: cl-mirage List <cl-mirage@lists.cam.ac.uk>,
	Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 06 Feb 2013 09:52:58 -0000
Content-Length: 19507
Lines: 442

--_000_81A73678E76EA642801C8F2E4823AD21014183065D4DLONPMAILBOX_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

Oh yes the VIRQ handler too - I'd forgotten about that one. So I think you =
need:

1.       The right to install a DOM_EXC VIRQ handler: xen will signal this =
event channel whenever a domain shuts down; and

2.       The right to call domain_getinfo: xenstored will need this to figu=
re out *which* domain has shutdown.

If you figure out the correct runes to set this up then please let me know,=
 it would save me some time later! :) In my testing I just tolerated the bu=
gs triggered by this.

I think your analysis is correct. If xenstore can't detect a domain shutdow=
n then:

1.       It won't free the ring, which will prevent the domain being fully =
cleaned up (it will remain in 'Dying' forever)

2.       It won't emit the @releaseDomain watch, which is how a toolstack n=
otices a domain has shutdown
So I think the guest will shut itself down internally ok, but the cleanup w=
ill block, which will confuse toolstacks like xl.

HTH,
Dave

From: cl-mirage-bounces@lists.cam.ac.uk [mailto:cl-mirage-bounces@lists.cam=
.ac.uk] On Behalf Of tech mailinglists
Sent: 06 February 2013 8:35 AM
To: Dave Scott
Cc: cl-mirage List; Anil Madhavapeddy
Subject: Re: A question about mirage

Hello Dave,

thanks for your reply.
When I understood you right, this rule is not needed:

# Xenstore requires the global VIRQ for domain destroy operations

allow dom0_t xenstore_t:domain set_virq_handler;
So it would be possible to shutdown a guest from within the guest but not v=
ia for example xl shutdown and xl destroy am I right?

Best Regards

2013/2/6 Dave Scott <Dave.Scott@eu.citrix.com<mailto:Dave.Scott@eu.citrix.c=
om>>
Hi,

I've not tried configuring XSM/FLASK yet but I do know it's only necessary =
for the domain getinfo hyper call, which is only necessary to detect domain=
 shutdown (and that a ring should be shutdown). Without it everything will =
work but you'll slowly leak memory.

--
Dave Scott
XenServer System Architect

On Feb 4, 2013, at 12:17 PM, "Anil Madhavapeddy" <anil@recoil.org<mailto:an=
il@recoil.org>> wrote:

> I have no idea  about the state of XSM/FLASK I'm afraid.  Dave Scott is p=
robably the person most qualified to answer this one, as he's built oxensto=
red as a stub domain already.
>
> -a
>
> On 4 Feb 2013, at 12:11, tech mailinglists <mailinglists.tech@gmail.com<m=
ailto:mailinglists.tech@gmail.com>> wrote:
>
>> Hello Anil,
>>
>> thanks for your reply. This sounds very good to me. I think that Mirage =
is a great project, I think that the building of specialized appliances wil=
l be the future.
>>
>> I have another question about a special Mirage usecase: I builded a oxen=
stored mirage appliance which worked without problems. Now I would like to =
run it on a Xen 4.2.1 with Linux 3.7.4. I talked already with some persons =
and they say that there are problems with XSM/FLASK. Daniel de Graaf wrote =
an XSM/FLASK ruleset which should work with 4.3 unstable in this mailinglis=
t post: http://lists.xen.org/archives/html/xen-devel/2013-01/msg00956.html
>>
>> Do you know whether it's possible to modify this ruleset so that oxensto=
red could work on 4.2.1 and the given XSM/FLASK features in this version?
>>
>> Best Regards
>>
>>
>> 2013/2/4 Anil Madhavapeddy <anil@recoil.org<mailto:anil@recoil.org>>
>> Not yet; you have to use the Mirage base module which provides the OS ab=
straction. However, some software is already written to be functorised acro=
ss an OS module for portability, such as the Arakoon database engine (arako=
on.org<http://arakoon.org>).  These were quite easy to port to Mirage.  Oth=
ers, such as MLDonkey, use the Unix module extensively and are harder.
>>
>> Raphael Proust is looking into a Mirage/UNIX compatibility layer, so thi=
s is something we'll expand on more later on in the year once a stable firs=
t version has been released.
>>
>> -anil
>>
>> On 4 Feb 2013, at 10:29, tech mailinglists <mailinglists.tech@gmail.com<=
mailto:mailinglists.tech@gmail.com>> wrote:
>>
>>> Hello all,
>>>
>>> I have a question about the mirage OS. Is it possible to run every OCam=
l Source Code in mirage? So would it be possible to run for example a webse=
rver written in OCaml or MLDonkey in mirage?
>>>
>>> Best Regards
>
>


--_000_81A73678E76EA642801C8F2E4823AD21014183065D4DLONPMAILBOX_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40"><head><meta http-equiv=3DContent-Type content=
=3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D"Micros=
oft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:PMingLiU;
	panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
	{font-family:PMingLiU;
	panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
	{font-family:"\@PMingLiU";
	panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:36.0pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:Consolas;
	mso-fareast-language:ZH-CN;}
span.hoenzb
	{mso-style-name:hoenzb;}
span.EmailStyle20
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:ZH-TW;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:84767169;
	mso-list-type:hybrid;
	mso-list-template-ids:265054554 134807567 134807577 134807579 134807567 13=
4807577 134807579 134807567 134807577 134807579;}
@list l0:level1
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l1
	{mso-list-id:1260988289;
	mso-list-type:hybrid;
	mso-list-template-ids:1231346686 134807567 134807577 134807579 134807567 1=
34807577 134807579 134807567 134807577 134807579;}
@list l1:level1
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l1:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l1:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l1:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l1:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l1:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l1:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l1:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l1:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-GB link=3Dblue vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span style=3D'f=
ont-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi,<o:p><=
/o:p></span></p><p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-f=
amily:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sa=
ns-serif";color:#1F497D'>Oh yes the VIRQ handler too &#8211; I&#8217;d forg=
otten about that one. So I think you need:<o:p></o:p></span></p><p class=3D=
MsoListParagraph style=3D'text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![i=
f !supportLists]><span style=3D'font-size:11.0pt;font-family:"Calibri","san=
s-serif";color:#1F497D'><span style=3D'mso-list:Ignore'>1.<span style=3D'fo=
nt:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></s=
pan></span><![endif]><span dir=3DLTR></span><span style=3D'font-size:11.0pt=
;font-family:"Calibri","sans-serif";color:#1F497D'>The right to install a D=
OM_EXC VIRQ handler: xen will signal this event channel whenever a domain s=
huts down; and<o:p></o:p></span></p><p class=3DMsoListParagraph style=3D'te=
xt-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style=
=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><spa=
n style=3D'mso-list:Ignore'>2.<span style=3D'font:7.0pt "Times New Roman"'>=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span d=
ir=3DLTR></span><span style=3D'font-size:11.0pt;font-family:"Calibri","sans=
-serif";color:#1F497D'>The right to call domain_getinfo: xenstored will nee=
d this to figure out *<b>which</b>* domain has shutdown.<o:p></o:p></span><=
/p><p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibr=
i","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNo=
rmal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";col=
or:#1F497D'>If you figure out the correct runes to set this up then please =
let me know, it would save me some time later! </span><span style=3D'font-s=
ize:11.0pt;font-family:Wingdings;color:#1F497D'>J</span><span style=3D'font=
-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> In my testi=
ng I just tolerated the bugs triggered by this.<o:p></o:p></span></p><p cla=
ss=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-=
serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><spa=
n style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>I think your analysis is correct. If xenstore can&#8217;t detect a domai=
n shutdown then:<o:p></o:p></span></p><p class=3DMsoListParagraph style=3D'=
text-indent:-18.0pt;mso-list:l1 level1 lfo2'><![if !supportLists]><span sty=
le=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><s=
pan style=3D'mso-list:Ignore'>1.<span style=3D'font:7.0pt "Times New Roman"=
'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span=
 dir=3DLTR></span><span style=3D'font-size:11.0pt;font-family:"Calibri","sa=
ns-serif";color:#1F497D'>It won&#8217;t free the ring, which will prevent t=
he domain being fully cleaned up (it will remain in &#8216;Dying&#8217; for=
ever)<o:p></o:p></span></p><p class=3DMsoListParagraph style=3D'text-indent=
:-18.0pt;mso-list:l1 level1 lfo2'><![if !supportLists]><span style=3D'font-=
size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span style=
=3D'mso-list:Ignore'>2.<span style=3D'font:7.0pt "Times New Roman"'>&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span dir=3DLT=
R></span><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"=
;color:#1F497D'>It won&#8217;t emit the @releaseDomain watch, which is how =
a toolstack notices a domain has shutdown<o:p></o:p></span></p><p class=3DM=
soNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"=
;color:#1F497D'>So I think the guest will shut itself down internally ok, b=
ut the cleanup will block, which will confuse toolstacks like xl.<o:p></o:p=
></span></p><p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-famil=
y:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p clas=
s=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-s=
erif";color:#1F497D'>HTH,<o:p></o:p></span></p><p class=3DMsoNormal><span s=
tyle=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>=
Dave<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'font-size:11.=
0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></sp=
an></p><div style=3D'border:none;border-left:solid blue 1.5pt;padding:0cm 0=
cm 0cm 4.0pt'><div><div style=3D'border:none;border-top:solid #B5C4DF 1.0pt=
;padding:3.0pt 0cm 0cm 0cm'><p class=3DMsoNormal><b><span lang=3DEN-US styl=
e=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><s=
pan lang=3DEN-US style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif=
"'> cl-mirage-bounces@lists.cam.ac.uk [mailto:cl-mirage-bounces@lists.cam.a=
c.uk] <b>On Behalf Of </b>tech mailinglists<br><b>Sent:</b> 06 February 201=
3 8:35 AM<br><b>To:</b> Dave Scott<br><b>Cc:</b> cl-mirage List; Anil Madha=
vapeddy<br><b>Subject:</b> Re: A question about mirage<o:p></o:p></span></p=
></div></div><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><div><p class=
=3DMsoNormal style=3D'margin-bottom:12.0pt'>Hello Dave,<br><br>thanks for y=
our reply.<o:p></o:p></p></div><p class=3DMsoNormal style=3D'margin-bottom:=
12.0pt'>When I understood you right, this rule is not needed:<o:p></o:p></p=
><pre><i># Xenstore requires the global VIRQ for domain destroy operations<=
/i><o:p></o:p></pre><pre><i>allow dom0_t xenstore_t:domain set_virq_handler=
;</i><o:p></o:p></pre><p class=3DMsoNormal>So it would be possible to shutd=
own a guest from within the guest but not via for example xl shutdown and x=
l destroy am I right?<br><br>Best Regards<o:p></o:p></p></div><div><p class=
=3DMsoNormal style=3D'margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div><p cl=
ass=3DMsoNormal>2013/2/6 Dave Scott &lt;<a href=3D"mailto:Dave.Scott@eu.cit=
rix.com" target=3D"_blank">Dave.Scott@eu.citrix.com</a>&gt;<o:p></o:p></p><=
p class=3DMsoNormal>Hi,<br><br>I've not tried configuring XSM/FLASK yet but=
 I do know it's only necessary for the domain getinfo hyper call, which is =
only necessary to detect domain shutdown (and that a ring should be shutdow=
n). Without it everything will work but you'll slowly leak memory.<br><span=
 style=3D'color:#888888'><br><span class=3Dhoenzb>--</span><br><span class=
=3Dhoenzb>Dave Scott</span><br><span class=3Dhoenzb>XenServer System Archit=
ect</span></span><o:p></o:p></p><div><div><p class=3DMsoNormal><br>On Feb 4=
, 2013, at 12:17 PM, &quot;Anil Madhavapeddy&quot; &lt;<a href=3D"mailto:an=
il@recoil.org">anil@recoil.org</a>&gt; wrote:<br><br>&gt; I have no idea &n=
bsp;about the state of XSM/FLASK I'm afraid. &nbsp;Dave Scott is probably t=
he person most qualified to answer this one, as he's built oxenstored as a =
stub domain already.<br>&gt;<br>&gt; -a<br>&gt;<br>&gt; On 4 Feb 2013, at 1=
2:11, tech mailinglists &lt;<a href=3D"mailto:mailinglists.tech@gmail.com">=
mailinglists.tech@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt;&gt; Hello Anil,<=
br>&gt;&gt;<br>&gt;&gt; thanks for your reply. This sounds very good to me.=
 I think that Mirage is a great project, I think that the building of speci=
alized appliances will be the future.<br>&gt;&gt;<br>&gt;&gt; I have anothe=
r question about a special Mirage usecase: I builded a oxenstored mirage ap=
pliance which worked without problems. Now I would like to run it on a Xen =
4.2.1 with Linux 3.7.4. I talked already with some persons and they say tha=
t there are problems with XSM/FLASK. Daniel de Graaf wrote an XSM/FLASK rul=
eset which should work with 4.3 unstable in this mailinglist post: <a href=
=3D"http://lists.xen.org/archives/html/xen-devel/2013-01/msg00956.html" tar=
get=3D"_blank">http://lists.xen.org/archives/html/xen-devel/2013-01/msg0095=
6.html</a><br>&gt;&gt;<br>&gt;&gt; Do you know whether it's possible to mod=
ify this ruleset so that oxenstored could work on 4.2.1 and the given XSM/F=
LASK features in this version?<br>&gt;&gt;<br>&gt;&gt; Best Regards<br>&gt;=
&gt;<br>&gt;&gt;<br>&gt;&gt; 2013/2/4 Anil Madhavapeddy &lt;<a href=3D"mail=
to:anil@recoil.org">anil@recoil.org</a>&gt;<br>&gt;&gt; Not yet; you have t=
o use the Mirage base module which provides the OS abstraction. However, so=
me software is already written to be functorised across an OS module for po=
rtability, such as the Arakoon database engine (<a href=3D"http://arakoon.o=
rg" target=3D"_blank">arakoon.org</a>). &nbsp;These were quite easy to port=
 to Mirage. &nbsp;Others, such as MLDonkey, use the Unix module extensively=
 and are harder.<br>&gt;&gt;<br>&gt;&gt; Raphael Proust is looking into a M=
irage/UNIX compatibility layer, so this is something we'll expand on more l=
ater on in the year once a stable first version has been released.<br>&gt;&=
gt;<br>&gt;&gt; -anil<br>&gt;&gt;<br>&gt;&gt; On 4 Feb 2013, at 10:29, tech=
 mailinglists &lt;<a href=3D"mailto:mailinglists.tech@gmail.com">mailinglis=
ts.tech@gmail.com</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt;&gt; Hello all,<br>=
&gt;&gt;&gt;<br>&gt;&gt;&gt; I have a question about the mirage OS. Is it p=
ossible to run every OCaml Source Code in mirage? So would it be possible t=
o run for example a webserver written in OCaml or MLDonkey in mirage?<br>&g=
t;&gt;&gt;<br>&gt;&gt;&gt; Best Regards<br>&gt;<br>&gt;<o:p></o:p></p></div=
></div></div><p class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></div></div></=
body></html>=

--_000_81A73678E76EA642801C8F2E4823AD21014183065D4DLONPMAILBOX_--


From mailinglists.tech@gmail.com Wed Feb 06 10:26:15 2013
Received: from ppsw-43.csi.cam.ac.uk ([131.111.8.143])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U32Cl-0004E9-6H (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <mailinglists.tech@gmail.com>);
	Wed, 06 Feb 2013 10:26:15 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.8 from SpamAssassin-3.3.2-1442501 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.215.53 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (mailinglists.tech[at]gmail.com)
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	*      author's domain
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-la0-f53.google.com ([209.85.215.53]:53889)
	by ppsw-43.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1U32Ck-0007Zt-n4 (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <mailinglists.tech@gmail.com>);
	Wed, 06 Feb 2013 10:26:15 +0000
Received: by mail-la0-f53.google.com with SMTP id fr10so1143920lab.26
	for <cl-mirage@lists.cam.ac.uk>; Wed, 06 Feb 2013 02:26:13 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.112.26.165 with SMTP id m5mr8140728lbg.48.1360146373604;
	Wed, 06 Feb 2013 02:26:13 -0800 (PST)
Received: by 10.114.59.204 with HTTP; Wed, 6 Feb 2013 02:26:13 -0800 (PST)
In-Reply-To: <81A73678E76EA642801C8F2E4823AD21014183065D4D@LONPMAILBOX01.citrite.net>
References: <CAMCOOJtbjHX0LzQnSMgtQnT_P677chEuYHAM8y-X-Jebboss1w@mail.gmail.com>
	<67AE5BA3-D8F6-4E80-B695-EB3825352071@recoil.org>
	<CAMCOOJtVvwxKj+u3Z1AcUJO3deD5eU6rHbVpDv0LWBgtmE91fg@mail.gmail.com>
	<B65336BF-D64D-487D-9E4E-DE944F24F4B7@recoil.org>
	<BA51DA32-37DE-4D14-AE36-5215CD2C9CF5@eu.citrix.com>
	<CAMCOOJs7U3E9APMFQv_JJmm20Oya81781u_qAM8EDw9NZUfFfA@mail.gmail.com>
	<81A73678E76EA642801C8F2E4823AD21014183065D4D@LONPMAILBOX01.citrite.net>
Date: Wed, 6 Feb 2013 11:26:13 +0100
Message-ID: <CAMCOOJsXUa1mw9PSrca_-L+a49OVRDQe5QbNyVyrkCJH6ZMSYQ@mail.gmail.com>
Subject: Re: A question about mirage
From: tech mailinglists <mailinglists.tech@gmail.com>
To: Dave Scott <Dave.Scott@eu.citrix.com>
Content-Type: multipart/alternative; boundary=bcaec555570470f5b404d50bc1a7
Cc: cl-mirage List <cl-mirage@lists.cam.ac.uk>,
	Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 06 Feb 2013 10:26:15 -0000
Content-Length: 15659
Lines: 328

--bcaec555570470f5b404d50bc1a7
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

I will try to figure it out with 4.2.1 with 4.3 unstable it seem to be no
problem. Daniels rule should work with 4.3 but 4.2.1 seem to don't support
necessary things in XSM/FLASK and so I more or less lose the hope that it
can be get to work.

Best Regards


2013/2/6 Dave Scott <Dave.Scott@eu.citrix.com>

> Hi,****
>
> ** **
>
> Oh yes the VIRQ handler too =96 I=92d forgotten about that one. So I thin=
k you
> need:****
>
> **1.       **The right to install a DOM_EXC VIRQ handler: xen will signal
> this event channel whenever a domain shuts down; and****
>
> **2.       **The right to call domain_getinfo: xenstored will need this
> to figure out **which** domain has shutdown.****
>
> ** **
>
> If you figure out the correct runes to set this up then please let me
> know, it would save me some time later! J In my testing I just tolerated
> the bugs triggered by this.****
>
> ** **
>
> I think your analysis is correct. If xenstore can=92t detect a domain
> shutdown then:****
>
> **1.       **It won=92t free the ring, which will prevent the domain bein=
g
> fully cleaned up (it will remain in =91Dying=92 forever)****
>
> **2.       **It won=92t emit the @releaseDomain watch, which is how a
> toolstack notices a domain has shutdown****
>
> So I think the guest will shut itself down internally ok, but the cleanup
> will block, which will confuse toolstacks like xl.****
>
> ** **
>
> HTH,****
>
> Dave****
>
> ** **
>
> *From:* cl-mirage-bounces@lists.cam.ac.uk [mailto:
> cl-mirage-bounces@lists.cam.ac.uk] *On Behalf Of *tech mailinglists
> *Sent:* 06 February 2013 8:35 AM
> *To:* Dave Scott
> *Cc:* cl-mirage List; Anil Madhavapeddy
> *Subject:* Re: A question about mirage****
>
> ** **
>
> Hello Dave,
>
> thanks for your reply.****
>
> When I understood you right, this rule is not needed:****
>
> *# Xenstore requires the global VIRQ for domain destroy operations*****
>
> *allow dom0_t xenstore_t:domain set_virq_handler;*****
>
> So it would be possible to shutdown a guest from within the guest but not
> via for example xl shutdown and xl destroy am I right?
>
> Best Regards****
>
> ** **
>
> 2013/2/6 Dave Scott <Dave.Scott@eu.citrix.com>****
>
> Hi,
>
> I've not tried configuring XSM/FLASK yet but I do know it's only necessar=
y
> for the domain getinfo hyper call, which is only necessary to detect doma=
in
> shutdown (and that a ring should be shutdown). Without it everything will
> work but you'll slowly leak memory.
>
> --
> Dave Scott
> XenServer System Architect****
>
>
> On Feb 4, 2013, at 12:17 PM, "Anil Madhavapeddy" <anil@recoil.org> wrote:
>
> > I have no idea  about the state of XSM/FLASK I'm afraid.  Dave Scott is
> probably the person most qualified to answer this one, as he's built
> oxenstored as a stub domain already.
> >
> > -a
> >
> > On 4 Feb 2013, at 12:11, tech mailinglists <mailinglists.tech@gmail.com=
>
> wrote:
> >
> >> Hello Anil,
> >>
> >> thanks for your reply. This sounds very good to me. I think that Mirag=
e
> is a great project, I think that the building of specialized appliances
> will be the future.
> >>
> >> I have another question about a special Mirage usecase: I builded a
> oxenstored mirage appliance which worked without problems. Now I would li=
ke
> to run it on a Xen 4.2.1 with Linux 3.7.4. I talked already with some
> persons and they say that there are problems with XSM/FLASK. Daniel de
> Graaf wrote an XSM/FLASK ruleset which should work with 4.3 unstable in
> this mailinglist post:
> http://lists.xen.org/archives/html/xen-devel/2013-01/msg00956.html
> >>
> >> Do you know whether it's possible to modify this ruleset so that
> oxenstored could work on 4.2.1 and the given XSM/FLASK features in this
> version?
> >>
> >> Best Regards
> >>
> >>
> >> 2013/2/4 Anil Madhavapeddy <anil@recoil.org>
> >> Not yet; you have to use the Mirage base module which provides the OS
> abstraction. However, some software is already written to be functorised
> across an OS module for portability, such as the Arakoon database engine =
(
> arakoon.org).  These were quite easy to port to Mirage.  Others, such as
> MLDonkey, use the Unix module extensively and are harder.
> >>
> >> Raphael Proust is looking into a Mirage/UNIX compatibility layer, so
> this is something we'll expand on more later on in the year once a stable
> first version has been released.
> >>
> >> -anil
> >>
> >> On 4 Feb 2013, at 10:29, tech mailinglists <mailinglists.tech@gmail.co=
m>
> wrote:
> >>
> >>> Hello all,
> >>>
> >>> I have a question about the mirage OS. Is it possible to run every
> OCaml Source Code in mirage? So would it be possible to run for example a
> webserver written in OCaml or MLDonkey in mirage?
> >>>
> >>> Best Regards
> >
> >****
>
> ** **
>

--bcaec555570470f5b404d50bc1a7
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I will try to figure it out with 4.2.1 with 4.3 unstable i=
t seem to be no problem. Daniels rule should work with 4.3 but 4.2.1 seem t=
o don&#39;t support necessary things in XSM/FLASK and so I more or less los=
e the hope that it can be get to work.<br>
<br>Best Regards<br></div><div class=3D"gmail_extra"><br><br><div class=3D"=
gmail_quote">2013/2/6 Dave Scott <span dir=3D"ltr">&lt;<a href=3D"mailto:Da=
ve.Scott@eu.citrix.com" target=3D"_blank">Dave.Scott@eu.citrix.com</a>&gt;<=
/span><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div link=3D"blue" vlink=3D"purple" lang=3D"=
EN-GB"><div><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-fam=
ily:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hi,<u></u><u>=
</u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Oh yes the VIRQ handle=
r too =96 I=92d forgotten about that one. So I think you need:<u></u><u></u=
></span></p>
<p><u></u><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&=
quot;sans-serif&quot;;color:#1f497d"><span>1.<span style=3D"font:7.0pt &quo=
t;Times New Roman&quot;">=A0=A0=A0=A0=A0=A0 </span></span></span><u></u><sp=
an dir=3D"LTR"></span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d">The right to install a DOM=
_EXC VIRQ handler: xen will signal this event channel whenever a domain shu=
ts down; and<u></u><u></u></span></p>
<p><u></u><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&=
quot;sans-serif&quot;;color:#1f497d"><span>2.<span style=3D"font:7.0pt &quo=
t;Times New Roman&quot;">=A0=A0=A0=A0=A0=A0 </span></span></span><u></u><sp=
an dir=3D"LTR"></span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d">The right to call domain_g=
etinfo: xenstored will need this to figure out *<b>which</b>* domain has sh=
utdown.<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">If you figure out the =
correct runes to set this up then please let me know, it would save me some=
 time later! </span><span style=3D"font-size:11.0pt;font-family:Wingdings;c=
olor:#1f497d">J</span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> In my testing I just tole=
rated the bugs triggered by this.<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I think your analysis =
is correct. If xenstore can=92t detect a domain shutdown then:<u></u><u></u=
></span></p>
<p><u></u><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&=
quot;sans-serif&quot;;color:#1f497d"><span>1.<span style=3D"font:7.0pt &quo=
t;Times New Roman&quot;">=A0=A0=A0=A0=A0=A0 </span></span></span><u></u><sp=
an dir=3D"LTR"></span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d">It won=92t free the ring, =
which will prevent the domain being fully cleaned up (it will remain in =91=
Dying=92 forever)<u></u><u></u></span></p>
<p><u></u><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&=
quot;sans-serif&quot;;color:#1f497d"><span>2.<span style=3D"font:7.0pt &quo=
t;Times New Roman&quot;">=A0=A0=A0=A0=A0=A0 </span></span></span><u></u><sp=
an dir=3D"LTR"></span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d">It won=92t emit the @relea=
seDomain watch, which is how a toolstack notices a domain has shutdown<u></=
u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d">So I think the guest will=
 shut itself down internally ok, but the cleanup will block, which will con=
fuse toolstacks like xl.<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">HTH,<u></u><u></u></sp=
an></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d">Dave<u></u><u></u></span>=
</p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quo=
t;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></sp=
an></p>
<div style=3D"border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm =
4.0pt"><div><div style=3D"border:none;border-top:solid #b5c4df 1.0pt;paddin=
g:3.0pt 0cm 0cm 0cm"><p class=3D"MsoNormal"><b><span style=3D"font-size:10.=
0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" lang=3D"EN-US">F=
rom:</span></b><span style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quo=
t;,&quot;sans-serif&quot;" lang=3D"EN-US"> <a href=3D"mailto:cl-mirage-boun=
ces@lists.cam.ac.uk" target=3D"_blank">cl-mirage-bounces@lists.cam.ac.uk</a=
> [mailto:<a href=3D"mailto:cl-mirage-bounces@lists.cam.ac.uk" target=3D"_b=
lank">cl-mirage-bounces@lists.cam.ac.uk</a>] <b>On Behalf Of </b>tech maili=
nglists<br>
<b>Sent:</b> 06 February 2013 8:35 AM<br><b>To:</b> Dave Scott<br><b>Cc:</b=
> cl-mirage List; Anil Madhavapeddy<br><b>Subject:</b> Re: A question about=
 mirage<u></u><u></u></span></p></div></div><div><div class=3D"h5"><p class=
=3D"MsoNormal">
<u></u>=A0<u></u></p><div><div><p class=3D"MsoNormal" style=3D"margin-botto=
m:12.0pt">Hello Dave,<br><br>thanks for your reply.<u></u><u></u></p></div>=
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt">When I understood you=
 right, this rule is not needed:<u></u><u></u></p>
<pre><i># Xenstore requires the global VIRQ for domain destroy operations</=
i><u></u><u></u></pre><pre><i>allow dom0_t xenstore_t:domain set_virq_handl=
er;</i><u></u><u></u></pre><p class=3D"MsoNormal">So it would be possible t=
o shutdown a guest from within the guest but not via for example xl shutdow=
n and xl destroy am I right?<br>
<br>Best Regards<u></u><u></u></p></div><div><p class=3D"MsoNormal" style=
=3D"margin-bottom:12.0pt"><u></u>=A0<u></u></p><div><p class=3D"MsoNormal">=
2013/2/6 Dave Scott &lt;<a href=3D"mailto:Dave.Scott@eu.citrix.com" target=
=3D"_blank">Dave.Scott@eu.citrix.com</a>&gt;<u></u><u></u></p>
<p class=3D"MsoNormal">Hi,<br><br>I&#39;ve not tried configuring XSM/FLASK =
yet but I do know it&#39;s only necessary for the domain getinfo hyper call=
, which is only necessary to detect domain shutdown (and that a ring should=
 be shutdown). Without it everything will work but you&#39;ll slowly leak m=
emory.<br>
<span style=3D"color:#888888"><br><span>--</span><br><span>Dave Scott</span=
><br><span>XenServer System Architect</span></span><u></u><u></u></p><div><=
div><p class=3D"MsoNormal"><br>On Feb 4, 2013, at 12:17 PM, &quot;Anil Madh=
avapeddy&quot; &lt;<a href=3D"mailto:anil@recoil.org" target=3D"_blank">ani=
l@recoil.org</a>&gt; wrote:<br>
<br>&gt; I have no idea =A0about the state of XSM/FLASK I&#39;m afraid. =A0=
Dave Scott is probably the person most qualified to answer this one, as he&=
#39;s built oxenstored as a stub domain already.<br>&gt;<br>&gt; -a<br>&gt;=
<br>
&gt; On 4 Feb 2013, at 12:11, tech mailinglists &lt;<a href=3D"mailto:maili=
nglists.tech@gmail.com" target=3D"_blank">mailinglists.tech@gmail.com</a>&g=
t; wrote:<br>&gt;<br>&gt;&gt; Hello Anil,<br>&gt;&gt;<br>&gt;&gt; thanks fo=
r your reply. This sounds very good to me. I think that Mirage is a great p=
roject, I think that the building of specialized appliances will be the fut=
ure.<br>
&gt;&gt;<br>&gt;&gt; I have another question about a special Mirage usecase=
: I builded a oxenstored mirage appliance which worked without problems. No=
w I would like to run it on a Xen 4.2.1 with Linux 3.7.4. I talked already =
with some persons and they say that there are problems with XSM/FLASK. Dani=
el de Graaf wrote an XSM/FLASK ruleset which should work with 4.3 unstable =
in this mailinglist post: <a href=3D"http://lists.xen.org/archives/html/xen=
-devel/2013-01/msg00956.html" target=3D"_blank">http://lists.xen.org/archiv=
es/html/xen-devel/2013-01/msg00956.html</a><br>
&gt;&gt;<br>&gt;&gt; Do you know whether it&#39;s possible to modify this r=
uleset so that oxenstored could work on 4.2.1 and the given XSM/FLASK featu=
res in this version?<br>&gt;&gt;<br>&gt;&gt; Best Regards<br>&gt;&gt;<br>
&gt;&gt;<br>&gt;&gt; 2013/2/4 Anil Madhavapeddy &lt;<a href=3D"mailto:anil@=
recoil.org" target=3D"_blank">anil@recoil.org</a>&gt;<br>&gt;&gt; Not yet; =
you have to use the Mirage base module which provides the OS abstraction. H=
owever, some software is already written to be functorised across an OS mod=
ule for portability, such as the Arakoon database engine (<a href=3D"http:/=
/arakoon.org" target=3D"_blank">arakoon.org</a>). =A0These were quite easy =
to port to Mirage. =A0Others, such as MLDonkey, use the Unix module extensi=
vely and are harder.<br>
&gt;&gt;<br>&gt;&gt; Raphael Proust is looking into a Mirage/UNIX compatibi=
lity layer, so this is something we&#39;ll expand on more later on in the y=
ear once a stable first version has been released.<br>&gt;&gt;<br>&gt;&gt; =
-anil<br>
&gt;&gt;<br>&gt;&gt; On 4 Feb 2013, at 10:29, tech mailinglists &lt;<a href=
=3D"mailto:mailinglists.tech@gmail.com" target=3D"_blank">mailinglists.tech=
@gmail.com</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt;&gt; Hello all,<br>&gt;&gt=
;&gt;<br>
&gt;&gt;&gt; I have a question about the mirage OS. Is it possible to run e=
very OCaml Source Code in mirage? So would it be possible to run for exampl=
e a webserver written in OCaml or MLDonkey in mirage?<br>&gt;&gt;&gt;<br>
&gt;&gt;&gt; Best Regards<br>&gt;<br>&gt;<u></u><u></u></p></div></div></di=
v><p class=3D"MsoNormal"><u></u>=A0<u></u></p></div></div></div></div></div=
></div></blockquote></div><br></div>

--bcaec555570470f5b404d50bc1a7--


From scott.dj@gmail.com Wed Feb 06 14:15:16 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U35mO-0006ps-4o (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <scott.dj@gmail.com>); Wed, 06 Feb 2013 14:15:16 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.8 from SpamAssassin-3.3.2-1442501 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.212.52 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (scott.dj[at]gmail.com)
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	*      author's domain
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-vb0-f52.google.com ([209.85.212.52]:62611)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1U35mM-0005UM-rM (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <scott.dj@gmail.com>); Wed, 06 Feb 2013 14:15:16 +0000
Received: by mail-vb0-f52.google.com with SMTP id fa15so867734vbb.11
	for <cl-mirage@lists.cam.ac.uk>; Wed, 06 Feb 2013 06:15:13 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.220.208.204 with SMTP id gd12mr33017294vcb.27.1360160113269; 
	Wed, 06 Feb 2013 06:15:13 -0800 (PST)
Received: by 10.220.165.193 with HTTP; Wed, 6 Feb 2013 06:15:13 -0800 (PST)
In-Reply-To: <CAMCOOJsXUa1mw9PSrca_-L+a49OVRDQe5QbNyVyrkCJH6ZMSYQ@mail.gmail.com>
References: <CAMCOOJtbjHX0LzQnSMgtQnT_P677chEuYHAM8y-X-Jebboss1w@mail.gmail.com>
	<67AE5BA3-D8F6-4E80-B695-EB3825352071@recoil.org>
	<CAMCOOJtVvwxKj+u3Z1AcUJO3deD5eU6rHbVpDv0LWBgtmE91fg@mail.gmail.com>
	<B65336BF-D64D-487D-9E4E-DE944F24F4B7@recoil.org>
	<BA51DA32-37DE-4D14-AE36-5215CD2C9CF5@eu.citrix.com>
	<CAMCOOJs7U3E9APMFQv_JJmm20Oya81781u_qAM8EDw9NZUfFfA@mail.gmail.com>
	<81A73678E76EA642801C8F2E4823AD21014183065D4D@LONPMAILBOX01.citrite.net>
	<CAMCOOJsXUa1mw9PSrca_-L+a49OVRDQe5QbNyVyrkCJH6ZMSYQ@mail.gmail.com>
Date: Wed, 6 Feb 2013 14:15:13 +0000
Message-ID: <CAG_esB1p-U5pdJAG+zNP81gnDkMi9wmUkO__-N3dLEat6ioykw@mail.gmail.com>
Subject: Re: A question about mirage
From: David Scott <scott.dj@gmail.com>
To: tech mailinglists <mailinglists.tech@gmail.com>
Content-Type: multipart/alternative; boundary=bcaec54fadca639b3c04d50ef4fc
Cc: Dave Scott <Dave.Scott@eu.citrix.com>,
	cl-mirage List <cl-mirage@lists.cam.ac.uk>,
	Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 06 Feb 2013 14:15:16 -0000
Content-Length: 16843
Lines: 389

--bcaec54fadca639b3c04d50ef4fc
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Hi,

It's good to hear that 4.3 unstable works for you. I was hoping the
necessary support would have made it to 4.2 but perhaps not.

Cheers,
Dave


On Wed, Feb 6, 2013 at 10:26 AM, tech mailinglists <
mailinglists.tech@gmail.com> wrote:

> I will try to figure it out with 4.2.1 with 4.3 unstable it seem to be no
> problem. Daniels rule should work with 4.3 but 4.2.1 seem to don't suppor=
t
> necessary things in XSM/FLASK and so I more or less lose the hope that it
> can be get to work.
>
> Best Regards
>
>
> 2013/2/6 Dave Scott <Dave.Scott@eu.citrix.com>
>
>> Hi,****
>>
>> ** **
>>
>> Oh yes the VIRQ handler too =96 I=92d forgotten about that one. So I thi=
nk
>> you need:****
>>
>> **1.       **The right to install a DOM_EXC VIRQ handler: xen will
>> signal this event channel whenever a domain shuts down; and****
>>
>> **2.       **The right to call domain_getinfo: xenstored will need this
>> to figure out **which** domain has shutdown.****
>>
>> ** **
>>
>> If you figure out the correct runes to set this up then please let me
>> know, it would save me some time later! J In my testing I just tolerated
>> the bugs triggered by this.****
>>
>> ** **
>>
>> I think your analysis is correct. If xenstore can=92t detect a domain
>> shutdown then:****
>>
>> **1.       **It won=92t free the ring, which will prevent the domain bei=
ng
>> fully cleaned up (it will remain in =91Dying=92 forever)****
>>
>> **2.       **It won=92t emit the @releaseDomain watch, which is how a
>> toolstack notices a domain has shutdown****
>>
>> So I think the guest will shut itself down internally ok, but the cleanu=
p
>> will block, which will confuse toolstacks like xl.****
>>
>> ** **
>>
>> HTH,****
>>
>> Dave****
>>
>> ** **
>>
>> *From:* cl-mirage-bounces@lists.cam.ac.uk [mailto:
>> cl-mirage-bounces@lists.cam.ac.uk] *On Behalf Of *tech mailinglists
>> *Sent:* 06 February 2013 8:35 AM
>> *To:* Dave Scott
>> *Cc:* cl-mirage List; Anil Madhavapeddy
>> *Subject:* Re: A question about mirage****
>>
>> ** **
>>
>> Hello Dave,
>>
>> thanks for your reply.****
>>
>> When I understood you right, this rule is not needed:****
>>
>> *# Xenstore requires the global VIRQ for domain destroy operations*****
>>
>> *allow dom0_t xenstore_t:domain set_virq_handler;*****
>>
>> So it would be possible to shutdown a guest from within the guest but no=
t
>> via for example xl shutdown and xl destroy am I right?
>>
>> Best Regards****
>>
>> ** **
>>
>> 2013/2/6 Dave Scott <Dave.Scott@eu.citrix.com>****
>>
>> Hi,
>>
>> I've not tried configuring XSM/FLASK yet but I do know it's only
>> necessary for the domain getinfo hyper call, which is only necessary to
>> detect domain shutdown (and that a ring should be shutdown). Without it
>> everything will work but you'll slowly leak memory.
>>
>> --
>> Dave Scott
>> XenServer System Architect****
>>
>>
>> On Feb 4, 2013, at 12:17 PM, "Anil Madhavapeddy" <anil@recoil.org> wrote=
:
>>
>> > I have no idea  about the state of XSM/FLASK I'm afraid.  Dave Scott i=
s
>> probably the person most qualified to answer this one, as he's built
>> oxenstored as a stub domain already.
>> >
>> > -a
>> >
>> > On 4 Feb 2013, at 12:11, tech mailinglists <mailinglists.tech@gmail.co=
m>
>> wrote:
>> >
>> >> Hello Anil,
>> >>
>> >> thanks for your reply. This sounds very good to me. I think that
>> Mirage is a great project, I think that the building of specialized
>> appliances will be the future.
>> >>
>> >> I have another question about a special Mirage usecase: I builded a
>> oxenstored mirage appliance which worked without problems. Now I would l=
ike
>> to run it on a Xen 4.2.1 with Linux 3.7.4. I talked already with some
>> persons and they say that there are problems with XSM/FLASK. Daniel de
>> Graaf wrote an XSM/FLASK ruleset which should work with 4.3 unstable in
>> this mailinglist post:
>> http://lists.xen.org/archives/html/xen-devel/2013-01/msg00956.html
>> >>
>> >> Do you know whether it's possible to modify this ruleset so that
>> oxenstored could work on 4.2.1 and the given XSM/FLASK features in this
>> version?
>> >>
>> >> Best Regards
>> >>
>> >>
>> >> 2013/2/4 Anil Madhavapeddy <anil@recoil.org>
>> >> Not yet; you have to use the Mirage base module which provides the OS
>> abstraction. However, some software is already written to be functorised
>> across an OS module for portability, such as the Arakoon database engine=
 (
>> arakoon.org).  These were quite easy to port to Mirage.  Others, such as
>> MLDonkey, use the Unix module extensively and are harder.
>> >>
>> >> Raphael Proust is looking into a Mirage/UNIX compatibility layer, so
>> this is something we'll expand on more later on in the year once a stabl=
e
>> first version has been released.
>> >>
>> >> -anil
>> >>
>> >> On 4 Feb 2013, at 10:29, tech mailinglists <
>> mailinglists.tech@gmail.com> wrote:
>> >>
>> >>> Hello all,
>> >>>
>> >>> I have a question about the mirage OS. Is it possible to run every
>> OCaml Source Code in mirage? So would it be possible to run for example =
a
>> webserver written in OCaml or MLDonkey in mirage?
>> >>>
>> >>> Best Regards
>> >
>> >****
>>
>> ** **
>>
>
>


--=20
Dave Scott

--bcaec54fadca639b3c04d50ef4fc
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>It&#39;s good to hear that 4.3 unst=
able works for you. I was hoping the necessary support would have made it t=
o 4.2 but perhaps not.</div><div><br></div><div>Cheers,</div><div>Dave</div=
>
</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Wed,=
 Feb 6, 2013 at 10:26 AM, tech mailinglists <span dir=3D"ltr">&lt;<a href=
=3D"mailto:mailinglists.tech@gmail.com" target=3D"_blank">mailinglists.tech=
@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr">I will try to figure it out=
 with 4.2.1 with 4.3 unstable it seem to be no problem. Daniels rule should=
 work with 4.3 but 4.2.1 seem to don&#39;t support necessary things in XSM/=
FLASK and so I more or less lose the hope that it can be get to work.<br>

<br>Best Regards<br></div><div class=3D"HOEnZb"><div class=3D"h5"><div clas=
s=3D"gmail_extra"><br><br><div class=3D"gmail_quote">2013/2/6 Dave Scott <s=
pan dir=3D"ltr">&lt;<a href=3D"mailto:Dave.Scott@eu.citrix.com" target=3D"_=
blank">Dave.Scott@eu.citrix.com</a>&gt;</span><br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div link=3D"blue" vlink=3D"purple" lang=3D"=
EN-GB"><div><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-fam=
ily:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hi,<u></u><u>=
</u></span></p>

<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Oh yes the VIRQ handle=
r too =96 I=92d forgotten about that one. So I think you need:<u></u><u></u=
></span></p>

<p><u></u><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&=
quot;sans-serif&quot;;color:#1f497d"><span>1.<span style=3D"font:7.0pt &quo=
t;Times New Roman&quot;">=A0=A0=A0=A0=A0=A0 </span></span></span><u></u><sp=
an dir=3D"LTR"></span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d">The right to install a DOM=
_EXC VIRQ handler: xen will signal this event channel whenever a domain shu=
ts down; and<u></u><u></u></span></p>

<p><u></u><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&=
quot;sans-serif&quot;;color:#1f497d"><span>2.<span style=3D"font:7.0pt &quo=
t;Times New Roman&quot;">=A0=A0=A0=A0=A0=A0 </span></span></span><u></u><sp=
an dir=3D"LTR"></span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d">The right to call domain_g=
etinfo: xenstored will need this to figure out *<b>which</b>* domain has sh=
utdown.<u></u><u></u></span></p>

<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">If you figure out the =
correct runes to set this up then please let me know, it would save me some=
 time later! </span><span style=3D"font-size:11.0pt;font-family:Wingdings;c=
olor:#1f497d">J</span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> In my testing I just tole=
rated the bugs triggered by this.<u></u><u></u></span></p>

<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I think your analysis =
is correct. If xenstore can=92t detect a domain shutdown then:<u></u><u></u=
></span></p>

<p><u></u><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&=
quot;sans-serif&quot;;color:#1f497d"><span>1.<span style=3D"font:7.0pt &quo=
t;Times New Roman&quot;">=A0=A0=A0=A0=A0=A0 </span></span></span><u></u><sp=
an dir=3D"LTR"></span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d">It won=92t free the ring, =
which will prevent the domain being fully cleaned up (it will remain in =91=
Dying=92 forever)<u></u><u></u></span></p>

<p><u></u><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&=
quot;sans-serif&quot;;color:#1f497d"><span>2.<span style=3D"font:7.0pt &quo=
t;Times New Roman&quot;">=A0=A0=A0=A0=A0=A0 </span></span></span><u></u><sp=
an dir=3D"LTR"></span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d">It won=92t emit the @relea=
seDomain watch, which is how a toolstack notices a domain has shutdown<u></=
u><u></u></span></p>

<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d">So I think the guest will=
 shut itself down internally ok, but the cleanup will block, which will con=
fuse toolstacks like xl.<u></u><u></u></span></p>

<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">HTH,<u></u><u></u></sp=
an></p>

<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d">Dave<u></u><u></u></span>=
</p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quo=
t;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></sp=
an></p>

<div style=3D"border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm =
4.0pt"><div><div style=3D"border:none;border-top:solid #b5c4df 1.0pt;paddin=
g:3.0pt 0cm 0cm 0cm"><p class=3D"MsoNormal"><b><span style=3D"font-size:10.=
0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" lang=3D"EN-US">F=
rom:</span></b><span style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quo=
t;,&quot;sans-serif&quot;" lang=3D"EN-US"> <a href=3D"mailto:cl-mirage-boun=
ces@lists.cam.ac.uk" target=3D"_blank">cl-mirage-bounces@lists.cam.ac.uk</a=
> [mailto:<a href=3D"mailto:cl-mirage-bounces@lists.cam.ac.uk" target=3D"_b=
lank">cl-mirage-bounces@lists.cam.ac.uk</a>] <b>On Behalf Of </b>tech maili=
nglists<br>

<b>Sent:</b> 06 February 2013 8:35 AM<br><b>To:</b> Dave Scott<br><b>Cc:</b=
> cl-mirage List; Anil Madhavapeddy<br><b>Subject:</b> Re: A question about=
 mirage<u></u><u></u></span></p></div></div><div><div><p class=3D"MsoNormal=
">

<u></u>=A0<u></u></p><div><div><p class=3D"MsoNormal" style=3D"margin-botto=
m:12.0pt">Hello Dave,<br><br>thanks for your reply.<u></u><u></u></p></div>=
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt">When I understood you=
 right, this rule is not needed:<u></u><u></u></p>

<pre><i># Xenstore requires the global VIRQ for domain destroy operations</=
i><u></u><u></u></pre><pre><i>allow dom0_t xenstore_t:domain set_virq_handl=
er;</i><u></u><u></u></pre><p class=3D"MsoNormal">So it would be possible t=
o shutdown a guest from within the guest but not via for example xl shutdow=
n and xl destroy am I right?<br>

<br>Best Regards<u></u><u></u></p></div><div><p class=3D"MsoNormal" style=
=3D"margin-bottom:12.0pt"><u></u>=A0<u></u></p><div><p class=3D"MsoNormal">=
2013/2/6 Dave Scott &lt;<a href=3D"mailto:Dave.Scott@eu.citrix.com" target=
=3D"_blank">Dave.Scott@eu.citrix.com</a>&gt;<u></u><u></u></p>

<p class=3D"MsoNormal">Hi,<br><br>I&#39;ve not tried configuring XSM/FLASK =
yet but I do know it&#39;s only necessary for the domain getinfo hyper call=
, which is only necessary to detect domain shutdown (and that a ring should=
 be shutdown). Without it everything will work but you&#39;ll slowly leak m=
emory.<br>

<span style=3D"color:#888888"><br><span>--</span><br><span>Dave Scott</span=
><br><span>XenServer System Architect</span></span><u></u><u></u></p><div><=
div><p class=3D"MsoNormal"><br>On Feb 4, 2013, at 12:17 PM, &quot;Anil Madh=
avapeddy&quot; &lt;<a href=3D"mailto:anil@recoil.org" target=3D"_blank">ani=
l@recoil.org</a>&gt; wrote:<br>

<br>&gt; I have no idea =A0about the state of XSM/FLASK I&#39;m afraid. =A0=
Dave Scott is probably the person most qualified to answer this one, as he&=
#39;s built oxenstored as a stub domain already.<br>&gt;<br>&gt; -a<br>&gt;=
<br>

&gt; On 4 Feb 2013, at 12:11, tech mailinglists &lt;<a href=3D"mailto:maili=
nglists.tech@gmail.com" target=3D"_blank">mailinglists.tech@gmail.com</a>&g=
t; wrote:<br>&gt;<br>&gt;&gt; Hello Anil,<br>&gt;&gt;<br>&gt;&gt; thanks fo=
r your reply. This sounds very good to me. I think that Mirage is a great p=
roject, I think that the building of specialized appliances will be the fut=
ure.<br>

&gt;&gt;<br>&gt;&gt; I have another question about a special Mirage usecase=
: I builded a oxenstored mirage appliance which worked without problems. No=
w I would like to run it on a Xen 4.2.1 with Linux 3.7.4. I talked already =
with some persons and they say that there are problems with XSM/FLASK. Dani=
el de Graaf wrote an XSM/FLASK ruleset which should work with 4.3 unstable =
in this mailinglist post: <a href=3D"http://lists.xen.org/archives/html/xen=
-devel/2013-01/msg00956.html" target=3D"_blank">http://lists.xen.org/archiv=
es/html/xen-devel/2013-01/msg00956.html</a><br>

&gt;&gt;<br>&gt;&gt; Do you know whether it&#39;s possible to modify this r=
uleset so that oxenstored could work on 4.2.1 and the given XSM/FLASK featu=
res in this version?<br>&gt;&gt;<br>&gt;&gt; Best Regards<br>&gt;&gt;<br>

&gt;&gt;<br>&gt;&gt; 2013/2/4 Anil Madhavapeddy &lt;<a href=3D"mailto:anil@=
recoil.org" target=3D"_blank">anil@recoil.org</a>&gt;<br>&gt;&gt; Not yet; =
you have to use the Mirage base module which provides the OS abstraction. H=
owever, some software is already written to be functorised across an OS mod=
ule for portability, such as the Arakoon database engine (<a href=3D"http:/=
/arakoon.org" target=3D"_blank">arakoon.org</a>). =A0These were quite easy =
to port to Mirage. =A0Others, such as MLDonkey, use the Unix module extensi=
vely and are harder.<br>

&gt;&gt;<br>&gt;&gt; Raphael Proust is looking into a Mirage/UNIX compatibi=
lity layer, so this is something we&#39;ll expand on more later on in the y=
ear once a stable first version has been released.<br>&gt;&gt;<br>&gt;&gt; =
-anil<br>

&gt;&gt;<br>&gt;&gt; On 4 Feb 2013, at 10:29, tech mailinglists &lt;<a href=
=3D"mailto:mailinglists.tech@gmail.com" target=3D"_blank">mailinglists.tech=
@gmail.com</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt;&gt; Hello all,<br>&gt;&gt=
;&gt;<br>

&gt;&gt;&gt; I have a question about the mirage OS. Is it possible to run e=
very OCaml Source Code in mirage? So would it be possible to run for exampl=
e a webserver written in OCaml or MLDonkey in mirage?<br>&gt;&gt;&gt;<br>

&gt;&gt;&gt; Best Regards<br>&gt;<br>&gt;<u></u><u></u></p></div></div></di=
v><p class=3D"MsoNormal"><u></u>=A0<u></u></p></div></div></div></div></div=
></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
Dave Scott
</div>

--bcaec54fadca639b3c04d50ef4fc--


From mailinglists.tech@gmail.com Wed Feb 06 14:52:02 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U36Ly-0001I7-BD (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <mailinglists.tech@gmail.com>);
	Wed, 06 Feb 2013 14:52:02 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.8 from SpamAssassin-3.3.2-1442501 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [74.125.82.177 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (mailinglists.tech[at]gmail.com)
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	*      author's domain
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-we0-f177.google.com ([74.125.82.177]:47285)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1U36Lw-000747-ZA (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <mailinglists.tech@gmail.com>);
	Wed, 06 Feb 2013 14:52:02 +0000
Received: by mail-we0-f177.google.com with SMTP id d7so1209078wer.22
	for <cl-mirage@lists.cam.ac.uk>; Wed, 06 Feb 2013 06:52:00 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.180.85.226 with SMTP id k2mr5479241wiz.34.1360162320599;
	Wed, 06 Feb 2013 06:52:00 -0800 (PST)
Received: by 10.227.203.18 with HTTP; Wed, 6 Feb 2013 06:52:00 -0800 (PST)
In-Reply-To: <CAG_esB1p-U5pdJAG+zNP81gnDkMi9wmUkO__-N3dLEat6ioykw@mail.gmail.com>
References: <CAMCOOJtbjHX0LzQnSMgtQnT_P677chEuYHAM8y-X-Jebboss1w@mail.gmail.com>
	<67AE5BA3-D8F6-4E80-B695-EB3825352071@recoil.org>
	<CAMCOOJtVvwxKj+u3Z1AcUJO3deD5eU6rHbVpDv0LWBgtmE91fg@mail.gmail.com>
	<B65336BF-D64D-487D-9E4E-DE944F24F4B7@recoil.org>
	<BA51DA32-37DE-4D14-AE36-5215CD2C9CF5@eu.citrix.com>
	<CAMCOOJs7U3E9APMFQv_JJmm20Oya81781u_qAM8EDw9NZUfFfA@mail.gmail.com>
	<81A73678E76EA642801C8F2E4823AD21014183065D4D@LONPMAILBOX01.citrite.net>
	<CAMCOOJsXUa1mw9PSrca_-L+a49OVRDQe5QbNyVyrkCJH6ZMSYQ@mail.gmail.com>
	<CAG_esB1p-U5pdJAG+zNP81gnDkMi9wmUkO__-N3dLEat6ioykw@mail.gmail.com>
Date: Wed, 6 Feb 2013 15:52:00 +0100
Message-ID: <CAMCOOJs3JoZ8-bjHabhmhh+a0SHQ2-KvFRKz_nbcGEVAKfoA+A@mail.gmail.com>
Subject: Re: A question about mirage
From: tech mailinglists <mailinglists.tech@gmail.com>
To: David Scott <scott.dj@gmail.com>
Content-Type: multipart/alternative; boundary=f46d04428230f4cc0004d50f779e
Cc: Dave Scott <Dave.Scott@eu.citrix.com>,
	cl-mirage List <cl-mirage@lists.cam.ac.uk>,
	Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 06 Feb 2013 14:52:02 -0000
Content-Length: 18717
Lines: 447

--f46d04428230f4cc0004d50f779e
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

4.3 was tested with the XSM/FLASK ruleset of Daniel with the normal
xenstored (I think it should also work with oxenstored). I am searching a
way to workaround the fact that domctl hypercalls are needed to do it
clean. I think it will not work because the state of my knowing is that in
4.2.1 XSM/FLASK just support more or less sysctl hypercalls but also this
is not that clean as it could be. I know that there will be some
improvements in 4.3 and I would like to use oxenstored stubdom already now
but I am not sure to use 4.3 unstable already for production.

Best Regards


2013/2/6 David Scott <scott.dj@gmail.com>

> Hi,
>
> It's good to hear that 4.3 unstable works for you. I was hoping the
> necessary support would have made it to 4.2 but perhaps not.
>
> Cheers,
> Dave
>
>
> On Wed, Feb 6, 2013 at 10:26 AM, tech mailinglists <
> mailinglists.tech@gmail.com> wrote:
>
>> I will try to figure it out with 4.2.1 with 4.3 unstable it seem to be n=
o
>> problem. Daniels rule should work with 4.3 but 4.2.1 seem to don't suppo=
rt
>> necessary things in XSM/FLASK and so I more or less lose the hope that i=
t
>> can be get to work.
>>
>> Best Regards
>>
>>
>> 2013/2/6 Dave Scott <Dave.Scott@eu.citrix.com>
>>
>>> Hi,****
>>>
>>> ** **
>>>
>>> Oh yes the VIRQ handler too =96 I=92d forgotten about that one. So I th=
ink
>>> you need:****
>>>
>>> **1.       **The right to install a DOM_EXC VIRQ handler: xen will
>>> signal this event channel whenever a domain shuts down; and****
>>>
>>> **2.       **The right to call domain_getinfo: xenstored will need this
>>> to figure out **which** domain has shutdown.****
>>>
>>> ** **
>>>
>>> If you figure out the correct runes to set this up then please let me
>>> know, it would save me some time later! J In my testing I just
>>> tolerated the bugs triggered by this.****
>>>
>>> ** **
>>>
>>> I think your analysis is correct. If xenstore can=92t detect a domain
>>> shutdown then:****
>>>
>>> **1.       **It won=92t free the ring, which will prevent the domain
>>> being fully cleaned up (it will remain in =91Dying=92 forever)****
>>>
>>> **2.       **It won=92t emit the @releaseDomain watch, which is how a
>>> toolstack notices a domain has shutdown****
>>>
>>> So I think the guest will shut itself down internally ok, but the
>>> cleanup will block, which will confuse toolstacks like xl.****
>>>
>>> ** **
>>>
>>> HTH,****
>>>
>>> Dave****
>>>
>>> ** **
>>>
>>> *From:* cl-mirage-bounces@lists.cam.ac.uk [mailto:
>>> cl-mirage-bounces@lists.cam.ac.uk] *On Behalf Of *tech mailinglists
>>> *Sent:* 06 February 2013 8:35 AM
>>> *To:* Dave Scott
>>> *Cc:* cl-mirage List; Anil Madhavapeddy
>>> *Subject:* Re: A question about mirage****
>>>
>>> ** **
>>>
>>> Hello Dave,
>>>
>>> thanks for your reply.****
>>>
>>> When I understood you right, this rule is not needed:****
>>>
>>> *# Xenstore requires the global VIRQ for domain destroy operations*****
>>>
>>> *allow dom0_t xenstore_t:domain set_virq_handler;*****
>>>
>>> So it would be possible to shutdown a guest from within the guest but
>>> not via for example xl shutdown and xl destroy am I right?
>>>
>>> Best Regards****
>>>
>>> ** **
>>>
>>> 2013/2/6 Dave Scott <Dave.Scott@eu.citrix.com>****
>>>
>>> Hi,
>>>
>>> I've not tried configuring XSM/FLASK yet but I do know it's only
>>> necessary for the domain getinfo hyper call, which is only necessary to
>>> detect domain shutdown (and that a ring should be shutdown). Without it
>>> everything will work but you'll slowly leak memory.
>>>
>>> --
>>> Dave Scott
>>> XenServer System Architect****
>>>
>>>
>>> On Feb 4, 2013, at 12:17 PM, "Anil Madhavapeddy" <anil@recoil.org>
>>> wrote:
>>>
>>> > I have no idea  about the state of XSM/FLASK I'm afraid.  Dave Scott
>>> is probably the person most qualified to answer this one, as he's built
>>> oxenstored as a stub domain already.
>>> >
>>> > -a
>>> >
>>> > On 4 Feb 2013, at 12:11, tech mailinglists <
>>> mailinglists.tech@gmail.com> wrote:
>>> >
>>> >> Hello Anil,
>>> >>
>>> >> thanks for your reply. This sounds very good to me. I think that
>>> Mirage is a great project, I think that the building of specialized
>>> appliances will be the future.
>>> >>
>>> >> I have another question about a special Mirage usecase: I builded a
>>> oxenstored mirage appliance which worked without problems. Now I would =
like
>>> to run it on a Xen 4.2.1 with Linux 3.7.4. I talked already with some
>>> persons and they say that there are problems with XSM/FLASK. Daniel de
>>> Graaf wrote an XSM/FLASK ruleset which should work with 4.3 unstable in
>>> this mailinglist post:
>>> http://lists.xen.org/archives/html/xen-devel/2013-01/msg00956.html
>>> >>
>>> >> Do you know whether it's possible to modify this ruleset so that
>>> oxenstored could work on 4.2.1 and the given XSM/FLASK features in this
>>> version?
>>> >>
>>> >> Best Regards
>>> >>
>>> >>
>>> >> 2013/2/4 Anil Madhavapeddy <anil@recoil.org>
>>> >> Not yet; you have to use the Mirage base module which provides the O=
S
>>> abstraction. However, some software is already written to be functorise=
d
>>> across an OS module for portability, such as the Arakoon database engin=
e (
>>> arakoon.org).  These were quite easy to port to Mirage.  Others, such
>>> as MLDonkey, use the Unix module extensively and are harder.
>>> >>
>>> >> Raphael Proust is looking into a Mirage/UNIX compatibility layer, so
>>> this is something we'll expand on more later on in the year once a stab=
le
>>> first version has been released.
>>> >>
>>> >> -anil
>>> >>
>>> >> On 4 Feb 2013, at 10:29, tech mailinglists <
>>> mailinglists.tech@gmail.com> wrote:
>>> >>
>>> >>> Hello all,
>>> >>>
>>> >>> I have a question about the mirage OS. Is it possible to run every
>>> OCaml Source Code in mirage? So would it be possible to run for example=
 a
>>> webserver written in OCaml or MLDonkey in mirage?
>>> >>>
>>> >>> Best Regards
>>> >
>>> >****
>>>
>>> ** **
>>>
>>
>>
>
>
> --
> Dave Scott
>

--f46d04428230f4cc0004d50f779e
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>4.3 was tested with the XSM/FLASK ruleset of Daniel w=
ith the normal xenstored (I think it should also work with oxenstored). I a=
m searching a way to workaround the fact that domctl hypercalls are needed =
to do it clean. I think it will not work because the state of my knowing is=
 that in 4.2.1 XSM/FLASK just support more or less sysctl hypercalls but al=
so this is not that clean as it could be. I know that there will be some im=
provements in 4.3 and I would like to use oxenstored stubdom already now bu=
t I am not sure to use 4.3 unstable already for production.<br>
<br></div>Best Regards<br></div><div class=3D"gmail_extra"><br><br><div cla=
ss=3D"gmail_quote">2013/2/6 David Scott <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:scott.dj@gmail.com" target=3D"_blank">scott.dj@gmail.com</a>&gt;</span=
><br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le=
ft:1px #ccc solid;padding-left:1ex">
<div dir=3D"ltr">Hi,<div><br></div><div>It&#39;s good to hear that 4.3 unst=
able works for you. I was hoping the necessary support would have made it t=
o 4.2 but perhaps not.</div><div><br></div><div>Cheers,</div><div>Dave</div=
>

</div><div class=3D"gmail_extra"><div><div class=3D"h5"><br><br><div class=
=3D"gmail_quote">On Wed, Feb 6, 2013 at 10:26 AM, tech mailinglists <span d=
ir=3D"ltr">&lt;<a href=3D"mailto:mailinglists.tech@gmail.com" target=3D"_bl=
ank">mailinglists.tech@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr">I will try to figure it out=
 with 4.2.1 with 4.3 unstable it seem to be no problem. Daniels rule should=
 work with 4.3 but 4.2.1 seem to don&#39;t support necessary things in XSM/=
FLASK and so I more or less lose the hope that it can be get to work.<br>


<br>Best Regards<br></div><div><div><div class=3D"gmail_extra"><br><br><div=
 class=3D"gmail_quote">2013/2/6 Dave Scott <span dir=3D"ltr">&lt;<a href=3D=
"mailto:Dave.Scott@eu.citrix.com" target=3D"_blank">Dave.Scott@eu.citrix.co=
m</a>&gt;</span><br>


<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div link=3D"blue" vlink=3D"purple" lang=3D"=
EN-GB"><div><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-fam=
ily:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hi,<u></u><u>=
</u></span></p>


<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Oh yes the VIRQ handle=
r too =96 I=92d forgotten about that one. So I think you need:<u></u><u></u=
></span></p>


<p><u></u><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&=
quot;sans-serif&quot;;color:#1f497d"><span>1.<span style=3D"font:7.0pt &quo=
t;Times New Roman&quot;">=A0=A0=A0=A0=A0=A0 </span></span></span><u></u><sp=
an dir=3D"LTR"></span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d">The right to install a DOM=
_EXC VIRQ handler: xen will signal this event channel whenever a domain shu=
ts down; and<u></u><u></u></span></p>


<p><u></u><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&=
quot;sans-serif&quot;;color:#1f497d"><span>2.<span style=3D"font:7.0pt &quo=
t;Times New Roman&quot;">=A0=A0=A0=A0=A0=A0 </span></span></span><u></u><sp=
an dir=3D"LTR"></span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d">The right to call domain_g=
etinfo: xenstored will need this to figure out *<b>which</b>* domain has sh=
utdown.<u></u><u></u></span></p>


<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">If you figure out the =
correct runes to set this up then please let me know, it would save me some=
 time later! </span><span style=3D"font-size:11.0pt;font-family:Wingdings;c=
olor:#1f497d">J</span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> In my testing I just tole=
rated the bugs triggered by this.<u></u><u></u></span></p>


<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I think your analysis =
is correct. If xenstore can=92t detect a domain shutdown then:<u></u><u></u=
></span></p>


<p><u></u><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&=
quot;sans-serif&quot;;color:#1f497d"><span>1.<span style=3D"font:7.0pt &quo=
t;Times New Roman&quot;">=A0=A0=A0=A0=A0=A0 </span></span></span><u></u><sp=
an dir=3D"LTR"></span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d">It won=92t free the ring, =
which will prevent the domain being fully cleaned up (it will remain in =91=
Dying=92 forever)<u></u><u></u></span></p>


<p><u></u><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&=
quot;sans-serif&quot;;color:#1f497d"><span>2.<span style=3D"font:7.0pt &quo=
t;Times New Roman&quot;">=A0=A0=A0=A0=A0=A0 </span></span></span><u></u><sp=
an dir=3D"LTR"></span><span style=3D"font-size:11.0pt;font-family:&quot;Cal=
ibri&quot;,&quot;sans-serif&quot;;color:#1f497d">It won=92t emit the @relea=
seDomain watch, which is how a toolstack notices a domain has shutdown<u></=
u><u></u></span></p>


<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d">So I think the guest will=
 shut itself down internally ok, but the cleanup will block, which will con=
fuse toolstacks like xl.<u></u><u></u></span></p>


<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">HTH,<u></u><u></u></sp=
an></p>


<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d">Dave<u></u><u></u></span>=
</p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quo=
t;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></sp=
an></p>


<div style=3D"border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm =
4.0pt"><div><div style=3D"border:none;border-top:solid #b5c4df 1.0pt;paddin=
g:3.0pt 0cm 0cm 0cm"><p class=3D"MsoNormal"><b><span style=3D"font-size:10.=
0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" lang=3D"EN-US">F=
rom:</span></b><span style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quo=
t;,&quot;sans-serif&quot;" lang=3D"EN-US"> <a href=3D"mailto:cl-mirage-boun=
ces@lists.cam.ac.uk" target=3D"_blank">cl-mirage-bounces@lists.cam.ac.uk</a=
> [mailto:<a href=3D"mailto:cl-mirage-bounces@lists.cam.ac.uk" target=3D"_b=
lank">cl-mirage-bounces@lists.cam.ac.uk</a>] <b>On Behalf Of </b>tech maili=
nglists<br>


<b>Sent:</b> 06 February 2013 8:35 AM<br><b>To:</b> Dave Scott<br><b>Cc:</b=
> cl-mirage List; Anil Madhavapeddy<br><b>Subject:</b> Re: A question about=
 mirage<u></u><u></u></span></p></div></div><div><div><p class=3D"MsoNormal=
">


<u></u>=A0<u></u></p><div><div><p class=3D"MsoNormal" style=3D"margin-botto=
m:12.0pt">Hello Dave,<br><br>thanks for your reply.<u></u><u></u></p></div>=
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt">When I understood you=
 right, this rule is not needed:<u></u><u></u></p>


<pre><i># Xenstore requires the global VIRQ for domain destroy operations</=
i><u></u><u></u></pre><pre><i>allow dom0_t xenstore_t:domain set_virq_handl=
er;</i><u></u><u></u></pre><p class=3D"MsoNormal">So it would be possible t=
o shutdown a guest from within the guest but not via for example xl shutdow=
n and xl destroy am I right?<br>


<br>Best Regards<u></u><u></u></p></div><div><p class=3D"MsoNormal" style=
=3D"margin-bottom:12.0pt"><u></u>=A0<u></u></p><div><p class=3D"MsoNormal">=
2013/2/6 Dave Scott &lt;<a href=3D"mailto:Dave.Scott@eu.citrix.com" target=
=3D"_blank">Dave.Scott@eu.citrix.com</a>&gt;<u></u><u></u></p>


<p class=3D"MsoNormal">Hi,<br><br>I&#39;ve not tried configuring XSM/FLASK =
yet but I do know it&#39;s only necessary for the domain getinfo hyper call=
, which is only necessary to detect domain shutdown (and that a ring should=
 be shutdown). Without it everything will work but you&#39;ll slowly leak m=
emory.<br>


<span style=3D"color:#888888"><br><span>--</span><br><span>Dave Scott</span=
><br><span>XenServer System Architect</span></span><u></u><u></u></p><div><=
div><p class=3D"MsoNormal"><br>On Feb 4, 2013, at 12:17 PM, &quot;Anil Madh=
avapeddy&quot; &lt;<a href=3D"mailto:anil@recoil.org" target=3D"_blank">ani=
l@recoil.org</a>&gt; wrote:<br>


<br>&gt; I have no idea =A0about the state of XSM/FLASK I&#39;m afraid. =A0=
Dave Scott is probably the person most qualified to answer this one, as he&=
#39;s built oxenstored as a stub domain already.<br>&gt;<br>&gt; -a<br>&gt;=
<br>


&gt; On 4 Feb 2013, at 12:11, tech mailinglists &lt;<a href=3D"mailto:maili=
nglists.tech@gmail.com" target=3D"_blank">mailinglists.tech@gmail.com</a>&g=
t; wrote:<br>&gt;<br>&gt;&gt; Hello Anil,<br>&gt;&gt;<br>&gt;&gt; thanks fo=
r your reply. This sounds very good to me. I think that Mirage is a great p=
roject, I think that the building of specialized appliances will be the fut=
ure.<br>


&gt;&gt;<br>&gt;&gt; I have another question about a special Mirage usecase=
: I builded a oxenstored mirage appliance which worked without problems. No=
w I would like to run it on a Xen 4.2.1 with Linux 3.7.4. I talked already =
with some persons and they say that there are problems with XSM/FLASK. Dani=
el de Graaf wrote an XSM/FLASK ruleset which should work with 4.3 unstable =
in this mailinglist post: <a href=3D"http://lists.xen.org/archives/html/xen=
-devel/2013-01/msg00956.html" target=3D"_blank">http://lists.xen.org/archiv=
es/html/xen-devel/2013-01/msg00956.html</a><br>


&gt;&gt;<br>&gt;&gt; Do you know whether it&#39;s possible to modify this r=
uleset so that oxenstored could work on 4.2.1 and the given XSM/FLASK featu=
res in this version?<br>&gt;&gt;<br>&gt;&gt; Best Regards<br>&gt;&gt;<br>


&gt;&gt;<br>&gt;&gt; 2013/2/4 Anil Madhavapeddy &lt;<a href=3D"mailto:anil@=
recoil.org" target=3D"_blank">anil@recoil.org</a>&gt;<br>&gt;&gt; Not yet; =
you have to use the Mirage base module which provides the OS abstraction. H=
owever, some software is already written to be functorised across an OS mod=
ule for portability, such as the Arakoon database engine (<a href=3D"http:/=
/arakoon.org" target=3D"_blank">arakoon.org</a>). =A0These were quite easy =
to port to Mirage. =A0Others, such as MLDonkey, use the Unix module extensi=
vely and are harder.<br>


&gt;&gt;<br>&gt;&gt; Raphael Proust is looking into a Mirage/UNIX compatibi=
lity layer, so this is something we&#39;ll expand on more later on in the y=
ear once a stable first version has been released.<br>&gt;&gt;<br>&gt;&gt; =
-anil<br>


&gt;&gt;<br>&gt;&gt; On 4 Feb 2013, at 10:29, tech mailinglists &lt;<a href=
=3D"mailto:mailinglists.tech@gmail.com" target=3D"_blank">mailinglists.tech=
@gmail.com</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt;&gt; Hello all,<br>&gt;&gt=
;&gt;<br>


&gt;&gt;&gt; I have a question about the mirage OS. Is it possible to run e=
very OCaml Source Code in mirage? So would it be possible to run for exampl=
e a webserver written in OCaml or MLDonkey in mirage?<br>&gt;&gt;&gt;<br>


&gt;&gt;&gt; Best Regards<br>&gt;<br>&gt;<u></u><u></u></p></div></div></di=
v><p class=3D"MsoNormal"><u></u>=A0<u></u></p></div></div></div></div></div=
></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div></div><=
/div><span class=3D"HOEnZb"><font color=3D"#888888">-- <br>Dave Scott
</font></span></div>
</blockquote></div><br></div>

--f46d04428230f4cc0004d50f779e--


From avsm2@cl.cam.ac.uk Thu Feb 07 16:44:52 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U3Uai-0001WV-Oc (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <avsm2@cl.cam.ac.uk>); Thu, 07 Feb 2013 16:44:52 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1442869
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:35613
	helo=dark.recoil.org)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with smtp id 1U3Uah-0000YE-Xz (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <avsm2@cl.cam.ac.uk>); Thu, 07 Feb 2013 16:44:52 +0000
Received: (qmail 3876 invoked by uid 634); 7 Feb 2013 16:44:51 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.38]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Thu, 07 Feb 2013 16:44:50 +0000
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Fwd: CFP: PLOS '13: 7th Workshop on Programming Languages and
	Operating Systems
From: Anil Madhavapeddy <avsm2@cl.cam.ac.uk>
X-Priority: 3
Date: Thu, 7 Feb 2013 16:44:51 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <75C3CA3D-D9C0-4274-B282-F60F2F77936F@cl.cam.ac.uk>
References: <2d0117c3-0288-479d-9700-6a984e1ea9e3@default>
To: NetOS List <netos@cl.cam.ac.uk>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: "cl-ctsrd@lists.cam.ac.uk list" <cl-ctsrd@lists.cam.ac.uk>,
	"cl-mrc2@lists.cam.ac.uk" <cl-mrc2@lists.cam.ac.uk>,
	cl-mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 07 Feb 2013 16:44:52 -0000
Content-Length: 5898
Lines: 151

Be provocative! Interesting! Controversial! Stimulating!  And when =
you're done with all that, submit a paper to PLOS 2013!

The PC spans industry and academia, so cross-over work (for example, =
that you've done during an internship) would be particularly welcome.  =
Feel free to talk to Tim Harris or myself if you have any queries about =
the scope of work you intend to submit.

This workshop will also be co-located at SOSP, and an excellent reason =
to plead with your supervisor for travel funds to attend the main =
conference.

-anil
=20
Begin forwarded message:

> From: Tim Harris <timothy.l.harris@oracle.com>
> Subject: CFP: PLOS '13: 7th Workshop on Programming Languages and =
Operating Systems
> Date: 7 February 2013 11:14:28 GMT
> To: infodir_sigplan@acm.org
> Cc: Anil Madhavapeddy <Anil.Madhavapeddy@cl.cam.ac.uk>
>=20
>                              CALL FOR PAPERS
>=20
>       Seventh Workshop on Programming Languages and Operating Systems
>                                (PLOS 2013)
>=20
>                             November 3, 2013
>                 Nemacolin Woodlands Resort, Pennsylvania, USA
>=20
>                       http://plosworkshop.org/2013/
>=20
>                          Sponsored by ACM SIGOPS
>                       In conjunction with SOSP 2013
>                    http://www.sigops.org/sosp/sosp13/
>=20
>              Paper submission deadline:        July 5, 2013
>              Notification of acceptance:     August 9, 2013
>              Workshop:                     November 3, 2013
>=20
>=20
> Historically, operating system development and programming language
> development went hand-in-hand.  Challenges in one area were often
> approached using ideas or techniques developed in the other, and
> advances in one area enabled new capabilities in the other.
>=20
> Today, although the systems community at large retains an iron grip
> on C, modern programming language ideas continue to spark innovations
> in OS design and construction.  Conversely, the systems field
> continues to provide a wealth of challenging problems and practical
> results that should lead to advances in programming languages,
> software designs, and idioms.
>=20
> This workshop will bring together researchers and developers from
> the programming language and operating system domains to discuss
> recent work at the intersection of these fields.  It will be a
> platform for discussing new visions, challenges, experiences,
> problems, and solutions arising from the application of advanced
> programming and software engineering concepts to operating systems
> construction, and vice versa.
>=20
> Suggested paper topics include, but are not restricted to:
>=20
> - critical evaluations of new programming language ideas in support
>   of OS construction,
>=20
> - domain-specific languages for operating systems,
>=20
> - type-safe languages for operating systems,
>=20
> - object-oriented and component-based operating systems,
>=20
> - language-based approaches to crosscutting system concerns, such
>   as security and run-time performance,
>=20
> - language support for system verification,
>=20
> - language support for OS testing and debugging,
>=20
> - static/dynamic configuration of operating systems,
>=20
> - static/dynamic specialization within operating systems,
>=20
> - the use of OS abstractions and techniques in language runtimes,
>=20
> - experience reports on applying new language techniques in
>   commercial OS settings.
>=20
> AGENDA
>=20
> The workshop will be a highly interactive event with an agenda
> designed to promote focused and lively discussions.
>=20
> Part of the workshop will be based on presentations of papers---we
> welcome research, experience, and position papers; papers describing
> industrial experience are particularly encouraged.  The set of
> accepted papers will be made available to registered attendees in
> advance of the workshop.  Participants should come to the workshop
> prepared with questions and comments.
>=20
> The workshop organizers will use the accepted papers and input from
> participants to compile a list of topics for working groups, to be
> held during the workshop.  The set of topics may be extended or
> changed during the workshop, based on the presentation and discussion
> of the workshop papers.
>=20
> SUBMISSION GUIDELINES
>=20
> All papers must be written in English and should be formatted
> according to the ACM proceedings format.  Submissions must not be
> more than five~(5) pages in length---this limit will be strictly
> enforced, and shorter papers are encouraged.  Papers must be submitted
> in PDF format via the workshop Web site.  They will be reviewed by
> the workshop program committee and designated external reviewers.
> Papers will be evaluated based on technical quality, originality,
> relevance, and presentation.
>=20
> Accepted papers will be published electronically in the ACM Digital
> Library.  The authors of accepted papers will be required to sign
> ACM copyright release forms.
>=20
> The publication of a paper in the PLOS workshop proceedings is not
> intended to replace future conference publication.
>=20
> PROGRAM COMMITTEE
>=20
>  Herbert Bos, VU, Amsterdam
>  Angela Demke Brown, University of Toronto
>  Marius Eriksen, Twitter
>  Nate Foster, Cornell University
>  Robert Grimm, New York University
>  Tim Harris, Oracle Labs, Cambridge, UK (co-chair)
>  Julia Lawall, Inria/LIP6
>  Shan Lu, University of Wisconsin
>  Anil Madhavapeddy, University of Cambridge (co-chair)
>  Scott Mahlke, University of Michigan
>  Bryan O'Sullivan, Facebook
>  Benjamin Pierce, University of Pennsylvania
>  Chris Rossbach, Microsoft Research
>  Gael Thomas, LIP6
>  Adam Wick, Galois
>=20
> ORGANIZING COMMITTEE
>=20
>  Chris Hawblitzel, Microsoft Research
>  Gilles Muller, Inria/LIP6
>  Olaf Spinczyk, Technische Universitat Dortmund
>=20



From neumann@csl.sri.com Thu Feb 07 18:56:24 2013
Received: from ppsw-41.csi.cam.ac.uk ([131.111.8.141])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U3We0-00052l-Gn (Exim 4.70)
	(return-path <neumann@csl.sri.com>); Thu, 07 Feb 2013 18:56:24 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.0 from SpamAssassin-3.3.2-1442869 
	* -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from brightmail-internal3.sri.com ([128.18.84.132]:47656)
	by ppsw-41.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with esmtp id 1U3Wdz-0004Ko-RV (Exim 4.72)
	(return-path <neumann@csl.sri.com>); Thu, 07 Feb 2013 18:56:24 +0000
X-AuditID: 80125484-b7f1a6d0000064e9-e5-5113f8d5dd98
Received: from mx0.csl.sri.com (mx0.csl.sri.com [130.107.1.30])
	(using TLS with cipher AES256-SHA (AES256-SHA/256 bits))
	(Client did not present a certificate)
	by brightmail-internal3.sri.com (SRI Internal SMTP Gateway) with SMTP
	id 9F.2C.25833.5D8F3115; Thu,  7 Feb 2013 10:56:21 -0800 (PST)
Received: from chiron.csl.sri.com (chiron.csl.sri.com [130.107.15.74])
	by mx0.csl.sri.com (8.14.3/8.14.2) with ESMTP id r17IuLB9044083
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Thu, 7 Feb 2013 10:56:21 -0800 (PST)
	(envelope-from neumann@csl.sri.com)
Received: from chiron.csl.sri.com (localhost.localdomain [127.0.0.1])
	by chiron.csl.sri.com (8.13.1/8.13.1) with ESMTP id r17IuJIn025247;
	Thu, 7 Feb 2013 10:56:19 -0800
Received: (from neumann@localhost)
	by chiron.csl.sri.com (8.13.1/8.13.1/Submit) id r17IuJ3C025246;
	Thu, 7 Feb 2013 10:56:19 -0800
Date: Thu, 7 Feb 2013 10:56:18 PST
From: "Peter G. Neumann" <neumann@csl.sri.com>
To: Anil Madhavapeddy <avsm2@cl.cam.ac.uk>
Subject: Re: Fwd: CFP: PLOS '13: 7th Workshop on Programming Languages and
	Operating Systems
In-Reply-To: Your message of Thu, 7 Feb 2013 16:44:51 +0000
Message-ID: <CMM.0.90.4.1360263378.neumann@chiron.csl.sri.com>
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphluLIzCtJLcpLzFFi42JpymaU0736QzjQYHaHscW/S3wWmx/uZrbY
	9aSd3WLhrZmMFmd3N7E6sHpsbT3O4rHu3VKWAKYoLpuU1JzMstQifbsEroxp2zYzF9xiqXiz
	3qqB8S5zFyMnh4SAicTU95dYIGwxiQv31rN1MXJxCAmsYpK4dWYJI4Qzm0ni6cnJ7BDOGkaJ
	eQc7mCGcVkaJC2+nM4L0swgoSbw9ew7MZhPQk9h+8icriC0ioCUx98JrsG5mgduMEjM//2ID
	SQgLpEpMvrUJzOYUsJZY397MDmLzCthJzJrRyjyBkXcBI8MqRpmkosz0jJLcxMwcXViIGOsV
	F2XqJefnbmIEhk2DUEjLDsYVuwwPMQpwMCrx8FqeVgkQYk0sK67MPcQowcGsJMIrv144UIg3
	JbGyKrUoP76oNCe1+BCjNAeLkjhvmDG/v5BAemJJanZqakFqEUyWiYNTqoGRbZrCdr904fOz
	Yxs2LNm/svT/0ZjtF6odTt3M/vegLTtDoXuCf6bUJ9cJF+cuFZhzr6PjaRrX942ZSifrysNb
	93C0yO8vUGmbfj/zIm+j/z3O+f6W3cws0wT3vMsV8Ft7fb/amQfpTawfVysqPC2UmyT442SP
	9/Rz6Y0CzqXb5mjdrii/tKFFiaU4I9FQi7moOBEA/0pP7xcCAAA=
Cc: "cl-ctsrd@lists.cam.ac.uk list" <cl-ctsrd@lists.cam.ac.uk>,
	"cl-mrc2@lists.cam.ac.uk" <cl-mrc2@lists.cam.ac.uk>,
	NetOS List <netos@cl.cam.ac.uk>, cl-mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 07 Feb 2013 18:56:24 -0000
Content-Length: 588
Lines: 16

Anil,

I've been to Nemacolin Woodlands Resort only once, in 1998 to keynote a NASA
workshop on risk management.  It is quite a hike from Pittsburgh, but quite
nice -- a rather remote place in southwest Pennsylvania, just a stone's
throw from the northernmost T intersection formed by West Virginia and
Maryland with southern Pennsylvania.  It should be a very pleasant place in
November even if there is early snow.

SOSP and PLOS (SOSPPLOS? SOSP for the goose is a PLOS-up for the gander)
should be a worthwhile trip for some.  Might we have some CTSRD/MRC papers
by July 5?  

Peter



From anil@recoil.org Fri Feb 08 14:52:15 2013
Received: from ppsw-43.csi.cam.ac.uk ([131.111.8.143])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U3pJG-0003UV-Vd (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Fri, 08 Feb 2013 14:52:14 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1443355
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:22740
	helo=dark.recoil.org)
	by ppsw-43.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1U3pJG-0000sS-no (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Fri, 08 Feb 2013 14:52:14 +0000
Received: (qmail 19669 invoked by uid 634); 8 Feb 2013 14:52:14 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO [10.0.1.83]) (128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Fri, 08 Feb 2013 14:52:14 +0000
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: cstruct/mirage releases
Message-Id: <B827DCDE-4FFE-4E07-A3FA-E8CC04F82614@recoil.org>
Date: Fri, 8 Feb 2013 14:52:13 +0000
To: cl-mirage List <cl-mirage@lists.cam.ac.uk>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Fri, 08 Feb 2013 14:52:15 -0000
Content-Length: 1389
Lines: 34

I've cut some more releases of Core Mirage libraries and pushed them to =
OPAM.  Most of these have been in trunk for a while, so I flushed them =
into a release without further changes.  The next set of changes will be =
to integrate Thomas' new build front-end (mirari) into the tree.

cstruct 0.6.2 (08-Feb-2013):

* Use bounds checked version of all functions in the external interface.
* Expose the `Cstruct.debug` to dump internal state of a buffer to a =
string.
* Add `set_len` and `add_len` to manipulate the total-length field =
directly.

mirage-platform 0.7.2 (08-Feb-2013):

* [xen] Fix the size of the start-of-day Xenstore and console rings.
* Quieten the verbosity of devices sleeping in Xen, to avoid console
  overflow situations.
* Install the packed `cmx` along with the `cmxa` to ensure that the
  compiler can do cross-module optimization (this is not a fatal error,
  but will impact performance if the `cmx` file is not present).

mirage-net 0.5.2 (08-Feb-2013):
* Encourage scatter-gather I/O all the time, rather than playing tricks=20=

  with packet header buffers. This simplifies the output path =
considerably
  and cuts minor heap allocations down.
* Install the packed `cmx` along with the `cmxa` to ensure that the
  compiler can do cross-module optimization (this is not a fatal error,
  but will impact performance if the `cmx` file is not present).




From anil@recoil.org Sun Feb 10 18:19:30 2013
Received: from ppsw-43.csi.cam.ac.uk ([131.111.8.143])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4bUw-000506-UD (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 10 Feb 2013 18:19:30 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1444342
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:7538
	helo=dark.recoil.org)
	by ppsw-43.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1U4bUw-0007rU-nb (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 10 Feb 2013 18:19:30 +0000
Received: (qmail 14667 invoked by uid 634); 10 Feb 2013 18:19:29 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.84]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Sun, 10 Feb 2013 18:19:29 +0000
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: opam-repo-dev now less useful
Message-Id: <33691BD5-4B34-4F54-B93F-B357F8577326@recoil.org>
Date: Sun, 10 Feb 2013 18:19:29 +0000
To: cl-mirage List <cl-mirage@lists.cam.ac.uk>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 10 Feb 2013 18:19:31 -0000
Content-Length: 777
Lines: 16

Now that OPAM is settling down, the mirage/opam-repo-dev remote is =
considerably less useful.  Its primary goal is to have the bleeding edge =
versions of all the repositories, but in practise this means that we =
just forget to cut releases, and users without this remote get errors.

Now, the easy alternative to having this remote is simply to 'opam pin =
git://foo/bar' to get a local development copy.  With this in mind, I =
think we should get rid of this remote, and instead use =
git://github.com/mirage/opam-repository to commit proper releases.

Thoughts? I'm particularly interested in Dave/Jon, as they may have =
hidden dependencies on opam-repo-dev that I don't know about.  But I =
suspect you've moved the Citrix stuff onto xen-org/opam-repo-dev...?

-anil=


From scott.dj@gmail.com Sun Feb 10 18:39:51 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4bod-0005L0-9F (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <scott.dj@gmail.com>); Sun, 10 Feb 2013 18:39:51 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.8 from SpamAssassin-3.3.2-1444342 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.212.45 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (scott.dj[at]gmail.com)
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	*      author's domain
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-vb0-f45.google.com ([209.85.212.45]:54128)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1U4bob-0004TP-Yu (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <scott.dj@gmail.com>); Sun, 10 Feb 2013 18:39:51 +0000
Received: by mail-vb0-f45.google.com with SMTP id p1so3360094vbi.18
	for <cl-mirage@lists.cam.ac.uk>; Sun, 10 Feb 2013 10:39:49 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.52.35.241 with SMTP id l17mr13503482vdj.7.1360521589161;
	Sun, 10 Feb 2013 10:39:49 -0800 (PST)
Received: by 10.220.165.193 with HTTP; Sun, 10 Feb 2013 10:39:49 -0800 (PST)
In-Reply-To: <33691BD5-4B34-4F54-B93F-B357F8577326@recoil.org>
References: <33691BD5-4B34-4F54-B93F-B357F8577326@recoil.org>
Date: Sun, 10 Feb 2013 18:39:49 +0000
Message-ID: <CAG_esB0Td-xy2G6-fV5=ucXTf4CNL3ug8giksKXJi4wJ0eL4OA@mail.gmail.com>
Subject: Re: opam-repo-dev now less useful
From: David Scott <scott.dj@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: multipart/alternative; boundary=20cf307813e007ff0404d5631ed6
Cc: cl-mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 10 Feb 2013 18:39:51 -0000
Content-Length: 4415
Lines: 98

--20cf307813e007ff0404d5631ed6
Content-Type: text/plain; charset=ISO-8859-1

On Sun, Feb 10, 2013 at 6:19 PM, Anil Madhavapeddy <anil@recoil.org> wrote:

> Now that OPAM is settling down, the mirage/opam-repo-dev remote is
> considerably less useful.  Its primary goal is to have the bleeding edge
> versions of all the repositories, but in practise this means that we just
> forget to cut releases, and users without this remote get errors.
>
> Now, the easy alternative to having this remote is simply to 'opam pin
> git://foo/bar' to get a local development copy.  With this in mind, I think
> we should get rid of this remote, and instead use git://
> github.com/mirage/opam-repository to commit proper releases.
>
> Thoughts? I'm particularly interested in Dave/Jon, as they may have hidden
> dependencies on opam-repo-dev that I don't know about.  But I suspect
> you've moved the Citrix stuff onto xen-org/opam-repo-dev...?
>

I think the xen stuff uses xen-org/opam-repo-dev and doesn't depend on the
mirage/opam-repo-dev, so you won't break anything by removing
mirage/opam-repo-dev. We've been copying your style there :-)

It's a fair observation that we're using the opam-repo-dev as a shortcut to
avoid thinking about releases. This would indeed explain why things work
just fine for us with all the dev repos, but not for casual users who opt
for the stable, non-dev repos. If the 'opam pin git://' works then I say:
remove the mirage/opam-repo-dev remote and let's all use the stable
versions and make sure they're rock solid.

The xen-org/opam-repo-dev contains a bit of a backlog of unreleased stuff.
I need to tidy up xenopsd (the lowest piece) and cut a release as soon as
possible.

Cheers,
Dave


>
> -anil
>



-- 
Dave Scott

--20cf307813e007ff0404d5631ed6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><br><div class=3D"gmail=
_quote">On Sun, Feb 10, 2013 at 6:19 PM, Anil Madhavapeddy <span dir=3D"ltr=
">&lt;<a href=3D"mailto:anil@recoil.org" target=3D"_blank">anil@recoil.org<=
/a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Now that OPAM is settling down, the mirage/o=
pam-repo-dev remote is considerably less useful. =A0Its primary goal is to =
have the bleeding edge versions of all the repositories, but in practise th=
is means that we just forget to cut releases, and users without this remote=
 get errors.<br>

<br>
Now, the easy alternative to having this remote is simply to &#39;opam pin =
git://foo/bar&#39; to get a local development copy. =A0With this in mind, I=
 think we should get rid of this remote, and instead use git://<a href=3D"h=
ttp://github.com/mirage/opam-repository" target=3D"_blank">github.com/mirag=
e/opam-repository</a> to commit proper releases.<br>

<br>
Thoughts? I&#39;m particularly interested in Dave/Jon, as they may have hid=
den dependencies on opam-repo-dev that I don&#39;t know about. =A0But I sus=
pect you&#39;ve moved the Citrix stuff onto xen-org/opam-repo-dev...?<br>
</blockquote><div><br></div><div>I think the xen stuff uses xen-org/opam-re=
po-dev and doesn&#39;t depend on the mirage/opam-repo-dev, so you won&#39;t=
 break anything by removing mirage/opam-repo-dev. We&#39;ve been copying yo=
ur style there :-)</div>
<div><br></div><div>It&#39;s a fair observation that we&#39;re using the op=
am-repo-dev as a shortcut to avoid thinking about releases. This would inde=
ed explain why things work just fine for us with all the dev repos, but not=
 for casual users who opt for the stable, non-dev repos. If the &#39;opam p=
in git://&#39; works then I say: remove the mirage/opam-repo-dev remote and=
 let&#39;s all use the stable versions and make sure they&#39;re rock solid=
.</div>
<div><br></div><div>The xen-org/opam-repo-dev contains a bit of a backlog o=
f unreleased stuff. I need to tidy up xenopsd (the lowest piece) and cut a =
release as soon as possible.</div><div><br></div><div>Cheers,</div><div>
Dave</div><div>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0=
 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-anil<br>
</font></span></blockquote></div><br><br clear=3D"all"><div><br></div>-- <b=
r>Dave Scott
</div></div>

--20cf307813e007ff0404d5631ed6--


From anil@recoil.org Sun Feb 10 19:06:08 2013
Received: from ppsw-43.csi.cam.ac.uk ([131.111.8.143])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4cE4-0005us-H4 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 10 Feb 2013 19:06:08 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1444342
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:10661
	helo=dark.recoil.org)
	by ppsw-43.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1U4cE3-0002Cb-nk (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 10 Feb 2013 19:06:08 +0000
Received: (qmail 9900 invoked by uid 634); 10 Feb 2013 19:06:07 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.84]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Sun, 10 Feb 2013 19:06:06 +0000
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: Mirari, the tool you've all been waiting for!
Message-Id: <6FCC1F64-C0C5-46F0-AA1A-2BBA9FA5A678@recoil.org>
Date: Sun, 10 Feb 2013 19:06:07 +0000
To: cl-mirage List <cl-mirage@lists.cam.ac.uk>, Vincent Hanquez <tab@snarc.org>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 10 Feb 2013 19:06:08 -0000
Content-Length: 3144
Lines: 62

During Thomas' recent visit to Cambridge, we burnt through all the =
remaining TODOs to get a Mirage developer release out the door before =
ASPLOS in March. While all the libraries are in reasonable shape (just =
need documentation), the process of configuring and building Mirage =
applications is still difficult. =20

The reason for this is an intrinsic part of the Mirage philosophy: the =
library OS model requires that libraries hold the mechanisms to do =
things, with the policy in the application itself.  In practise of =
course, this means hardcoding things like network configuration in your =
web server, or shell scripts to crunch up filesystems into static ML =
modules.

This needs cleaning up: in addition to the Xen backend, we also have a =
fledgling FreeBSD kernel module, a Javascript layer, an NS3 simulator, =
an HVM MiniOS which should run on KVM with a bit of hacking, and soon a =
uBoot-based Raspberry Pi port!  We are also beginning work on building =
real systems using Mirage, as well as working on distributed =
infrastructure to coordinate many Xen instances.

So Thomas and I have been hacking on Mirari, which takes a single =
configuration file and splits the lifecycle of a Mirage application into =
three distinct segments:

* configuration: it scans the config file, checks for any missing OPAM =
packages, and installs them if missing.  It also looks for any =
filesystem directives and calls mir-crunch to generate the static ML =
files.  All of this is glued together into an autogenerated main.ml =
which is the entry point for the application.

* build: it runs the OCaml build (via Vincent's obuild), and then issues =
any backend-specific commands (such as the Xen link, ocamlclean, or =
whatever else we dream up).

* run: this is yet to be implemented, and the reason for this mail.  =
Running a Mirage application is quite stateful: in the case of Xen, we =
want to monitor the kernel, attach a console, and so on.  Similarly for =
UNIX, one can imagine the socket version opening up a control channel =
for Mirari to listen on.  An in the kFreeBSD backend, this would be done =
via ioctls or other kernel/user interfaces.

So I'm going to extend Mirari to add `run` support which is stateful.  =
Each run will give the application a unique ID, stored locally, and =
enough information to poll the particular instance.  Every deployment =
has a different way to track it (Amazon EC2 vs XM vs Xenopsd are all =
completely different).

In the longer term, the configuration file format will almost certainly =
become a DSL to help control the policy a bit better.  We'll design that =
after we get more experience with building applications like this =
though.  I'm sure Raphael will chime in with "NO FRP!" at this point :-)

Thoughts welcome.  You'll need vincenthz/obuild and mirage/mirari =
installed, and the latest mirage/mirage-www works with it.  The website =
is *so* much simpler now without all the OASIS and shell script bits, so =
thank you to Thomas and Vincent for your respective tools!

https://github.com/mirage/mirage-www/tree/master/src
(www.conf for an example file)

-anil=


From anil@recoil.org Sun Feb 10 19:07:30 2013
Received: from ppsw-43.csi.cam.ac.uk ([131.111.8.143])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4cFO-0005zg-Iv (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 10 Feb 2013 19:07:30 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1444342
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:36021
	helo=dark.recoil.org)
	by ppsw-43.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1U4cFO-0002h4-mZ (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 10 Feb 2013 19:07:30 +0000
Received: (qmail 12076 invoked by uid 634); 10 Feb 2013 19:07:29 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.84]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Sun, 10 Feb 2013 19:07:29 +0000
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: opam-repo-dev now less useful
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG_esB0Td-xy2G6-fV5=ucXTf4CNL3ug8giksKXJi4wJ0eL4OA@mail.gmail.com>
Date: Sun, 10 Feb 2013 19:07:31 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <36A253F3-62B2-4498-9328-CE343A2CF734@recoil.org>
References: <33691BD5-4B34-4F54-B93F-B357F8577326@recoil.org>
	<CAG_esB0Td-xy2G6-fV5=ucXTf4CNL3ug8giksKXJi4wJ0eL4OA@mail.gmail.com>
To: David Scott <scott.dj@gmail.com>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: cl-mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 10 Feb 2013 19:07:30 -0000
Content-Length: 829
Lines: 20

On 10 Feb 2013, at 18:39, David Scott <scott.dj@gmail.com> wrote:
>=20
> It's a fair observation that we're using the opam-repo-dev as a =
shortcut to avoid thinking about releases. This would indeed explain why =
things work just fine for us with all the dev repos, but not for casual =
users who opt for the stable, non-dev repos. If the 'opam pin git://' =
works then I say: remove the mirage/opam-repo-dev remote and let's all =
use the stable versions and make sure they're rock solid.

Great; I'll start removing stuff, and once Mirari has a released =
version, I can update the website instructions.

> The xen-org/opam-repo-dev contains a bit of a backlog of unreleased =
stuff. I need to tidy up xenopsd (the lowest piece) and cut a release as =
soon as possible.

Good plan; my laptop is waiting for xenopsd too!

-a=


From Richard.Mortier@nottingham.ac.uk Sun Feb 10 19:50:11 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4cuh-0006X7-Lu (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Sun, 10 Feb 2013 19:50:11 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1444342 
	* 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from engine05-20433-5.icritical.com ([93.95.15.171]:57331)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with smtp id 1U4cug-0003cZ-ZJ (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Sun, 10 Feb 2013 19:50:11 +0000
Received: (qmail 25516 invoked from network); 10 Feb 2013 19:48:09 -0000
Received: from localhost (127.0.0.1)
	by engine05-20433-5.icritical.com with SMTP; 10 Feb 2013 19:48:09 -0000
Received: from engine05-20433-5.icritical.com ([127.0.0.1])
	by localhost (engine05-20433-5.icritical.com [127.0.0.1]) (amavisd-new,
	port 10024) with SMTP id 23812-06 for <cl-mirage@lists.cam.ac.uk>;
	Sun, 10 Feb 2013 19:48:05 +0000 (GMT)
Received: (qmail 25499 invoked by uid 599); 10 Feb 2013 19:48:05 -0000
Received: from unknown (HELO smtp4.nottingham.ac.uk) (128.243.220.65)
	by engine05-20433-5.icritical.com (qpsmtpd/0.28) with ESMTP;
	Sun, 10 Feb 2013 19:48:05 +0000
Received: from uiwexhub02.ad.nottingham.ac.uk ([128.243.15.132])
	by smtp4.nottingham.ac.uk with esmtps (TLSv1:AES128-SHA:128)
	(Exim 4.77) (envelope-from <Richard.Mortier@nottingham.ac.uk>)
	id 1U4csk-00089Y-Au
	for cl-mirage@lists.cam.ac.uk; Sun, 10 Feb 2013 19:48:10 +0000
From: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Date: Sun, 10 Feb 2013 19:48:09 +0000
Subject: Re: Mirari, the tool you've all been waiting for!
Thread-Topic: Mirari, the tool you've all been waiting for!
Thread-Index: Ac4Hx42HN4XlE9lzSL6LojozUR40yg==
Message-ID: <68B13FB5-6DB1-45E7-B658-849CFDBB8E27@nottingham.ac.uk>
References: <6FCC1F64-C0C5-46F0-AA1A-2BBA9FA5A678@recoil.org>
In-Reply-To: <6FCC1F64-C0C5-46F0-AA1A-2BBA9FA5A678@recoil.org>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, en-GB
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Virus-Scanned: by iCritical at engine05-20433-5.icritical.com
Cc: Vincent Hanquez <tab@snarc.org>, cl-mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 10 Feb 2013 19:50:11 -0000
Content-Length: 3580
Lines: 72


On 10 Feb 2013, at 19:06, Anil Madhavapeddy wrote:

> ...
> So Thomas and I have been hacking on Mirari, which takes a single configu=
ration file and splits the lifecycle of a Mirage application into three dis=
tinct segments:

cool! about to start trying it as i type :)

> * configuration: it scans the config file, checks for any missing OPAM pa=
ckages, and installs them if missing.  It also looks for any filesystem dir=
ectives and calls mir-crunch to generate the static ML files.  All of this =
is glued together into an autogenerated main.ml which is the entry point fo=
r the application.
>=20
> * build: it runs the OCaml build (via Vincent's obuild), and then issues =
any backend-specific commands (such as the Xen link, ocamlclean, or whateve=
r else we dream up).
>=20
> * run: this is yet to be implemented, and the reason for this mail.  Runn=
ing a Mirage application is quite stateful: in the case of Xen, we want to =
monitor the kernel, attach a console, and so on.  Similarly for UNIX, one c=
an imagine the socket version opening up a control channel for Mirari to li=
sten on.  An in the kFreeBSD backend, this would be done via ioctls or othe=
r kernel/user interfaces.

one very quick request - don't wait to get it documented and released. i th=
ink it will still be *significantly* useful in terms of helping build commu=
nity (excuse the pun) and getting others engaged before "mirari run" works.=
 arguably for asplos the main things that need to work are understanding ho=
w to configure, build and run unix and xen targets (bonus marks for "unix s=
ocket" vs "unix mirage" or whatever we call them now) -- and it's the under=
standing and building bits that require a lot of state and runes at the mom=
ent. once i've got foo.xen or foo.native, i can run it without too much tro=
uble.

> So I'm going to extend Mirari to add `run` support which is stateful.  Ea=
ch run will give the application a unique ID, stored locally, and enough in=
formation to poll the particular instance.  Every deployment has a differen=
t way to track it (Amazon EC2 vs XM vs Xenopsd are all completely different=
).

this could presumably be extended to include the perf test/experimental har=
ness that the asplos paper was crying out for?

> In the longer term, the configuration file format will almost certainly b=
ecome a DSL to help control the policy a bit better.  We'll design that aft=
er we get more experience with building applications like this though.  I'm=
 sure Raphael will chime in with "NO FRP!" at this point :-)

and i'll chime in (without evidential basis :) and say "YES FRP" -- presuma=
bly mirari will itself be a library that could be built into a mirage contr=
ol vm to manage a system of mirages? =20

if not, how else are we going to enable skynet to build itself?

--=20
Cheers,

R.




This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


From anil@recoil.org Sun Feb 10 20:20:31 2013
Received: from ppsw-43.csi.cam.ac.uk ([131.111.8.143])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4dO3-0006qP-P5 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 10 Feb 2013 20:20:31 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1444342
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:31728
	helo=dark.recoil.org)
	by ppsw-43.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1U4dO2-0001cM-nj (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 10 Feb 2013 20:20:31 +0000
Received: (qmail 17715 invoked by uid 634); 10 Feb 2013 20:20:30 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.84]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Sun, 10 Feb 2013 20:20:29 +0000
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: Mirari, the tool you've all been waiting for!
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <68B13FB5-6DB1-45E7-B658-849CFDBB8E27@nottingham.ac.uk>
Date: Sun, 10 Feb 2013 20:20:28 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <60A96782-D789-4D29-81F0-4B04FB961F02@recoil.org>
References: <6FCC1F64-C0C5-46F0-AA1A-2BBA9FA5A678@recoil.org>
	<68B13FB5-6DB1-45E7-B658-849CFDBB8E27@nottingham.ac.uk>
To: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: Vincent Hanquez <tab@snarc.org>, cl-mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 10 Feb 2013 20:20:31 -0000
Content-Length: 2494
Lines: 50

On 10 Feb 2013, at 19:48, Richard Mortier =
<Richard.Mortier@nottingham.ac.uk> wrote:
>>=20
>> * run: this is yet to be implemented, and the reason for this mail.  =
Running a Mirage application is quite stateful: in the case of Xen, we =
want to monitor the kernel, attach a console, and so on.  Similarly for =
UNIX, one can imagine the socket version opening up a control channel =
for Mirari to listen on.  An in the kFreeBSD backend, this would be done =
via ioctls or other kernel/user interfaces.
>=20
> one very quick request - don't wait to get it documented and released. =
i think it will still be *significantly* useful in terms of helping =
build community (excuse the pun) and getting others engaged before =
"mirari run" works. arguably for asplos the main things that need to =
work are understanding how to configure, build and run unix and xen =
targets (bonus marks for "unix socket" vs "unix mirage" or whatever we =
call them now) -- and it's the understanding and building bits that =
require a lot of state and runes at the moment. once i've got foo.xen or =
foo.native, i can run it without too much trouble.

Yep; right now it builds Xen kernels with filesystem support, which =
leaves us where we were with OASIS, but with just a single configuration =
file required rather than all the rest.

Talking about the run target is really about post-ASPLOS work, which is =
all about coordinating and managing multiple unikernel instances (what =
could we call that... a 'multikernel' perhaps? Ahem).

>=20
>> So I'm going to extend Mirari to add `run` support which is stateful. =
 Each run will give the application a unique ID, stored locally, and =
enough information to poll the particular instance.  Every deployment =
has a different way to track it (Amazon EC2 vs XM vs Xenopsd are all =
completely different).
>=20
> this could presumably be extended to include the perf =
test/experimental harness that the asplos paper was crying out for?

Test and experimental harnesses are basically just build variants, since =
they encode a policy of how the libraries should be glued together (with =
traffic generators and so on).  I think we can get very far with just =
loopback traffic generation (that is, functions calling functions rather =
than any wire traffic).

Balraj did one of these in mirage-skeleton/tcp, which is a Mirage kernel =
that spins up TCP iperf across a local bridge.  Perfect for testing TCP =
performance with no external dependencies.

-anil=


From noreply-gtalk@google.com Mon Feb 11 04:25:10 2013
Received: from ppsw-41.csi.cam.ac.uk ([131.111.8.141])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4kx4-0005P3-UR (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk (return-path <noreply-gtalk@google.com>);
	Mon, 11 Feb 2013 04:25:10 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.7 from SpamAssassin-3.3.2-1444510 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.220.197 listed in list.dnswl.dnsbl.ja.net]
	* -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-vc0-f197.google.com ([209.85.220.197]:50809)
	by ppsw-41.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with esmtp id 1U4kx3-0001b9-SU (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk (return-path <noreply-gtalk@google.com>);
	Mon, 11 Feb 2013 04:25:10 +0000
Received: by mail-vc0-f197.google.com with SMTP id gb30so7439010vcb.0
	for <cl-mirage@lists.cam.ac.uk>; Sun, 10 Feb 2013 20:25:09 -0800 (PST)
X-Received: by 10.224.87.79 with SMTP id v15mr15138927qal.16.1360556708946;
	Sun, 10 Feb 2013 20:25:08 -0800 (PST)
From: Steve Jenson <stevej@fruitless.org>
Sender: noreply-gtalk@google.com
To: <cl-mirage@lists.cam.ac.uk>
Message-ID: <22773340.443375.1360556708946.chat@gmail.com>
Subject: Steve Jenson has invited you to use Google Talk
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_443374_31195976.1360556708946"
Date: Sun, 10 Feb 2013 20:25:08 -0800 (PST)
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 04:25:11 -0000
Content-Length: 2383
Lines: 45

------=_Part_443374_31195976.1360556708946
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit



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


Steve Jenson has invited you to sign up for Google Talk so you can talk to each other for free over your computers.

To sign-up, go to:
http://www.google.com/accounts/NewAccount?service=talk&sendvemail=true&skipvpage=true&reqemail=cl-mirage@lists.cam.ac.uk&continue=http://www.google.com/talk/service/handleinvite?p%3DUiz8lj4BAAA._vRVQXs-EKOdwlc9NBCErzIo0w37tY3f1rpVUCrXcreUnBOXtKaWUdjw-zRzw7FnmBnmzSgg1uakjNTXKd-V5A.S0Yk8rBCCsB0fN8g11907w&followup=http://www.google.com/talk/service/HandleEmailVerified?ee%3DUiz8lj4BAAA.cU7otfOoEc9Jkx9p6eCBzOsVwhibL6sIc-a3sHBigWo.Eq9e6rOHc1gtylqnGbnMWg%26p%3DUiz8lj4BAAA._vRVQXs-EKOdwlc9NBCErzIo0w37tY3f1rpVUCrXcreUnBOXtKaWUdjw-zRzw7FnmBnmzSgg1uakjNTXKd-V5A.S0Yk8rBCCsB0fN8g11907w

Google Talk is a downloadable Windows* application that offers:
- Free calls over your computer anytime, from anywhere, and for as long as you want
- A simple and intuitive user interface for sending instant messages or making calls--no clutter, pop-ups or ads
- Superior voice quality through just a microphone and computer speaker
- Fast file transfers with no restrictions on file type

After signing-up, download Google Talk and sign in with your new Google Account username and password.
You can then begin inviting anyone you want to talk to for free.

Google Talk works with any computer speaker and microphone, such as the ones built-in to many PC laptops today,
as well as with wired and wireless headsets and USB phones. Google Talk also works across all firewalls.

Google Talk is still in beta. Just like with Gmail, we're working hard to add features and make improvements,
so we might also ask for your comments and suggestions periodically. We appreciate your help in making it even better!

Thanks,

The Google Talk Team

To learn more about Google Talk before signing up, visit:

http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser).

* Not a Windows user? No problem. You can also connect to the Google Talk service from any platform using third-party clients
(http://www.google.com/talk/otherclients.html).

  
------=_Part_443374_31195976.1360556708946--


From stevej@fruitless.org Mon Feb 11 04:28:42 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4l0U-0005RM-ML (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <stevej@fruitless.org>); Mon, 11 Feb 2013 04:28:42 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.7 from SpamAssassin-3.3.2-1444510 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.223.170 listed in list.dnswl.dnsbl.ja.net]
	*  0.0 HTML_MESSAGE BODY: HTML included in message
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-ie0-f170.google.com ([209.85.223.170]:43500)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1U4l0T-00010h-XB (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <stevej@fruitless.org>); Mon, 11 Feb 2013 04:28:42 +0000
Received: by mail-ie0-f170.google.com with SMTP id c11so7356766ieb.29
	for <cl-mirage@lists.cam.ac.uk>; Sun, 10 Feb 2013 20:28:40 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=x-received:mime-version:x-originating-ip:from:date:message-id
	:subject:to:content-type:x-gm-message-state;
	bh=C7TvOMOF+xlXUPMTIoMXfSyDPgT+SaboBvNq1W90pck=;
	b=DQektX33E4ZwXuKUPbANr20BsP3Z+BCCIeS6pPMH9UZeKx4RF/iab05c4cRTKTzdlz
	N0TvSLavy2R92Mco0hKS/Eogs9Do3bB//pLciu3JpxH5Ynxqaf/jnmifXCoXXniIZW2K
	KECDuJIvg43qThyRuU6aD/HPypCibtFqVQ3ztEfbNjkCQcdxmpk9vuacuNhzVYw2RxT7
	sBjp1cUiTCq/qj5fgaf1dnIS7YcmkJZX+go6MjOpCUPkl1Y72TL1TRTUiJzbCyeAJcPy
	k9VkP2ib+tcm9YADMaAIXyHkI4bxfORgltLvgFe0HrYBYj9dep9DEgHzj/drwP6iKxGO
	Mj3g==
X-Received: by 10.50.179.33 with SMTP id dd1mr10811619igc.31.1360556920132;
	Sun, 10 Feb 2013 20:28:40 -0800 (PST)
MIME-Version: 1.0
Received: by 10.50.114.196 with HTTP; Sun, 10 Feb 2013 20:28:20 -0800 (PST)
X-Originating-IP: [24.23.130.150]
From: Steve Jenson <stevej@fruitless.org>
Date: Sun, 10 Feb 2013 20:28:20 -0800
Message-ID: <CABiHZ_VKDnf9awgzQHSD0mQEpxasH9WwLLXMKy+pXx6DxJoqyA@mail.gmail.com>
Subject: Trouble installing mirage from OPAM
To: cl-mirage@lists.cam.ac.uk
Content-Type: multipart/alternative; boundary=f46d0447a10febd4cb04d56b5740
X-Gm-Message-State: ALoCoQlofcp55iM7/kF9H3CFPvr1EEE2WSa5B6DbuD5SPf5RBY+XACwhF79MBYaptgdRm8Ia3AhO
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 04:28:42 -0000
Content-Length: 9697
Lines: 224

--f46d0447a10febd4cb04d56b5740
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi gang,

I'm trying to get back into mirage hacking after a year or so away from it
and I can't remember how to setup a fresh environment on a new laptop. This
is on OS X 10.8 with homebrew installed opam (0.9.2).

Unfortunately, trying to install mirage from OPAM results in a build
failure for optcomp. This same problem occurs with either the dev repo or
the new opam-repository that anil sent out today.

Thanks!
@stevej

$ opam install mirage
The following actions will be performed:
 - install optcomp.1.4 [required by mirage]
 - install ocplib-endian.0.3 [required by mirage]
 - install cstruct.0.6.2 [required by mirage]
 - install xenstore.1.2.0 [required by mirage]
 - install mirage.0.6.1
5 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
Do you want to continue ? [Y/n] y

=3D-=3D-=3D optcomp.1.4 =3D-=3D-=3D
Downloading
https://forge.ocamlcore.org/frs/download.php/1011/optcomp-1.4.tar.gz.
Creating /Users/stevej/.opam/repo/dev/archives/optcomp.1.4+opam.tar.gz.
Extracting /Users/stevej/.opam/archives/optcomp.1.4+opam.tar.gz.
Building optcomp.1.4:
  ./configure --prefix /Users/stevej/.opam/3.12.1+mirage-unix-direct
  make
  make install
The compilation of optcomp.1.4 failed.
Uninstalling optcomp.1.4:
  ocamlfind remove optcomp
  rm /Users/stevej/.opam/3.12.1+mirage-unix-direct/bin/optcomp-o
  rm /Users/stevej/.opam/3.12.1+mirage-unix-direct/bin/optcomp-r

Due to some errors while processing optcomp.1.4, the following actions will
NOT be proceeded:
 - install cstruct.0.6.2
 - install mirage.0.6.1
 - install ocplib-endian.0.3
 - install xenstore.1.2.0

=3D=3D=3D=3D ERROR [while installing optcomp.1.4] =3D=3D=3D=3D
# command         make
# path
 /Users/stevej/.opam/3.12.1+mirage-unix-direct/build/optcomp.1.4
# exit-code       2
# env-file
 /Users/stevej/.opam/3.12.1+mirage-unix-direct/build/optcomp.1.4/optcomp-2d=
ea01.env
# stdout-file
/Users/stevej/.opam/3.12.1+mirage-unix-direct/build/optcomp.1.4/optcomp-2de=
a01.out
# stderr-file
/Users/stevej/.opam/3.12.1+mirage-unix-direct/build/optcomp.1.4/optcomp-2de=
a01.err
### stdout ###
...[truncated]
ocamlfind ocamlc -c -g -I src -package camlp4 -package camlp4.lib -package
camlp4.quotations.o -I src -o src/optcomp.cmo src/optcomp.ml
ocamlfind ocamlc -c -I +camlp4 -I +camlp4/Camlp4Parsers -I
+camlp4/Camlp4Printers -I +camlp4/Camlp4Filters -g -I src -package camlp4
-package camlp4.lib -package camlp4.quotations.o -I src -o
src/optcomp_o.cmo src/optcomp_o.ml
ocamlfind ocamlopt -c -g -I src -package camlp4 -package camlp4.lib
-package camlp4.quotations.o -I src -o src/optcomp.cmx src/optcomp.ml
ocamlfind ocamlopt -c -I +camlp4 -I +camlp4/Camlp4Parsers -I
+camlp4/Camlp4Printers -I +camlp4/Camlp4Filters -g -I src -package camlp4
-package camlp4.lib -package camlp4.quotations.o -I src -o
src/optcomp_o.cmx src/optcomp_o.ml
ocamlfind ocamlopt -I +camlp4 camlp4fulllib.cmxa -g -linkpkg -package
camlp4 -package camlp4.lib -package camlp4.quotations.o src/optcomp.cmxa
src/optcomp.cmx src/optcomp_o.cmx -o src/optcomp_o.native
+ ocamlfind ocamlopt -I +camlp4 camlp4fulllib.cmxa -g -linkpkg -package
camlp4 -package camlp4.lib -package camlp4.quotations.o src/optcomp.cmxa
src/optcomp.cmx src/optcomp_o.cmx -o src/optcomp_o.native
File "_none_", line 1, characters 0-1:
Error: No implementations provided for the following modules:
         Dynlink referenced from
/Users/stevej/.opam/3.12.1+mirage-unix-direct/lib/ocaml/camlp4/camlp4fullli=
b.cmxa(Camlp4)
Command exited with code 2.
### stderr ###
E: Failure("Command
''/Users/stevej/.opam/3.12.1+mirage-unix-direct/bin/ocamlbuild'
src/optcomp.cma src/optcomp.cmxa src/optcomp.a src/optcomp_o.native
src/optcomp_r.native -tag debug' terminated with error code 10")
make: *** [build] Error 1

'opam install mirage' failed.
=CE=BB ~
 $ ocamlc -v
The Objective Caml compiler, version 3.12.1
Standard library directory:
/Users/stevej/.opam/3.12.1+mirage-unix-direct/lib/ocaml
=CE=BB ~
 $

--f46d0447a10febd4cb04d56b5740
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi gang,<div><br></div><div>I&#39;m trying to get back int=
o mirage hacking after a year or so away from it and I can&#39;t remember h=
ow to setup a fresh environment on a new laptop. This is on OS X 10.8 with =
homebrew installed opam (0.9.2).<br>


</div><div><br></div><div><div>Unfortunately, trying to install mirage from=
 OPAM results in a build failure for optcomp. This same problem occurs with=
 either the dev repo or the new opam-repository that anil sent out today.</=
div>


<div><br></div><div>Thanks!</div><div style>@stevej</div></div><div><br></d=
iv><div><div>$ opam install mirage</div><div>The following actions will be =
performed:</div><div>=C2=A0- install optcomp.1.4 [required by mirage]</div>


<div>=C2=A0- install ocplib-endian.0.3 [required by mirage]</div><div>=C2=
=A0- install cstruct.0.6.2 [required by mirage]</div><div>=C2=A0- install x=
enstore.1.2.0 [required by mirage]</div><div>=C2=A0- install mirage.0.6.1</=
div><div>5 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 =
to remove</div>


<div>Do you want to continue ? [Y/n] y</div><div><br></div><div>=3D-=3D-=3D=
 optcomp.1.4 =3D-=3D-=3D</div><div>Downloading <a href=3D"https://forge.oca=
mlcore.org/frs/download.php/1011/optcomp-1.4.tar.gz" target=3D"_blank">http=
s://forge.ocamlcore.org/frs/download.php/1011/optcomp-1.4.tar.gz</a>.</div>


<div>Creating /Users/stevej/.opam/repo/dev/archives/optcomp.1.4+opam.tar.gz=
.</div><div>Extracting /Users/stevej/.opam/archives/optcomp.1.4+opam.tar.gz=
.</div><div>Building optcomp.1.4:</div><div>=C2=A0 ./configure --prefix /Us=
ers/stevej/.opam/3.12.1+mirage-unix-direct</div>


<div>=C2=A0 make</div><div>=C2=A0 make install</div><div>The compilation of=
 optcomp.1.4 failed.</div><div>Uninstalling optcomp.1.4:</div><div>=C2=A0 o=
camlfind remove optcomp</div><div>=C2=A0 rm /Users/stevej/.opam/3.12.1+mira=
ge-unix-direct/bin/optcomp-o</div>


<div>=C2=A0 rm /Users/stevej/.opam/3.12.1+mirage-unix-direct/bin/optcomp-r<=
/div><div><br></div><div>Due to some errors while processing optcomp.1.4, t=
he following actions will NOT be proceeded:</div><div>=C2=A0- install cstru=
ct.0.6.2</div>


<div>=C2=A0- install mirage.0.6.1</div><div>=C2=A0- install ocplib-endian.0=
.3</div><div>=C2=A0- install xenstore.1.2.0</div><div><br></div><div>=3D=3D=
=3D=3D ERROR [while installing optcomp.1.4] =3D=3D=3D=3D</div><div># comman=
d =C2=A0 =C2=A0 =C2=A0 =C2=A0 make</div><div># path =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0/Users/stevej/.opam/3.12.1+mirage-unix-direct/build/opt=
comp.1.4</div>


<div># exit-code =C2=A0 =C2=A0 =C2=A0 2</div><div># env-file =C2=A0 =C2=A0 =
=C2=A0 =C2=A0/Users/stevej/.opam/3.12.1+mirage-unix-direct/build/optcomp.1.=
4/optcomp-2dea01.env</div><div># stdout-file =C2=A0 =C2=A0 /Users/stevej/.o=
pam/3.12.1+mirage-unix-direct/build/optcomp.1.4/optcomp-2dea01.out</div>


<div># stderr-file =C2=A0 =C2=A0 /Users/stevej/.opam/3.12.1+mirage-unix-dir=
ect/build/optcomp.1.4/optcomp-2dea01.err</div><div>### stdout ###</div><div=
>...[truncated]</div><div>ocamlfind ocamlc -c -g -I src -package camlp4 -pa=
ckage camlp4.lib -package camlp4.quotations.o -I src -o src/optcomp.cmo src=
/<a href=3D"http://optcomp.ml" target=3D"_blank">optcomp.ml</a></div>


<div>ocamlfind ocamlc -c -I +camlp4 -I +camlp4/Camlp4Parsers -I +camlp4/Cam=
lp4Printers -I +camlp4/Camlp4Filters -g -I src -package camlp4 -package cam=
lp4.lib -package camlp4.quotations.o -I src -o src/optcomp_o.cmo src/<a hre=
f=3D"http://optcomp_o.ml" target=3D"_blank">optcomp_o.ml</a></div>


<div>ocamlfind ocamlopt -c -g -I src -package camlp4 -package camlp4.lib -p=
ackage camlp4.quotations.o -I src -o src/optcomp.cmx src/<a href=3D"http://=
optcomp.ml" target=3D"_blank">optcomp.ml</a></div><div>ocamlfind ocamlopt -=
c -I +camlp4 -I +camlp4/Camlp4Parsers -I +camlp4/Camlp4Printers -I +camlp4/=
Camlp4Filters -g -I src -package camlp4 -package camlp4.lib -package camlp4=
.quotations.o -I src -o src/optcomp_o.cmx src/<a href=3D"http://optcomp_o.m=
l" target=3D"_blank">optcomp_o.ml</a></div>


<div>ocamlfind ocamlopt -I +camlp4 camlp4fulllib.cmxa -g -linkpkg -package =
camlp4 -package camlp4.lib -package camlp4.quotations.o src/optcomp.cmxa sr=
c/optcomp.cmx src/optcomp_o.cmx -o src/optcomp_o.native</div><div>+ ocamlfi=
nd ocamlopt -I +camlp4 camlp4fulllib.cmxa -g -linkpkg -package camlp4 -pack=
age camlp4.lib -package camlp4.quotations.o src/optcomp.cmxa src/optcomp.cm=
x src/optcomp_o.cmx -o src/optcomp_o.native</div>


<div>File &quot;_none_&quot;, line 1, characters 0-1:</div><div>Error: No i=
mplementations provided for the following modules:</div><div>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0Dynlink referenced from /Users/stevej/.opam/3.12.1+mira=
ge-unix-direct/lib/ocaml/camlp4/camlp4fulllib.cmxa(Camlp4)</div>


<div>Command exited with code 2.</div><div>### stderr ###</div><div>E: Fail=
ure(&quot;Command &#39;&#39;/Users/stevej/.opam/3.12.1+mirage-unix-direct/b=
in/ocamlbuild&#39; src/optcomp.cma src/optcomp.cmxa src/optcomp.a src/optco=
mp_o.native src/optcomp_r.native -tag debug&#39; terminated with error code=
 10&quot;)</div>


<div>make: *** [build] Error 1</div><div><br></div><div>&#39;opam install m=
irage&#39; failed.</div><div>=CE=BB ~</div><div>=C2=A0$ ocamlc -v</div><div=
>The Objective Caml compiler, version 3.12.1</div><div>Standard library dir=
ectory: /Users/stevej/.opam/3.12.1+mirage-unix-direct/lib/ocaml</div>


<div>=CE=BB ~</div><div>=C2=A0$=C2=A0</div></div></div>

--f46d0447a10febd4cb04d56b5740--


From stevej@fruitless.org Mon Feb 11 04:29:27 2013
Received: from ppsw-41.csi.cam.ac.uk ([131.111.8.141])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4l1D-0005Ri-Gl (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <stevej@fruitless.org>); Mon, 11 Feb 2013 04:29:27 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamScore: s
X-Cam-SpamDetails: score 1.8 from SpamAssassin-3.3.2-1444510 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.210.178 listed in list.dnswl.dnsbl.ja.net]
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  2.5 URI_DBL_SUBDOM URI_DBL_SUBDOM
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-ia0-f178.google.com ([209.85.210.178]:44849)
	by ppsw-41.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with esmtp id 1U4l1C-00022M-RF (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <stevej@fruitless.org>); Mon, 11 Feb 2013 04:29:27 +0000
Received: by mail-ia0-f178.google.com with SMTP id y26so6199894iab.9
	for <cl-mirage@lists.cam.ac.uk>; Sun, 10 Feb 2013 20:29:25 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=x-received:mime-version:x-originating-ip:in-reply-to:references
	:from:date:message-id:subject:to:content-type:x-gm-message-state;
	bh=N6XVHp796Hl6TgofdOhQTMTjeuXH0AhCaqGe1xnEa8c=;
	b=L3Zk4EoKq8Ke1lFSaE02GT64LP5haErdiwxBb9c+ReUCoOI14BI+8bdibP8q3ogWIa
	CQxQmjEEA/olXxkdM0YGeFkWIOO08gEDqCDCdDUGCvU278NSzzBMkY3ikmacRIB3jDwT
	BSHOLXPBoQIVIBno0ztvA9BonuH4z3KAFWJy8DxyZJ4XiDxQXbXeJtcgmNk4GOvLlup1
	tHbzyTBWx9twrmAUuwXgBpIQOG68V12+mT2FUPy5XAGzyWX/B3LyPtfRMcBtbxSZ3KYB
	tE7NtKZa2Lgf2vfGboQKyJ4X8lUkWrVkSD2rprZsxPaVFhxkNtRqQ9j32KFrTxIRjR3x
	OA+A==
X-Received: by 10.50.179.33 with SMTP id dd1mr10812509igc.31.1360556965551;
	Sun, 10 Feb 2013 20:29:25 -0800 (PST)
MIME-Version: 1.0
Received: by 10.50.114.196 with HTTP; Sun, 10 Feb 2013 20:29:05 -0800 (PST)
X-Originating-IP: [24.23.130.150]
In-Reply-To: <22773340.443375.1360556708946.chat@gmail.com>
References: <22773340.443375.1360556708946.chat@gmail.com>
From: Steve Jenson <stevej@fruitless.org>
Date: Sun, 10 Feb 2013 20:29:05 -0800
Message-ID: <CABiHZ_X09z6EVwTMCB=9uY253ErdTMAaF3eVi0A4RVOOq4G5fA@mail.gmail.com>
Subject: Re: Steve Jenson has invited you to use Google Talk
To: cl-mirage@lists.cam.ac.uk
Content-Type: multipart/alternative; boundary=f46d0447a10fa0dca404d56b5ad1
X-Gm-Message-State: ALoCoQmvZa7DhJO/8EnVxow7ieUqws0sdunvkxD7XmX+VuckMMMvhFBYs8CGMqHiCMmkgo53IJlP
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 04:29:27 -0000
Content-Length: 6539
Lines: 154

--f46d0447a10fa0dca404d56b5ad1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

please disregard. I'd love to chat with any of you, although maybe not all
at once. :-(


On Sun, Feb 10, 2013 at 8:25 PM, Steve Jenson <stevej@fruitless.org> wrote:

>
>
> ------------------------------------------------------------------------
>
>
> Steve Jenson has invited you to sign up for Google Talk so you can talk t=
o
> each other for free over your computers.
>
> To sign-up, go to:
>
> http://www.google.com/accounts/NewAccount?service=3Dtalk&sendvemail=3Dtru=
e&skipvpage=3Dtrue&reqemail=3Dcl-mirage@lists.cam.ac.uk&continue=3Dhttp://w=
ww.google.com/talk/service/handleinvite?p%3DUiz8lj4BAAA._vRVQXs-EKOdwlc9NBC=
ErzIo0w37tY3f1rpVUCrXcreUnBOXtKaWUdjw-zRzw7FnmBnmzSgg1uakjNTXKd-V5A.S0Yk8rB=
CCsB0fN8g11907w&followup=3Dhttp://www.google.com/talk/service/HandleEmailVe=
rified?ee%3DUiz8lj4BAAA.cU7otfOoEc9Jkx9p6eCBzOsVwhibL6sIc-a3sHBigWo.Eq9e6rO=
Hc1gtylqnGbnMWg%26p%3DUiz8lj4BAAA._vRVQXs-EKOdwlc9NBCErzIo0w37tY3f1rpVUCrXc=
reUnBOXtKaWUdjw-zRzw7FnmBnmzSgg1uakjNTXKd-V5A.S0Yk8rBCCsB0fN8g11907w
>
> Google Talk is a downloadable Windows* application that offers:
> - Free calls over your computer anytime, from anywhere, and for as long a=
s
> you want
> - A simple and intuitive user interface for sending instant messages or
> making calls--no clutter, pop-ups or ads
> - Superior voice quality through just a microphone and computer speaker
> - Fast file transfers with no restrictions on file type
>
> After signing-up, download Google Talk and sign in with your new Google
> Account username and password.
> You can then begin inviting anyone you want to talk to for free.
>
> Google Talk works with any computer speaker and microphone, such as the
> ones built-in to many PC laptops today,
> as well as with wired and wireless headsets and USB phones. Google Talk
> also works across all firewalls.
>
> Google Talk is still in beta. Just like with Gmail, we're working hard to
> add features and make improvements,
> so we might also ask for your comments and suggestions periodically. We
> appreciate your help in making it even better!
>
> Thanks,
>
> The Google Talk Team
>
> To learn more about Google Talk before signing up, visit:
>
> http://www.google.com/talk/about.html
>
> (If clicking the URLs in this message does not work, copy and paste them
> into the address bar of your browser).
>
> * Not a Windows user? No problem. You can also connect to the Google Talk
> service from any platform using third-party clients
> (http://www.google.com/talk/otherclients.html).
>
>

--f46d0447a10fa0dca404d56b5ad1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">please disregard. I&#39;d love to chat with any of you, al=
though maybe not all at once. :-(</div><div class=3D"gmail_extra"><br><br><=
div class=3D"gmail_quote">On Sun, Feb 10, 2013 at 8:25 PM, Steve Jenson <sp=
an dir=3D"ltr">&lt;<a href=3D"mailto:stevej@fruitless.org" target=3D"_blank=
">stevej@fruitless.org</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><br>
<br>
------------------------------------------------------------------------<br=
>
<br>
<br>
Steve Jenson has invited you to sign up for Google Talk so you can talk to =
each other for free over your computers.<br>
<br>
To sign-up, go to:<br>
<a href=3D"http://www.google.com/accounts/NewAccount?service=3Dtalk&amp;sen=
dvemail=3Dtrue&amp;skipvpage=3Dtrue&amp;reqemail=3Dcl-mirage@lists.cam.ac.u=
k&amp;continue=3Dhttp://www.google.com/talk/service/handleinvite?p%3DUiz8lj=
4BAAA._vRVQXs-EKOdwlc9NBCErzIo0w37tY3f1rpVUCrXcreUnBOXtKaWUdjw-zRzw7FnmBnmz=
Sgg1uakjNTXKd-V5A.S0Yk8rBCCsB0fN8g11907w&amp;followup=3Dhttp://www.google.c=
om/talk/service/HandleEmailVerified?ee%3DUiz8lj4BAAA.cU7otfOoEc9Jkx9p6eCBzO=
sVwhibL6sIc-a3sHBigWo.Eq9e6rOHc1gtylqnGbnMWg%26p%3DUiz8lj4BAAA._vRVQXs-EKOd=
wlc9NBCErzIo0w37tY3f1rpVUCrXcreUnBOXtKaWUdjw-zRzw7FnmBnmzSgg1uakjNTXKd-V5A.=
S0Yk8rBCCsB0fN8g11907w" target=3D"_blank">http://www.google.com/accounts/Ne=
wAccount?service=3Dtalk&amp;sendvemail=3Dtrue&amp;skipvpage=3Dtrue&amp;reqe=
mail=3Dcl-mirage@lists.cam.ac.uk&amp;continue=3Dhttp://www.google.com/talk/=
service/handleinvite?p%3DUiz8lj4BAAA._vRVQXs-EKOdwlc9NBCErzIo0w37tY3f1rpVUC=
rXcreUnBOXtKaWUdjw-zRzw7FnmBnmzSgg1uakjNTXKd-V5A.S0Yk8rBCCsB0fN8g11907w&amp=
;followup=3Dhttp://www.google.com/talk/service/HandleEmailVerified?ee%3DUiz=
8lj4BAAA.cU7otfOoEc9Jkx9p6eCBzOsVwhibL6sIc-a3sHBigWo.Eq9e6rOHc1gtylqnGbnMWg=
%26p%3DUiz8lj4BAAA._vRVQXs-EKOdwlc9NBCErzIo0w37tY3f1rpVUCrXcreUnBOXtKaWUdjw=
-zRzw7FnmBnmzSgg1uakjNTXKd-V5A.S0Yk8rBCCsB0fN8g11907w</a><br>


<br>
Google Talk is a downloadable Windows* application that offers:<br>
- Free calls over your computer anytime, from anywhere, and for as long as =
you want<br>
- A simple and intuitive user interface for sending instant messages or mak=
ing calls--no clutter, pop-ups or ads<br>
- Superior voice quality through just a microphone and computer speaker<br>
- Fast file transfers with no restrictions on file type<br>
<br>
After signing-up, download Google Talk and sign in with your new Google Acc=
ount username and password.<br>
You can then begin inviting anyone you want to talk to for free.<br>
<br>
Google Talk works with any computer speaker and microphone, such as the one=
s built-in to many PC laptops today,<br>
as well as with wired and wireless headsets and USB phones. Google Talk als=
o works across all firewalls.<br>
<br>
Google Talk is still in beta. Just like with Gmail, we&#39;re working hard =
to add features and make improvements,<br>
so we might also ask for your comments and suggestions periodically. We app=
reciate your help in making it even better!<br>
<br>
Thanks,<br>
<br>
The Google Talk Team<br>
<br>
To learn more about Google Talk before signing up, visit:<br>
<br>
<a href=3D"http://www.google.com/talk/about.html" target=3D"_blank">http://=
www.google.com/talk/about.html</a><br>
<br>
(If clicking the URLs in this message does not work, copy and paste them in=
to the address bar of your browser).<br>
<br>
* Not a Windows user? No problem. You can also connect to the Google Talk s=
ervice from any platform using third-party clients<br>
(<a href=3D"http://www.google.com/talk/otherclients.html" target=3D"_blank"=
>http://www.google.com/talk/otherclients.html</a>).<br>
<br>
=A0 </blockquote></div><br></div>

--f46d0447a10fa0dca404d56b5ad1--


From thomas.gazagnaire@gmail.com Mon Feb 11 08:58:49 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4pDt-0002oT-JU (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <thomas.gazagnaire@gmail.com>);
	Mon, 11 Feb 2013 08:58:49 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.8 from SpamAssassin-3.3.2-1444510 
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (thomas.gazagnaire[at]gmail.com)
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [74.125.82.180 listed in list.dnswl.dnsbl.ja.net]
	* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	*      author's domain
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-we0-f180.google.com ([74.125.82.180]:53870)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1U4pDs-0007zJ-sN (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <thomas.gazagnaire@gmail.com>);
	Mon, 11 Feb 2013 08:58:49 +0000
Received: by mail-we0-f180.google.com with SMTP id k14so4512252wer.25
	for <cl-mirage@lists.cam.ac.uk>; Mon, 11 Feb 2013 00:58:48 -0800 (PST)
X-Received: by 10.194.76.137 with SMTP id k9mr22216114wjw.29.1360573128671;
	Mon, 11 Feb 2013 00:58:48 -0800 (PST)
Received: from [10.35.194.114] ([213.30.181.210])
	by mx.google.com with ESMTPS id s8sm29094550wif.9.2013.02.11.00.58.46
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Mon, 11 Feb 2013 00:58:47 -0800 (PST)
Subject: Re: Trouble installing mirage from OPAM
Mime-Version: 1.0 (Apple Message framework v1085)
Content-Type: text/plain; charset=utf-8
From: Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
In-Reply-To: <CABiHZ_VKDnf9awgzQHSD0mQEpxasH9WwLLXMKy+pXx6DxJoqyA@mail.gmail.com>
Date: Mon, 11 Feb 2013 09:58:47 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <1D8588A0-E18D-4A28-B89A-132E705065BF@gmail.com>
References: <CABiHZ_VKDnf9awgzQHSD0mQEpxasH9WwLLXMKy+pXx6DxJoqyA@mail.gmail.com>
To: Steve Jenson <stevej@fruitless.org>
X-Mailer: Apple Mail (2.1085)
Cc: cl-mirage@lists.cam.ac.uk
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 08:58:49 -0000
Content-Length: 3279
Lines: 85

Hi Steve,

>   ./configure --prefix /Users/stevej/.opam/3.12.1+mirage-unix-direct

The new "official" mirage compiler is now 4.01.0dev+mirage-unix, so you =
should run 'opam switch 4.01.0dev+mirage-unix'  before installing =
mirage. Regarding your error, native dynlink was broken with OCaml =
3.12.1 on OSX.

Best.
Thomas

>   make
>   make install
> The compilation of optcomp.1.4 failed.
> Uninstalling optcomp.1.4:
>   ocamlfind remove optcomp
>   rm /Users/stevej/.opam/3.12.1+mirage-unix-direct/bin/optcomp-o
>   rm /Users/stevej/.opam/3.12.1+mirage-unix-direct/bin/optcomp-r
>=20
> Due to some errors while processing optcomp.1.4, the following actions =
will NOT be proceeded:
>  - install cstruct.0.6.2
>  - install mirage.0.6.1
>  - install ocplib-endian.0.3
>  - install xenstore.1.2.0
>=20
> =3D=3D=3D=3D ERROR [while installing optcomp.1.4] =3D=3D=3D=3D
> # command         make
> # path            =
/Users/stevej/.opam/3.12.1+mirage-unix-direct/build/optcomp.1.4
> # exit-code       2
> # env-file        =
/Users/stevej/.opam/3.12.1+mirage-unix-direct/build/optcomp.1.4/optcomp-2d=
ea01.env
> # stdout-file     =
/Users/stevej/.opam/3.12.1+mirage-unix-direct/build/optcomp.1.4/optcomp-2d=
ea01.out
> # stderr-file     =
/Users/stevej/.opam/3.12.1+mirage-unix-direct/build/optcomp.1.4/optcomp-2d=
ea01.err
> ### stdout ###
> ...[truncated]
> ocamlfind ocamlc -c -g -I src -package camlp4 -package camlp4.lib =
-package camlp4.quotations.o -I src -o src/optcomp.cmo src/optcomp.ml
> ocamlfind ocamlc -c -I +camlp4 -I +camlp4/Camlp4Parsers -I =
+camlp4/Camlp4Printers -I +camlp4/Camlp4Filters -g -I src -package =
camlp4 -package camlp4.lib -package camlp4.quotations.o -I src -o =
src/optcomp_o.cmo src/optcomp_o.ml
> ocamlfind ocamlopt -c -g -I src -package camlp4 -package camlp4.lib =
-package camlp4.quotations.o -I src -o src/optcomp.cmx src/optcomp.ml
> ocamlfind ocamlopt -c -I +camlp4 -I +camlp4/Camlp4Parsers -I =
+camlp4/Camlp4Printers -I +camlp4/Camlp4Filters -g -I src -package =
camlp4 -package camlp4.lib -package camlp4.quotations.o -I src -o =
src/optcomp_o.cmx src/optcomp_o.ml
> ocamlfind ocamlopt -I +camlp4 camlp4fulllib.cmxa -g -linkpkg -package =
camlp4 -package camlp4.lib -package camlp4.quotations.o src/optcomp.cmxa =
src/optcomp.cmx src/optcomp_o.cmx -o src/optcomp_o.native
> + ocamlfind ocamlopt -I +camlp4 camlp4fulllib.cmxa -g -linkpkg =
-package camlp4 -package camlp4.lib -package camlp4.quotations.o =
src/optcomp.cmxa src/optcomp.cmx src/optcomp_o.cmx -o =
src/optcomp_o.native
> File "_none_", line 1, characters 0-1:
> Error: No implementations provided for the following modules:
>          Dynlink referenced from =
/Users/stevej/.opam/3.12.1+mirage-unix-direct/lib/ocaml/camlp4/camlp4fulll=
ib.cmxa(Camlp4)
> Command exited with code 2.
> ### stderr ###
> E: Failure("Command =
''/Users/stevej/.opam/3.12.1+mirage-unix-direct/bin/ocamlbuild' =
src/optcomp.cma src/optcomp.cmxa src/optcomp.a src/optcomp_o.native =
src/optcomp_r.native -tag debug' terminated with error code 10")
> make: *** [build] Error 1
>=20
> 'opam install mirage' failed.
> =CE=BB ~
>  $ ocamlc -v
> The Objective Caml compiler, version 3.12.1
> Standard library directory: =
/Users/stevej/.opam/3.12.1+mirage-unix-direct/lib/ocaml
> =CE=BB ~
>  $=20



From thomas.gazagnaire@gmail.com Mon Feb 11 09:34:02 2013
Received: from ppsw-43.csi.cam.ac.uk ([131.111.8.143])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4ply-0005jv-Oz (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <thomas.gazagnaire@gmail.com>);
	Mon, 11 Feb 2013 09:34:02 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.8 from SpamAssassin-3.3.2-1444510 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [74.125.82.49 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (thomas.gazagnaire[at]gmail.com)
	* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	*      author's domain
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-wg0-f49.google.com ([74.125.82.49]:42396)
	by ppsw-43.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1U4ply-0007Uv-nf (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <thomas.gazagnaire@gmail.com>);
	Mon, 11 Feb 2013 09:34:02 +0000
Received: by mail-wg0-f49.google.com with SMTP id 15so4678764wgd.16
	for <cl-mirage@lists.cam.ac.uk>; Mon, 11 Feb 2013 01:34:02 -0800 (PST)
X-Received: by 10.180.78.137 with SMTP id b9mr14536199wix.30.1360575242242;
	Mon, 11 Feb 2013 01:34:02 -0800 (PST)
Received: from [10.35.194.114] ([213.30.181.210])
	by mx.google.com with ESMTPS id cu7sm29281102wib.8.2013.02.11.01.34.00
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Mon, 11 Feb 2013 01:34:01 -0800 (PST)
Subject: Re: opam-repo-dev now less useful
Mime-Version: 1.0 (Apple Message framework v1085)
Content-Type: text/plain; charset=us-ascii
From: Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
In-Reply-To: <36A253F3-62B2-4498-9328-CE343A2CF734@recoil.org>
Date: Mon, 11 Feb 2013 10:33:59 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <B6A4501D-91F6-4987-A52E-838F9B41BB7F@gmail.com>
References: <33691BD5-4B34-4F54-B93F-B357F8577326@recoil.org>
	<CAG_esB0Td-xy2G6-fV5=ucXTf4CNL3ug8giksKXJi4wJ0eL4OA@mail.gmail.com>
	<36A253F3-62B2-4498-9328-CE343A2CF734@recoil.org>
To: Anil Madhavapeddy <anil@recoil.org>
X-Mailer: Apple Mail (2.1085)
Cc: cl-mirage List <cl-mirage@lists.cam.ac.uk>,
	David Scott <scott.dj@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 09:34:02 -0000
Content-Length: 1837
Lines: 45

Hi,

In a related area, something that I have in mind is to have a special =
"dev" version for each package, so that people can still 'opam pin =
mirage dev' if they want (instead of having to remember the git =
repository address). So, in the setting, the idea would be:
* let opam-repo-dev as is, but change the versions to "dev" and/or add =
"dev: true" in the OPAM files
* make dev version always lesser than normal versions, so that the =
solver will not pick them in normal usage
* use 'opam pin <pkg> dev' if one wants to pin a package to its dev =
version
* add an umbrella dev package, with hard-constraints on all the dev =
versions, so that 'opam install mirage-dev' will force install all the =
dev packages if one wants to have all the dev packages.

This will not necessary help to have more stable packages, but if you =
think it's worth doing this this can be done without too much trouble I =
think.

Thomas

On Feb 10, 2013, at 8:07 PM, Anil Madhavapeddy wrote:

> On 10 Feb 2013, at 18:39, David Scott <scott.dj@gmail.com> wrote:
>>=20
>> It's a fair observation that we're using the opam-repo-dev as a =
shortcut to avoid thinking about releases. This would indeed explain why =
things work just fine for us with all the dev repos, but not for casual =
users who opt for the stable, non-dev repos. If the 'opam pin git://' =
works then I say: remove the mirage/opam-repo-dev remote and let's all =
use the stable versions and make sure they're rock solid.
>=20
> Great; I'll start removing stuff, and once Mirari has a released =
version, I can update the website instructions.
>=20
>> The xen-org/opam-repo-dev contains a bit of a backlog of unreleased =
stuff. I need to tidy up xenopsd (the lowest piece) and cut a release as =
soon as possible.
>=20
> Good plan; my laptop is waiting for xenopsd too!
>=20
> -a



From Richard.Mortier@nottingham.ac.uk Mon Feb 11 09:58:27 2013
Received: from ppsw-41.csi.cam.ac.uk ([131.111.8.141])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4q9b-0007FJ-S5 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Mon, 11 Feb 2013 09:58:27 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1444510 
	* 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from engine01-20433-1.icritical.com ([93.95.15.169]:41253)
	by ppsw-41.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with smtp id 1U4q9b-0003Ae-Qu (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Mon, 11 Feb 2013 09:58:27 +0000
Received: (qmail 22244 invoked from network); 11 Feb 2013 09:52:48 -0000
Received: from localhost (127.0.0.1)
	by engine01-20433-1.icritical.com with SMTP; 11 Feb 2013 09:52:48 -0000
Received: from engine01-20433-1.icritical.com ([127.0.0.1])
	by localhost (engine01-20433-1.icritical.com [127.0.0.1]) (amavisd-new,
	port 10024) with SMTP id 22167-01 for <cl-mirage@lists.cam.ac.uk>;
	Mon, 11 Feb 2013 09:52:47 +0000 (GMT)
Received: (qmail 22191 invoked by uid 599); 11 Feb 2013 09:52:47 -0000
Received: from unknown (HELO smtp4.nottingham.ac.uk) (128.243.220.65)
	by engine01-20433-1.icritical.com (qpsmtpd/0.28) with ESMTP;
	Mon, 11 Feb 2013 09:52:47 +0000
Received: from uiwexhub01.ad.nottingham.ac.uk ([128.243.15.133])
	by smtp4.nottingham.ac.uk with esmtps (TLSv1:AES128-SHA:128)
	(Exim 4.77) (envelope-from <Richard.Mortier@nottingham.ac.uk>)
	id 1U4q4I-000481-Fm
	for cl-mirage@lists.cam.ac.uk; Mon, 11 Feb 2013 09:52:58 +0000
From: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
To: Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
Date: Mon, 11 Feb 2013 09:52:45 +0000
Subject: Re: opam-repo-dev now less useful
Thread-Topic: opam-repo-dev now less useful
Thread-Index: Ac4IPZJcqaB2SOaeScutctn+2SQt7g==
Message-ID: <DD8521A3-EBDB-4F47-AEAE-18E5D80DA5A5@nottingham.ac.uk>
References: <33691BD5-4B34-4F54-B93F-B357F8577326@recoil.org>
	<CAG_esB0Td-xy2G6-fV5=ucXTf4CNL3ug8giksKXJi4wJ0eL4OA@mail.gmail.com>
	<36A253F3-62B2-4498-9328-CE343A2CF734@recoil.org>
	<B6A4501D-91F6-4987-A52E-838F9B41BB7F@gmail.com>
In-Reply-To: <B6A4501D-91F6-4987-A52E-838F9B41BB7F@gmail.com>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, en-GB
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Virus-Scanned: by iCritical at engine01-20433-1.icritical.com
Cc: David Scott <scott.dj@gmail.com>,
	cl-mirage List <cl-mirage@lists.cam.ac.uk>,
	Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 09:58:27 -0000
Content-Length: 1302
Lines: 29


On 11 Feb 2013, at 09:33, Thomas Gazagnaire wrote:

> In a related area, something that I have in mind is to have a special "de=
v" version for each package, so that people can still 'opam pin mirage dev'=
 if they want (instead of having to remember the git repository address).=20
...
> This will not necessary help to have more stable packages, but if you thi=
nk it's worth doing this this can be done without too much trouble I think.

would the dev version mean something like HEAD? or would dev also be a spec=
ific version?


--=20
Cheers,

R.




This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


From thomas.gazagnaire@gmail.com Mon Feb 11 09:57:26 2013
Received: from ppsw-41.csi.cam.ac.uk ([131.111.8.141])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4q8c-0007Du-TR (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <thomas.gazagnaire@gmail.com>);
	Mon, 11 Feb 2013 09:57:26 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.8 from SpamAssassin-3.3.2-1444510 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [74.125.82.180 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (thomas.gazagnaire[at]gmail.com)
	* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	*      author's domain
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-we0-f180.google.com ([74.125.82.180]:52717)
	by ppsw-41.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with esmtp id 1U4q8c-0002mZ-RO (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <thomas.gazagnaire@gmail.com>);
	Mon, 11 Feb 2013 09:57:26 +0000
Received: by mail-we0-f180.google.com with SMTP id k14so4550770wer.25
	for <cl-mirage@lists.cam.ac.uk>; Mon, 11 Feb 2013 01:57:26 -0800 (PST)
X-Received: by 10.180.73.80 with SMTP id j16mr14720489wiv.5.1360576646336;
	Mon, 11 Feb 2013 01:57:26 -0800 (PST)
Received: from [10.35.194.114] ([213.30.181.210])
	by mx.google.com with ESMTPS id e12sm31956830wiw.5.2013.02.11.01.57.24
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Mon, 11 Feb 2013 01:57:25 -0800 (PST)
Subject: Re: opam-repo-dev now less useful
Mime-Version: 1.0 (Apple Message framework v1085)
Content-Type: text/plain; charset=us-ascii
From: Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
In-Reply-To: <DD8521A3-EBDB-4F47-AEAE-18E5D80DA5A5@nottingham.ac.uk>
Date: Mon, 11 Feb 2013 10:57:24 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <F9B9666F-13E8-4483-966D-BFC24F1BB6A5@gmail.com>
References: <33691BD5-4B34-4F54-B93F-B357F8577326@recoil.org>
	<CAG_esB0Td-xy2G6-fV5=ucXTf4CNL3ug8giksKXJi4wJ0eL4OA@mail.gmail.com>
	<36A253F3-62B2-4498-9328-CE343A2CF734@recoil.org>
	<B6A4501D-91F6-4987-A52E-838F9B41BB7F@gmail.com>
	<DD8521A3-EBDB-4F47-AEAE-18E5D80DA5A5@nottingham.ac.uk>
To: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
X-Mailer: Apple Mail (2.1085)
Cc: David Scott <scott.dj@gmail.com>,
	cl-mirage List <cl-mirage@lists.cam.ac.uk>,
	Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 09:57:27 -0000
Content-Length: 113
Lines: 7

> would the dev version mean something like HEAD? or would dev also be a =
specific version?

yup, dev=3DHEAD




From Richard.Mortier@nottingham.ac.uk Mon Feb 11 10:10:28 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4qLE-0000AW-Ie (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Mon, 11 Feb 2013 10:10:28 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1444510 
	* 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from engine04-20433-4.icritical.com ([195.62.217.152]:49453)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with smtp id 1U4qLD-0005YG-Wv (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Mon, 11 Feb 2013 10:10:28 +0000
Received: (qmail 9805 invoked from network); 11 Feb 2013 10:01:23 -0000
Received: from localhost (127.0.0.1)
	by engine04-20433-4.icritical.com with SMTP; 11 Feb 2013 10:01:23 -0000
Received: from engine04-20433-4.icritical.com ([127.0.0.1])
	by localhost (engine04-20433-4.icritical.com [127.0.0.1]) (amavisd-new,
	port 10024) with SMTP id 09677-02 for <cl-mirage@lists.cam.ac.uk>;
	Mon, 11 Feb 2013 10:01:22 +0000 (GMT)
Received: (qmail 9757 invoked by uid 599); 11 Feb 2013 10:01:22 -0000
Received: from unknown (HELO smtp4.nottingham.ac.uk) (128.243.220.65)
	by engine04-20433-4.icritical.com (qpsmtpd/0.28) with ESMTP;
	Mon, 11 Feb 2013 10:01:22 +0000
Received: from uiwexhub01.ad.nottingham.ac.uk ([128.243.15.133])
	by smtp4.nottingham.ac.uk with esmtps (TLSv1:AES128-SHA:128)
	(Exim 4.77) (envelope-from <Richard.Mortier@nottingham.ac.uk>)
	id 1U4qCQ-0004hP-Jm
	for cl-mirage@lists.cam.ac.uk; Mon, 11 Feb 2013 10:01:22 +0000
From: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
To: Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
Date: Mon, 11 Feb 2013 10:01:23 +0000
Subject: Re: opam-repo-dev now less useful
Thread-Topic: opam-repo-dev now less useful
Thread-Index: Ac4IPr7RUr5UuMbUTRWJ7p3XDuCWOw==
Message-ID: <0655BD0C-2516-4A10-8688-9D1789A5BDA7@nottingham.ac.uk>
References: <33691BD5-4B34-4F54-B93F-B357F8577326@recoil.org>
	<CAG_esB0Td-xy2G6-fV5=ucXTf4CNL3ug8giksKXJi4wJ0eL4OA@mail.gmail.com>
	<36A253F3-62B2-4498-9328-CE343A2CF734@recoil.org>
	<B6A4501D-91F6-4987-A52E-838F9B41BB7F@gmail.com>
	<DD8521A3-EBDB-4F47-AEAE-18E5D80DA5A5@nottingham.ac.uk>
	<F9B9666F-13E8-4483-966D-BFC24F1BB6A5@gmail.com>
In-Reply-To: <F9B9666F-13E8-4483-966D-BFC24F1BB6A5@gmail.com>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, en-GB
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Virus-Scanned: by iCritical at engine04-20433-4.icritical.com
Cc: David Scott <scott.dj@gmail.com>,
	cl-mirage List <cl-mirage@lists.cam.ac.uk>,
	Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 10:10:28 -0000
Content-Length: 1374
Lines: 34


On 11 Feb 2013, at 09:57, Thomas Gazagnaire wrote:

>> would the dev version mean something like HEAD? or would dev also be a s=
pecific version?
>=20
> yup, dev=3DHEAD

hm- so i'd get auto-updates on the package.

not sure how useful that would be - surely if i want the dev version, i'm d=
oing some dev on it, which means i've got the source somewhere. better to h=
ave an easy way to have opam manage installation of locally constructed pac=
kages? (which i think is what pin is isn't it?)

otoh maybe there's a case where different people are working on interdepend=
ent packages simultaneously?=20


--=20
Cheers,

R.




This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


From anil@recoil.org Mon Feb 11 10:24:30 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4qYo-0000ry-6h (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 11 Feb 2013 10:24:30 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1444510
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:5891
	helo=dark.recoil.org)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1U4qYn-0002iR-s7 (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 11 Feb 2013 10:24:30 +0000
Received: (qmail 7196 invoked by uid 634); 11 Feb 2013 10:24:29 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO [10.0.1.83]) (128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Mon, 11 Feb 2013 10:24:29 +0000
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: opam-repo-dev now less useful
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <0655BD0C-2516-4A10-8688-9D1789A5BDA7@nottingham.ac.uk>
Date: Mon, 11 Feb 2013 10:24:29 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <BB02536D-0BC8-4866-B636-1FA64FE74E64@recoil.org>
References: <33691BD5-4B34-4F54-B93F-B357F8577326@recoil.org>
	<CAG_esB0Td-xy2G6-fV5=ucXTf4CNL3ug8giksKXJi4wJ0eL4OA@mail.gmail.com>
	<36A253F3-62B2-4498-9328-CE343A2CF734@recoil.org>
	<B6A4501D-91F6-4987-A52E-838F9B41BB7F@gmail.com>
	<DD8521A3-EBDB-4F47-AEAE-18E5D80DA5A5@nottingham.ac.uk>
	<F9B9666F-13E8-4483-966D-BFC24F1BB6A5@gmail.com>
	<0655BD0C-2516-4A10-8688-9D1789A5BDA7@nottingham.ac.uk>
To: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: cl-mirage List <cl-mirage@lists.cam.ac.uk>,
	David Scott <scott.dj@gmail.com>,
	Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 10:24:30 -0000
Content-Length: 1346
Lines: 42

On 11 Feb 2013, at 10:01, Richard Mortier =
<Richard.Mortier@nottingham.ac.uk> wrote:

>=20
> On 11 Feb 2013, at 09:57, Thomas Gazagnaire wrote:
>=20
>>> would the dev version mean something like HEAD? or would dev also be =
a specific version?
>>=20
>> yup, dev=3DHEAD
>=20
> hm- so i'd get auto-updates on the package.
>=20
> not sure how useful that would be - surely if i want the dev version, =
i'm doing some dev on it, which means i've got the source somewhere. =
better to have an easy way to have opam manage installation of locally =
constructed packages? (which i think is what pin is isn't it?)

Indeed, I don't quite understand the use-case of dev vs pin here.

A simpler solution might be just to have a 'head' field in the url file, =
which contains the URL for the latest revision (e.g. =
git://github.com/mirage/mirage-platform).  Then `opam pin mirage` could =
default to the dev revision if no other path is specified.

Doesn't seem like the most important feature though. As Mort notes, most =
people will want to clone the source locally to modify it.

Actually, a commonly requested feature is 'opam source' to retrieve the =
package archive.  So this feature could work well with that.

$ opam source mirage.0.7.2
or
$ opam source mirage --head
<clones into mirage.HEAD>
followed by
$ opam pin mirage mirage.HEAD

-anil




From Richard.Mortier@nottingham.ac.uk Mon Feb 11 10:34:17 2013
Received: from ppsw-43.csi.cam.ac.uk ([131.111.8.143])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4qiH-0001RQ-QK (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Mon, 11 Feb 2013 10:34:17 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1444510 
	* 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from engine03-20433-10.icritical.com ([93.159.202.53]:51729)
	by ppsw-43.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1U4qiH-0002ZZ-nL (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Mon, 11 Feb 2013 10:34:17 +0000
Received: (qmail 2146 invoked from network); 11 Feb 2013 10:34:19 -0000
Received: from localhost (127.0.0.1)
	by engine03-20433-10.icritical.com with SMTP; 11 Feb 2013 10:34:19 -0000
Received: from engine03-20433-10.icritical.com ([127.0.0.1])
	by localhost (engine03-20433-10.icritical.com [127.0.0.1]) (amavisd-new,
	port 10024) with SMTP id 01611-08 for <cl-mirage@lists.cam.ac.uk>;
	Mon, 11 Feb 2013 10:34:19 +0000 (GMT)
Received: (qmail 31976 invoked by uid 599); 11 Feb 2013 10:33:14 -0000
Received: from unknown (HELO smtp3.nottingham.ac.uk) (128.243.44.55)
	by engine03-20433-10.icritical.com (qpsmtpd/0.28) with ESMTP;
	Mon, 11 Feb 2013 10:33:14 +0000
Received: from uiwexhub02.ad.nottingham.ac.uk ([128.243.15.132])
	by smtp3.nottingham.ac.uk with esmtps (TLSv1:AES128-SHA:128)
	(Exim 4.77) (envelope-from <Richard.Mortier@nottingham.ac.uk>)
	id 1U4qc0-0006XH-Kl
	for cl-mirage@lists.cam.ac.uk; Mon, 11 Feb 2013 10:27:48 +0000
From: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Date: Mon, 11 Feb 2013 10:27:47 +0000
Subject: Re: opam-repo-dev now less useful
Thread-Topic: opam-repo-dev now less useful
Thread-Index: Ac4IQnAjXAo/GFaPTCGzM8WfqBVu6g==
Message-ID: <C23F4CB4-F514-42E1-96FD-6855611CBB28@nottingham.ac.uk>
References: <33691BD5-4B34-4F54-B93F-B357F8577326@recoil.org>
	<CAG_esB0Td-xy2G6-fV5=ucXTf4CNL3ug8giksKXJi4wJ0eL4OA@mail.gmail.com>
	<36A253F3-62B2-4498-9328-CE343A2CF734@recoil.org>
	<B6A4501D-91F6-4987-A52E-838F9B41BB7F@gmail.com>
	<DD8521A3-EBDB-4F47-AEAE-18E5D80DA5A5@nottingham.ac.uk>
	<F9B9666F-13E8-4483-966D-BFC24F1BB6A5@gmail.com>
	<0655BD0C-2516-4A10-8688-9D1789A5BDA7@nottingham.ac.uk>
	<BB02536D-0BC8-4866-B636-1FA64FE74E64@recoil.org>
In-Reply-To: <BB02536D-0BC8-4866-B636-1FA64FE74E64@recoil.org>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, en-GB
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Virus-Scanned: by iCritical at engine03-20433-10.icritical.com
Cc: David Scott <scott.dj@gmail.com>,
	cl-mirage List <cl-mirage@lists.cam.ac.uk>,
	Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 10:34:17 -0000
Content-Length: 2369
Lines: 54


On 11 Feb 2013, at 10:24, Anil Madhavapeddy wrote:

> On 11 Feb 2013, at 10:01, Richard Mortier <Richard.Mortier@nottingham.ac.=
uk> wrote:
>=20
>> not sure how useful that would be - surely if i want the dev version, i'=
m doing some dev on it, which means i've got the source somewhere. better t=
o have an easy way to have opam manage installation of locally constructed =
packages? (which i think is what pin is isn't it?)
>=20
> Indeed, I don't quite understand the use-case of dev vs pin here.
>=20
> A simpler solution might be just to have a 'head' field in the url file, =
which contains the URL for the latest revision (e.g. git://github.com/mirag=
e/mirage-platform).  Then `opam pin mirage` could default to the dev revisi=
on if no other path is specified.
>=20
> Doesn't seem like the most important feature though. As Mort notes, most =
people will want to clone the source locally to modify it.
>=20
> Actually, a commonly requested feature is 'opam source' to retrieve the p=
ackage archive.  So this feature could work well with that.
>=20
> $ opam source mirage.0.7.2
> or
> $ opam source mirage --head
> <clones into mirage.HEAD>
> followed by
> $ opam pin mirage mirage.HEAD


that's probably handy. also useful to be able to easily pull source for som=
e/all the dependencies of a package when setting up to try and do some deve=
lopment. maybe just an easy way to output all the deps and their source url=
s?  (just in case, e.g., it turns out i already have those trees -- seems t=
hat letting opam start to magically manage my dev environment might be a st=
ep too far... :)

--=20
Cheers,

R.




This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


From anil@recoil.org Mon Feb 11 11:00:07 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4r7H-00034b-84 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 11 Feb 2013 11:00:07 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1444510
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:14228
	helo=dark.recoil.org)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1U4r7G-0003H8-q0 (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 11 Feb 2013 11:00:07 +0000
Received: (qmail 2035 invoked by uid 634); 11 Feb 2013 11:00:05 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO [10.0.1.83]) (128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Mon, 11 Feb 2013 11:00:05 +0000
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: opam-repo-dev now less useful
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <C23F4CB4-F514-42E1-96FD-6855611CBB28@nottingham.ac.uk>
Date: Mon, 11 Feb 2013 11:00:08 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <B51A016E-B08A-4D4D-9DCF-49058DCB884D@recoil.org>
References: <33691BD5-4B34-4F54-B93F-B357F8577326@recoil.org>
	<CAG_esB0Td-xy2G6-fV5=ucXTf4CNL3ug8giksKXJi4wJ0eL4OA@mail.gmail.com>
	<36A253F3-62B2-4498-9328-CE343A2CF734@recoil.org>
	<B6A4501D-91F6-4987-A52E-838F9B41BB7F@gmail.com>
	<DD8521A3-EBDB-4F47-AEAE-18E5D80DA5A5@nottingham.ac.uk>
	<F9B9666F-13E8-4483-966D-BFC24F1BB6A5@gmail.com>
	<0655BD0C-2516-4A10-8688-9D1789A5BDA7@nottingham.ac.uk>
	<BB02536D-0BC8-4866-B636-1FA64FE74E64@recoil.org>
	<C23F4CB4-F514-42E1-96FD-6855611CBB28@nottingham.ac.uk>
To: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: cl-mirage List <cl-mirage@lists.cam.ac.uk>,
	David Scott <scott.dj@gmail.com>,
	Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 11:00:07 -0000
Content-Length: 1037
Lines: 26

On 11 Feb 2013, at 10:27, Richard Mortier =
<Richard.Mortier@nottingham.ac.uk> wrote:
>=20
> that's probably handy. also useful to be able to easily pull source =
for some/all the dependencies of a package when setting up to try and do =
some development. maybe just an easy way to output all the deps and =
their source urls?  (just in case, e.g., it turns out i already have =
those trees -- seems that letting opam start to magically manage my dev =
environment might be a step too far... :)

That's too magic for now.  Once a feature goes into OPAM, it can't ever =
leave easily, so minimal steps!

But some variation of `opam info lwt -f available-versions` is probably =
what you want.  We could expose the dependencies via that and make it =
suitable for scripting.=20

There's a git-like extension mechanism built into OPAM, which is that =
'opam foo' will execute 'opam-foo' if the sub-command isn't known.  Much =
of the workflow stuff can/should be shell scripts  that just call OPAM =
commands and glue them together.

-a




From anil@recoil.org Mon Feb 11 11:02:22 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4r9S-0003C3-7U (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 11 Feb 2013 11:02:22 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1444510
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:39063
	helo=dark.recoil.org)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1U4r9R-0004dY-s3 (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 11 Feb 2013 11:02:22 +0000
Received: (qmail 7224 invoked by uid 634); 11 Feb 2013 11:02:21 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO [10.0.1.83]) (128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Mon, 11 Feb 2013 11:02:21 +0000
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: Trouble installing mirage from OPAM
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <1D8588A0-E18D-4A28-B89A-132E705065BF@gmail.com>
Date: Mon, 11 Feb 2013 11:02:21 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <14DD7270-7B1A-467B-A684-883430BB9BF2@recoil.org>
References: <CABiHZ_VKDnf9awgzQHSD0mQEpxasH9WwLLXMKy+pXx6DxJoqyA@mail.gmail.com>
	<1D8588A0-E18D-4A28-B89A-132E705065BF@gmail.com>
To: Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: Steve Jenson <stevej@fruitless.org>, cl-mirage@lists.cam.ac.uk
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 11:02:22 -0000
Content-Length: 992
Lines: 27

On 11 Feb 2013, at 08:58, Thomas Gazagnaire =
<thomas.gazagnaire@gmail.com> wrote:

> Hi Steve,
>=20
>>  ./configure --prefix /Users/stevej/.opam/3.12.1+mirage-unix-direct
>=20
> The new "official" mirage compiler is now 4.01.0dev+mirage-unix, so =
you should run 'opam switch 4.01.0dev+mirage-unix'  before installing =
mirage. Regarding your error, native dynlink was broken with OCaml =
3.12.1 on OSX.

Hey Steve! Thanks for the reminder...I've yank the 3.12.1 compilers from =
the OPAM repository, as they're now well deprecated.  The switch to 4.x =
was quite easy, and there are many, many performance and stability =
improvements in the new tree.

I'd recommend 4.01.0dev+mirage-xen to play with.  It gives you the trunk =
version with new compiler intrinsics that Pierre put in to optimise =
handling of low-level int16/32/64s.  It'll be what the first alpha =
release uses.

(documentation update on the website coming as soon as mirari has first =
release, real soon now!)

-anil=


From Richard.Mortier@nottingham.ac.uk Mon Feb 11 11:07:33 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4rET-0003Pq-Hw (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Mon, 11 Feb 2013 11:07:33 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1444510 
	* 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from engine03-20433-10.icritical.com ([93.159.202.53]:46162)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1U4rES-0007Qn-sV (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Mon, 11 Feb 2013 11:07:33 +0000
Received: (qmail 12391 invoked from network); 11 Feb 2013 11:06:23 -0000
Received: from localhost (127.0.0.1)
	by engine03-20433-10.icritical.com with SMTP; 11 Feb 2013 11:06:23 -0000
Received: from engine03-20433-10.icritical.com ([127.0.0.1])
	by localhost (engine03-20433-10.icritical.com [127.0.0.1]) (amavisd-new,
	port 10024) with SMTP id 12315-02 for <cl-mirage@lists.cam.ac.uk>;
	Mon, 11 Feb 2013 11:06:22 +0000 (GMT)
Received: (qmail 11986 invoked by uid 599); 11 Feb 2013 11:06:16 -0000
Received: from unknown (HELO smtp3.nottingham.ac.uk) (128.243.44.55)
	by engine03-20433-10.icritical.com (qpsmtpd/0.28) with ESMTP;
	Mon, 11 Feb 2013 11:06:16 +0000
Received: from uiwexhub01.ad.nottingham.ac.uk ([128.243.15.133])
	by smtp3.nottingham.ac.uk with esmtps (TLSv1:AES128-SHA:128)
	(Exim 4.77) (envelope-from <Richard.Mortier@nottingham.ac.uk>)
	id 1U4r9g-0003Ow-K9
	for cl-mirage@lists.cam.ac.uk; Mon, 11 Feb 2013 11:02:36 +0000
From: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Date: Mon, 11 Feb 2013 11:02:35 +0000
Subject: Re: opam-repo-dev now less useful
Thread-Topic: opam-repo-dev now less useful
Thread-Index: Ac4IR0xpiRynPtgdSsiiq6f9mQDZog==
Message-ID: <5F153B9B-B3ED-4644-A6B2-D98C875E8EB4@nottingham.ac.uk>
References: <33691BD5-4B34-4F54-B93F-B357F8577326@recoil.org>
	<CAG_esB0Td-xy2G6-fV5=ucXTf4CNL3ug8giksKXJi4wJ0eL4OA@mail.gmail.com>
	<36A253F3-62B2-4498-9328-CE343A2CF734@recoil.org>
	<B6A4501D-91F6-4987-A52E-838F9B41BB7F@gmail.com>
	<DD8521A3-EBDB-4F47-AEAE-18E5D80DA5A5@nottingham.ac.uk>
	<F9B9666F-13E8-4483-966D-BFC24F1BB6A5@gmail.com>
	<0655BD0C-2516-4A10-8688-9D1789A5BDA7@nottingham.ac.uk>
	<BB02536D-0BC8-4866-B636-1FA64FE74E64@recoil.org>
	<C23F4CB4-F514-42E1-96FD-6855611CBB28@nottingham.ac.uk>
	<B51A016E-B08A-4D4D-9DCF-49058DCB884D@recoil.org>
In-Reply-To: <B51A016E-B08A-4D4D-9DCF-49058DCB884D@recoil.org>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, en-GB
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Virus-Scanned: by iCritical at engine03-20433-10.icritical.com
Cc: David Scott <scott.dj@gmail.com>,
	cl-mirage List <cl-mirage@lists.cam.ac.uk>,
	Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 11:07:33 -0000
Content-Length: 1989
Lines: 47


On 11 Feb 2013, at 11:00, Anil Madhavapeddy wrote:

> On 11 Feb 2013, at 10:27, Richard Mortier <Richard.Mortier@nottingham.ac.=
uk> wrote:
>>=20
>> that's probably handy. also useful to be able to easily pull source for =
some/all the dependencies of a package when setting up to try and do some d=
evelopment. maybe just an easy way to output all the deps and their source =
urls?  (just in case, e.g., it turns out i already have those trees -- seem=
s that letting opam start to magically manage my dev environment might be a=
 step too far... :)
>=20
> That's too magic for now.  Once a feature goes into OPAM, it can't ever l=
eave easily, so minimal steps!

agree :)

> But some variation of `opam info lwt -f available-versions` is probably w=
hat you want.  We could expose the dependencies via that and make it suitab=
le for scripting.=20

yes- just getting the data out in an easily parsable format would be suffic=
ient...

> There's a git-like extension mechanism built into OPAM, which is that 'op=
am foo' will execute 'opam-foo' if the sub-command isn't known.  Much of th=
e workflow stuff can/should be shell scripts  that just call OPAM commands =
and glue them together.

oh, cool. that works then.

--=20
Cheers,

R.




This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


From stevej@fruitless.org Mon Feb 11 18:25:36 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4y4O-0003Pw-1x (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <stevej@fruitless.org>); Mon, 11 Feb 2013 18:25:36 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.7 from SpamAssassin-3.3.2-1444510 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.223.173 listed in list.dnswl.dnsbl.ja.net]
	*  0.0 HTML_MESSAGE BODY: HTML included in message
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-ie0-f173.google.com ([209.85.223.173]:51898)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1U4y4M-0003Q4-XF (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <stevej@fruitless.org>); Mon, 11 Feb 2013 18:25:35 +0000
Received: by mail-ie0-f173.google.com with SMTP id 9so8016836iec.32
	for <cl-mirage@lists.cam.ac.uk>; Mon, 11 Feb 2013 10:25:33 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=x-received:mime-version:x-originating-ip:in-reply-to:references
	:from:date:message-id:subject:to:cc:content-type:x-gm-message-state;
	bh=gdPkOqbZiFvQCsUQ0vJxkEWHbDu5egLAhqQZieH/tAE=;
	b=Yr1kEsowSV+K0JIqpmUKCJRNEiPHRpVmLGeH8ubyr7uO0/vEfYN9vM7QtE41nmSCRs
	HZ5qw955Wv3D20poMZOShjUJkhNv4IXjYzmPDo6N1ELiqpMQ4mYy5PtF0Hyi6ovnw7NO
	EjQuqW9Z5xIGDMyH2EID9DoJMo4IFzt5tgrilErQWs5rS9zDMbsJ/FxL75GyRSeMJK+Z
	OpCv+VyiN6Ncx4O1htGTdIwVjP/DM0IPVgXo58DJT4pxpKB3EnucYCKNcXnXNpmiN/lS
	vJUfzlcsdeHbV/z0O5ZN8q8iP/mL3LLcdGYAtAUCtrmfHL6BL9w+KlqMVyMvvAnr7y8G
	xIdA==
X-Received: by 10.50.34.193 with SMTP id b1mr13307121igj.89.1360607133412;
	Mon, 11 Feb 2013 10:25:33 -0800 (PST)
MIME-Version: 1.0
Received: by 10.50.114.196 with HTTP; Mon, 11 Feb 2013 10:25:13 -0800 (PST)
X-Originating-IP: [24.23.130.150]
In-Reply-To: <14DD7270-7B1A-467B-A684-883430BB9BF2@recoil.org>
References: <CABiHZ_VKDnf9awgzQHSD0mQEpxasH9WwLLXMKy+pXx6DxJoqyA@mail.gmail.com>
	<1D8588A0-E18D-4A28-B89A-132E705065BF@gmail.com>
	<14DD7270-7B1A-467B-A684-883430BB9BF2@recoil.org>
From: Steve Jenson <stevej@fruitless.org>
Date: Mon, 11 Feb 2013 10:25:13 -0800
Message-ID: <CABiHZ_VBVwkRmMvS4+VAteZmrZ4LJE25kMPgWKQ7ooxVL=bgDg@mail.gmail.com>
Subject: Re: Trouble installing mirage from OPAM
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: multipart/alternative; boundary=14dae9340fafddadae04d5770851
X-Gm-Message-State: ALoCoQnLGVFgtjBYN+pIYKJRzukjuoWc03liB0+SUPw4F+tkD5rCLsHmEzw8o6FBOZ8OJ0PkAwZp
Cc: cl-mirage@lists.cam.ac.uk, Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 18:25:36 -0000
Content-Length: 11860
Lines: 301

--14dae9340fafddadae04d5770851
Content-Type: text/plain; charset=ISO-8859-1

On Mon, Feb 11, 2013 at 3:02 AM, Anil Madhavapeddy <anil@recoil.org> wrote:

> On 11 Feb 2013, at 08:58, Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
> wrote:
>
> > Hi Steve,
> >
> >>  ./configure --prefix /Users/stevej/.opam/3.12.1+mirage-unix-direct
> >
> > The new "official" mirage compiler is now 4.01.0dev+mirage-unix, so you
> should run 'opam switch 4.01.0dev+mirage-unix'  before installing mirage.
> Regarding your error, native dynlink was broken with OCaml 3.12.1 on OSX.
>
> Hey Steve! Thanks for the reminder...I've yank the 3.12.1 compilers from
> the OPAM repository, as they're now well deprecated.  The switch to 4.x was
> quite easy, and there are many, many performance and stability improvements
> in the new tree.
>
> I'd recommend 4.01.0dev+mirage-xen to play with.  It gives you the trunk
> version with new compiler intrinsics that Pierre put in to optimise
> handling of low-level int16/32/64s.  It'll be what the first alpha release
> uses.
>
> (documentation update on the website coming as soon as mirari has first
> release, real soon now!)
>
> -anil


Happy to be a guinea pig. :-)

I switched to 4.01.0dev+mirage-unix but it looks like xenstore is requiring
a newer version of cstruct than is provided?

Is `mirage` the correct thing to install if I want to build a mirage app? I
notice that mirage-www is not in OPAM any longer.

$ opam list |grep mirage
Available packages for 4.01.0dev+mirage-unix:
mirage                     --  Mirage stdlib
mirage-fs                  --  Mirage filesystem utilities
mirage-net                 --  Mirage TCP/IP networking library
oasis-mirage               --  This is a fork of OASIS with support for
native output-obj.

$ opam install mirage
The following actions will be performed:
 - install ounit.1.1.2 [required by mirage]
 - install cstruct.0.5.2 [required by mirage]
 - install xenstore.1.1.0 [required by mirage]
 - install mirage.0.6.1
4 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
Do you want to continue ? [Y/n] y

=-=-= cstruct.0.5.2 =-=-=
Downloading
https://github.com/mirage/ocaml-cstruct/archive/ocaml-cstruct-0.5.2.tar.gz.
 Creating /Users/stevej/.opam/repo/dev/archives/cstruct.0.5.2+opam.tar.gz.
Extracting /Users/stevej/.opam/archives/cstruct.0.5.2+opam.tar.gz.
Building cstruct.0.5.2:
  make
  make install
Installing cstruct.0.5.2.

=-=-= ounit.1.1.2 =-=-=
Downloading
http://forge.ocamlcore.org/frs/download.php/886/ounit-1.1.2.tar.gz.
Creating /Users/stevej/.opam/repo/dev/archives/ounit.1.1.2+opam.tar.gz.
Extracting /Users/stevej/.opam/archives/ounit.1.1.2+opam.tar.gz.
Building ounit.1.1.2:
  make build
  make install
Installing ounit.1.1.2.

=-=-= xenstore.1.1.0 =-=-=
Downloading
https://github.com/mirage/ocaml-xenstore/archive/ocaml-xenstore-1.1.0.tar.gz
.
Creating /Users/stevej/.opam/repo/dev/archives/xenstore.1.1.0+opam.tar.gz.
Extracting /Users/stevej/.opam/archives/xenstore.1.1.0+opam.tar.gz.
Building xenstore.1.1.0:
  make all
  make install
The compilation of xenstore.1.1.0 failed.
Uninstalling xenstore.1.1.0:
  ocamlfind remove xenstore

Due to some errors while processing xenstore.1.1.0, the following actions
will NOT be proceeded:
  - install mirage.0.6.1

==== ERROR [while installing xenstore.1.1.0] ====
# command         make all
# path
 /Users/stevej/.opam/4.01.0dev+mirage-unix/build/xenstore.1.1.0
# exit-code       2
# env-file
 /Users/stevej/.opam/4.01.0dev+mirage-unix/build/xenstore.1.1.0/xenstore-2dea01.env
# stdout-file
/Users/stevej/.opam/4.01.0dev+mirage-unix/build/xenstore.1.1.0/xenstore-2dea01.out
# stderr-file
/Users/stevej/.opam/4.01.0dev+mirage-unix/build/xenstore.1.1.0/xenstore-2dea01.err
### stderr ###
W: Field 'pkg_cstruct_version_lt_0_6_0' is not set: Cannot satisfy version
constraint on pkg_cstruct: < 0.6.0 (version: 0.6.0)
E: Cannot find findlib package cstruct (< 0.6.0)
E: Failure("1 configuration error")
make: *** [setup.data] Error 1

'opam install mirage' failed.

--14dae9340fafddadae04d5770851
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Mon, Feb 11, 2013 at 3:02 AM, Anil Madhavapeddy <span d=
ir=3D"ltr">&lt;<a href=3D"mailto:anil@recoil.org" target=3D"_blank">anil@re=
coil.org</a>&gt;</span> wrote:<br><div class=3D"gmail_extra"><div class=3D"=
gmail_quote">


<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
adding-left:1ex"><div>On 11 Feb 2013, at 08:58, Thomas Gazagnaire &lt;<a hr=
ef=3D"mailto:thomas.gazagnaire@gmail.com" target=3D"_blank">thomas.gazagnai=
re@gmail.com</a>&gt; wrote:<br>



<br>
&gt; Hi Steve,<br>
&gt;<br>
&gt;&gt; =A0./configure --prefix /Users/stevej/.opam/3.12.1+mirage-unix-dir=
ect<br>
&gt;<br>
&gt; The new &quot;official&quot; mirage compiler is now 4.01.0dev+mirage-u=
nix, so you should run &#39;opam switch 4.01.0dev+mirage-unix&#39; =A0befor=
e installing mirage. Regarding your error, native dynlink was broken with O=
Caml 3.12.1 on OSX.<br>



<br>
</div>Hey Steve! Thanks for the reminder...I&#39;ve yank the 3.12.1 compile=
rs from the OPAM repository, as they&#39;re now well deprecated. =A0The swi=
tch to 4.x was quite easy, and there are many, many performance and stabili=
ty improvements in the new tree.<br>



<br>
I&#39;d recommend 4.01.0dev+mirage-xen to play with. =A0It gives you the tr=
unk version with new compiler intrinsics that Pierre put in to optimise han=
dling of low-level int16/32/64s. =A0It&#39;ll be what the first alpha relea=
se uses.<br>



<br>
(documentation update on the website coming as soon as mirari has first rel=
ease, real soon now!)<br>
<span><font color=3D"#888888"><br>
-anil</font></span></blockquote></div><br></div><div class=3D"gmail_extra" =
style>Happy to be a guinea pig. :-)</div><div class=3D"gmail_extra"><br></d=
iv><div class=3D"gmail_extra">I switched to 4.01.0dev+mirage-unix=A0but it =
looks like xenstore is requiring a newer version of cstruct than is provide=
d?</div>

<div class=3D"gmail_extra">
<br></div><div class=3D"gmail_extra">Is `mirage` the correct thing to insta=
ll if I want to build a mirage app? I notice that mirage-www is not in OPAM=
 any longer.</div><div class=3D"gmail_extra"><br></div><div class=3D"gmail_=
extra">

<div class=3D"gmail_extra">$ opam list |grep mirage</div><div class=3D"gmai=
l_extra">
Available packages for 4.01.0dev+mirage-unix:</div><div class=3D"gmail_extr=
a">mirage =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -- =A0Mirage stdlib</div>=
<div class=3D"gmail_extra">mirage-fs =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-- =
=A0Mirage filesystem utilities</div><div class=3D"gmail_extra">


mirage-net =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -- =A0Mirage TCP/IP networking l=
ibrary</div><div class=3D"gmail_extra">oasis-mirage =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 -- =A0This is a fork of OASIS with support for native output-obj.</div=
></div><div class=3D"gmail_extra">


<br></div><div class=3D"gmail_extra"><div class=3D"gmail_extra">$ opam inst=
all mirage</div><div class=3D"gmail_extra">The following actions will be pe=
rformed:</div><div class=3D"gmail_extra">=A0- install ounit.1.1.2 [required=
 by mirage]</div>


<div class=3D"gmail_extra">=A0- install cstruct.0.5.2 [required by mirage]<=
/div><div class=3D"gmail_extra">=A0- install xenstore.1.1.0 [required by mi=
rage]</div><div class=3D"gmail_extra">=A0- install mirage.0.6.1</div><div c=
lass=3D"gmail_extra">


4 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove=
</div><div class=3D"gmail_extra">Do you want to continue ? [Y/n] y</div><di=
v class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">=3D-=3D-=3D cs=
truct.0.5.2 =3D-=3D-=3D</div>


<div class=3D"gmail_extra">Downloading <a href=3D"https://github.com/mirage=
/ocaml-cstruct/archive/ocaml-cstruct-0.5.2.tar.gz" target=3D"_blank">https:=
//github.com/mirage/ocaml-cstruct/archive/ocaml-cstruct-0.5.2.tar.gz</a>.</=
div>

<div class=3D"gmail_extra">
Creating /Users/stevej/.opam/repo/dev/archives/cstruct.0.5.2+opam.tar.gz.</=
div><div class=3D"gmail_extra">Extracting /Users/stevej/.opam/archives/cstr=
uct.0.5.2+opam.tar.gz.</div><div class=3D"gmail_extra">Building cstruct.0.5=
.2:</div>


<div class=3D"gmail_extra">=A0 make</div><div class=3D"gmail_extra">=A0 mak=
e install</div><div class=3D"gmail_extra">Installing cstruct.0.5.2.</div><d=
iv class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">=3D-=3D-=3D o=
unit.1.1.2 =3D-=3D-=3D</div>


<div class=3D"gmail_extra">Downloading <a href=3D"http://forge.ocamlcore.or=
g/frs/download.php/886/ounit-1.1.2.tar.gz" target=3D"_blank">http://forge.o=
camlcore.org/frs/download.php/886/ounit-1.1.2.tar.gz</a>.</div><div class=
=3D"gmail_extra">

Creating /Users/stevej/.opam/repo/dev/archives/ounit.1.1.2+opam.tar.gz.</di=
v>
<div class=3D"gmail_extra">Extracting /Users/stevej/.opam/archives/ounit.1.=
1.2+opam.tar.gz.</div><div class=3D"gmail_extra">Building ounit.1.1.2:</div=
><div class=3D"gmail_extra">=A0 make build</div><div class=3D"gmail_extra">=
=A0 make install</div>


<div class=3D"gmail_extra">Installing ounit.1.1.2.</div><div class=3D"gmail=
_extra"><br></div><div class=3D"gmail_extra">=3D-=3D-=3D xenstore.1.1.0 =3D=
-=3D-=3D</div><div class=3D"gmail_extra">Downloading <a href=3D"https://git=
hub.com/mirage/ocaml-xenstore/archive/ocaml-xenstore-1.1.0.tar.gz" target=
=3D"_blank">https://github.com/mirage/ocaml-xenstore/archive/ocaml-xenstore=
-1.1.0.tar.gz</a>.</div>


<div class=3D"gmail_extra">Creating /Users/stevej/.opam/repo/dev/archives/x=
enstore.1.1.0+opam.tar.gz.</div><div class=3D"gmail_extra">Extracting /User=
s/stevej/.opam/archives/xenstore.1.1.0+opam.tar.gz.</div><div class=3D"gmai=
l_extra">


Building xenstore.1.1.0:</div><div class=3D"gmail_extra">=A0 make all</div>=
<div class=3D"gmail_extra">=A0 make install</div><div class=3D"gmail_extra"=
>The compilation of xenstore.1.1.0 failed.</div><div class=3D"gmail_extra">=
Uninstalling xenstore.1.1.0:</div>


<div class=3D"gmail_extra">=A0 ocamlfind remove xenstore</div><div class=3D=
"gmail_extra"><br></div><div class=3D"gmail_extra">Due to some errors while=
 processing xenstore.1.1.0, the following actions will NOT be proceeded:</d=
iv>

<div class=3D"gmail_extra">
=A0- install mirage.0.6.1</div><div class=3D"gmail_extra"><br></div><div cl=
ass=3D"gmail_extra">=3D=3D=3D=3D ERROR [while installing xenstore.1.1.0] =
=3D=3D=3D=3D</div><div class=3D"gmail_extra"># command =A0 =A0 =A0 =A0 make=
 all</div><div class=3D"gmail_extra">


# path =A0 =A0 =A0 =A0 =A0 =A0/Users/stevej/.opam/4.01.0dev+mirage-unix/bui=
ld/xenstore.1.1.0</div><div class=3D"gmail_extra"># exit-code =A0 =A0 =A0 2=
</div><div class=3D"gmail_extra"># env-file =A0 =A0 =A0 =A0/Users/stevej/.o=
pam/4.01.0dev+mirage-unix/build/xenstore.1.1.0/xenstore-2dea01.env</div>


<div class=3D"gmail_extra"># stdout-file =A0 =A0 /Users/stevej/.opam/4.01.0=
dev+mirage-unix/build/xenstore.1.1.0/xenstore-2dea01.out</div><div class=3D=
"gmail_extra"># stderr-file =A0 =A0 /Users/stevej/.opam/4.01.0dev+mirage-un=
ix/build/xenstore.1.1.0/xenstore-2dea01.err</div>


<div class=3D"gmail_extra">### stderr ###</div><div class=3D"gmail_extra">W=
: Field &#39;pkg_cstruct_version_lt_0_6_0&#39; is not set: Cannot satisfy v=
ersion constraint on pkg_cstruct: &lt; 0.6.0 (version: 0.6.0)</div><div cla=
ss=3D"gmail_extra">


E: Cannot find findlib package cstruct (&lt; 0.6.0)</div><div class=3D"gmai=
l_extra">E: Failure(&quot;1 configuration error&quot;)</div><div class=3D"g=
mail_extra">make: *** [setup.data] Error 1</div><div class=3D"gmail_extra">=
<br>


</div><div class=3D"gmail_extra">&#39;opam install mirage&#39; failed.</div=
></div><div class=3D"gmail_extra"><br></div></div>

--14dae9340fafddadae04d5770851--


From Richard.Mortier@nottingham.ac.uk Mon Feb 11 20:12:03 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U4zjP-0005Xp-7i (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Mon, 11 Feb 2013 20:12:03 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1444510 
	* 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from engine03-20433-10.icritical.com ([93.159.202.53]:44601)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1U4zjO-0001Nt-q5 (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Mon, 11 Feb 2013 20:12:03 +0000
Received: (qmail 3792 invoked from network); 11 Feb 2013 20:12:00 -0000
Received: from localhost (127.0.0.1)
	by engine03-20433-10.icritical.com with SMTP; 11 Feb 2013 20:12:00 -0000
Received: from engine03-20433-10.icritical.com ([127.0.0.1])
	by localhost (engine03-20433-10.icritical.com [127.0.0.1]) (amavisd-new,
	port 10024) with SMTP id 03364-06 for <cl-mirage@lists.cam.ac.uk>;
	Mon, 11 Feb 2013 20:11:59 +0000 (GMT)
Received: (qmail 2538 invoked by uid 599); 11 Feb 2013 20:11:16 -0000
Received: from unknown (HELO smtp3.nottingham.ac.uk) (128.243.44.55)
	by engine03-20433-10.icritical.com (qpsmtpd/0.28) with ESMTP;
	Mon, 11 Feb 2013 20:11:16 +0000
Received: from uiwexhub02.ad.nottingham.ac.uk ([128.243.15.132])
	by smtp3.nottingham.ac.uk with esmtps (TLSv1:AES128-SHA:128)
	(Exim 4.77) (envelope-from <Richard.Mortier@nottingham.ac.uk>)
	id 1U4zVn-0005xq-9X
	for cl-mirage@lists.cam.ac.uk; Mon, 11 Feb 2013 19:57:59 +0000
From: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
To: cl-mirage List <cl-mirage@lists.cam.ac.uk>
Date: Mon, 11 Feb 2013 19:57:58 +0000
Subject: mirari run
Thread-Topic: mirari run
Thread-Index: Ac4Ikhda+ZpHed06TbixUM0Dn3+Frg==
Message-ID: <5500FB5B-C4DD-4A04-BED1-994E8E14C3A0@nottingham.ac.uk>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, en-GB
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Virus-Scanned: by iCritical at engine03-20433-10.icritical.com
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 20:12:03 -0000
Content-Length: 956
Lines: 20

noticed <http://dl.acm.org/citation.cfm?id=3D168630> -- might be interestin=
g to consider as a capability for mirari ?

(can't pull paper currently because at home and no membership ...)

--=20
Cheers,

R.




This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


From stevej@fruitless.org Mon Feb 11 22:23:18 2013
Received: from ppsw-43.csi.cam.ac.uk ([131.111.8.143])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U51mQ-0000UU-FR (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <stevej@fruitless.org>); Mon, 11 Feb 2013 22:23:18 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.7 from SpamAssassin-3.3.2-1444510 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.223.180 listed in list.dnswl.dnsbl.ja.net]
	*  0.0 HTML_MESSAGE BODY: HTML included in message
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-ie0-f180.google.com ([209.85.223.180]:50416)
	by ppsw-43.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1U51mO-0002a1-om (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <stevej@fruitless.org>); Mon, 11 Feb 2013 22:23:18 +0000
Received: by mail-ie0-f180.google.com with SMTP id bn7so8203277ieb.39
	for <cl-mirage@lists.cam.ac.uk>; Mon, 11 Feb 2013 14:23:15 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=x-received:mime-version:x-originating-ip:in-reply-to:references
	:from:date:message-id:subject:to:cc:content-type:x-gm-message-state;
	bh=MZ2o1qCfGYOraKL+opTqj0PdQRJF5lPf0uEvDjhumpE=;
	b=MC56ZiZy7P7cIWTh+USCFoXWcqHxuW4c/isMUoyQ12g+M3k5yJg9Svs7Km33XXdxV3
	DvsDYE9BCj8FceXNcyyI3tuRuUnrRSDVuU3xcCFwLu1t3egPknF2AbJk7wmbPpg2fVof
	u7/Nlciz2NAhNoKhrVZAVF4cXRVi5tkJU0WlQLCpm4ACgmo78XoMFP681o1WiA8bhbds
	Sid5e1iAfIbx66EG0PTMc7r36SDo+HW9lywyyLGtHq0bi0vHj+WV3FJh/49q1BxWEcGQ
	Ppv4VH43lKqaa2MdqDAdxXuNfLt3U1TWMw7vYAXjX9FV3uFevLfOGvIVYVp9W69l9wG6
	9jJg==
X-Received: by 10.50.34.193 with SMTP id b1mr14539503igj.89.1360621395598;
	Mon, 11 Feb 2013 14:23:15 -0800 (PST)
MIME-Version: 1.0
Received: by 10.50.114.196 with HTTP; Mon, 11 Feb 2013 14:22:55 -0800 (PST)
X-Originating-IP: [75.101.56.72]
In-Reply-To: <CABiHZ_VBVwkRmMvS4+VAteZmrZ4LJE25kMPgWKQ7ooxVL=bgDg@mail.gmail.com>
References: <CABiHZ_VKDnf9awgzQHSD0mQEpxasH9WwLLXMKy+pXx6DxJoqyA@mail.gmail.com>
	<1D8588A0-E18D-4A28-B89A-132E705065BF@gmail.com>
	<14DD7270-7B1A-467B-A684-883430BB9BF2@recoil.org>
	<CABiHZ_VBVwkRmMvS4+VAteZmrZ4LJE25kMPgWKQ7ooxVL=bgDg@mail.gmail.com>
From: Steve Jenson <stevej@fruitless.org>
Date: Mon, 11 Feb 2013 14:22:55 -0800
Message-ID: <CABiHZ_XyeHZ7q+=cESwFaSU0=LyESJutcxrxEw=HkCHeHpRAXQ@mail.gmail.com>
Subject: Re: Trouble installing mirage from OPAM
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: multipart/alternative; boundary=14dae9340faff55d5004d57a5a53
X-Gm-Message-State: ALoCoQmWasphu1kvPkY5wf61npq21iP0SY+gemprqJbQTwrqKZVjSS7j1ZOv1k3Z9tpajPV57Gsd
Cc: cl-mirage@lists.cam.ac.uk, Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2013 22:23:18 -0000
Content-Length: 16361
Lines: 404

--14dae9340faff55d5004d57a5a53
Content-Type: text/plain; charset=ISO-8859-1

After `opam remote add xen-org git://github.com/xen-org/opam-repo-dev`, I
got a little further, as cstruct.0.6.2 is available but `opam install
mirage` fails with the following error:

 /Users/stevej/.opam/4.01.0dev+mirage-unix/bin/ocamlc.opt -c -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml/camlp4 -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/optcomp -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocplib-endian -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocplib-endian -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/cstruct -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/lwt -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/lwt -pp 'camlp4o -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml/camlp4 -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/optcomp optcomp.cma -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocplib-endian -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocplib-endian -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/cstruct -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/lwt -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/lwt -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/cstruct cstruct-syntax.cma -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/lwt lwt-syntax-options.cma -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/lwt lwt-syntax.cma -I
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml str.cma' -I lib -o
lib/io_page.cmi lib/io_page.mli
File "lib/io_page.mli", line 17, characters 9-20:
Error: Unbound type constructor Cstruct.buf
Command exited with code 2.



On Mon, Feb 11, 2013 at 10:25 AM, Steve Jenson <stevej@fruitless.org> wrote:

> On Mon, Feb 11, 2013 at 3:02 AM, Anil Madhavapeddy <anil@recoil.org>wrote:
>
>> On 11 Feb 2013, at 08:58, Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
>> wrote:
>>
>> > Hi Steve,
>> >
>> >>  ./configure --prefix /Users/stevej/.opam/3.12.1+mirage-unix-direct
>> >
>> > The new "official" mirage compiler is now 4.01.0dev+mirage-unix, so you
>> should run 'opam switch 4.01.0dev+mirage-unix'  before installing mirage.
>> Regarding your error, native dynlink was broken with OCaml 3.12.1 on OSX.
>>
>> Hey Steve! Thanks for the reminder...I've yank the 3.12.1 compilers from
>> the OPAM repository, as they're now well deprecated.  The switch to 4.x was
>> quite easy, and there are many, many performance and stability improvements
>> in the new tree.
>>
>> I'd recommend 4.01.0dev+mirage-xen to play with.  It gives you the trunk
>> version with new compiler intrinsics that Pierre put in to optimise
>> handling of low-level int16/32/64s.  It'll be what the first alpha release
>> uses.
>>
>> (documentation update on the website coming as soon as mirari has first
>> release, real soon now!)
>>
>> -anil
>
>
> Happy to be a guinea pig. :-)
>
> I switched to 4.01.0dev+mirage-unix but it looks like xenstore is
> requiring a newer version of cstruct than is provided?
>
> Is `mirage` the correct thing to install if I want to build a mirage app?
> I notice that mirage-www is not in OPAM any longer.
>
> $ opam list |grep mirage
> Available packages for 4.01.0dev+mirage-unix:
> mirage                     --  Mirage stdlib
> mirage-fs                  --  Mirage filesystem utilities
> mirage-net                 --  Mirage TCP/IP networking library
> oasis-mirage               --  This is a fork of OASIS with support for
> native output-obj.
>
> $ opam install mirage
> The following actions will be performed:
>  - install ounit.1.1.2 [required by mirage]
>  - install cstruct.0.5.2 [required by mirage]
>  - install xenstore.1.1.0 [required by mirage]
>  - install mirage.0.6.1
>  4 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to
> remove
> Do you want to continue ? [Y/n] y
>
> =-=-= cstruct.0.5.2 =-=-=
> Downloading
> https://github.com/mirage/ocaml-cstruct/archive/ocaml-cstruct-0.5.2.tar.gz
> .
>  Creating /Users/stevej/.opam/repo/dev/archives/cstruct.0.5.2+opam.tar.gz.
> Extracting /Users/stevej/.opam/archives/cstruct.0.5.2+opam.tar.gz.
> Building cstruct.0.5.2:
>   make
>   make install
> Installing cstruct.0.5.2.
>
> =-=-= ounit.1.1.2 =-=-=
> Downloading
> http://forge.ocamlcore.org/frs/download.php/886/ounit-1.1.2.tar.gz.
> Creating /Users/stevej/.opam/repo/dev/archives/ounit.1.1.2+opam.tar.gz.
> Extracting /Users/stevej/.opam/archives/ounit.1.1.2+opam.tar.gz.
> Building ounit.1.1.2:
>   make build
>   make install
> Installing ounit.1.1.2.
>
> =-=-= xenstore.1.1.0 =-=-=
> Downloading
> https://github.com/mirage/ocaml-xenstore/archive/ocaml-xenstore-1.1.0.tar.gz
> .
> Creating /Users/stevej/.opam/repo/dev/archives/xenstore.1.1.0+opam.tar.gz.
> Extracting /Users/stevej/.opam/archives/xenstore.1.1.0+opam.tar.gz.
> Building xenstore.1.1.0:
>   make all
>   make install
> The compilation of xenstore.1.1.0 failed.
> Uninstalling xenstore.1.1.0:
>   ocamlfind remove xenstore
>
> Due to some errors while processing xenstore.1.1.0, the following actions
> will NOT be proceeded:
>   - install mirage.0.6.1
>
> ==== ERROR [while installing xenstore.1.1.0] ====
> # command         make all
> # path
>  /Users/stevej/.opam/4.01.0dev+mirage-unix/build/xenstore.1.1.0
> # exit-code       2
> # env-file
>  /Users/stevej/.opam/4.01.0dev+mirage-unix/build/xenstore.1.1.0/xenstore-2dea01.env
> # stdout-file
> /Users/stevej/.opam/4.01.0dev+mirage-unix/build/xenstore.1.1.0/xenstore-2dea01.out
> # stderr-file
> /Users/stevej/.opam/4.01.0dev+mirage-unix/build/xenstore.1.1.0/xenstore-2dea01.err
> ### stderr ###
> W: Field 'pkg_cstruct_version_lt_0_6_0' is not set: Cannot satisfy version
> constraint on pkg_cstruct: < 0.6.0 (version: 0.6.0)
> E: Cannot find findlib package cstruct (< 0.6.0)
> E: Failure("1 configuration error")
> make: *** [setup.data] Error 1
>
> 'opam install mirage' failed.
>
>

--14dae9340faff55d5004d57a5a53
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">After `opam remote add xen-org git://<a href=3D"http://git=
hub.com/xen-org/opam-repo-dev`">github.com/xen-org/opam-repo-dev`</a>, I go=
t a little further, as=A0cstruct.0.6.2 is available but `opam install mirag=
e` fails with the following error:<div>

<br></div><div><div>=A0/Users/stevej/.opam/4.01.0dev+mirage-unix/bin/ocamlc=
.opt -c -I /Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml -I /Users/st=
evej/.opam/4.01.0dev+mirage-unix/lib/ocaml -I /Users/stevej/.opam/4.01.0dev=
+mirage-unix/lib/ocaml/camlp4 -I /Users/stevej/.opam/4.01.0dev+mirage-unix/=
lib/optcomp -I /Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocplib-endian =
-I /Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocplib-endian -I /Users/st=
evej/.opam/4.01.0dev+mirage-unix/lib/cstruct -I /Users/stevej/.opam/4.01.0d=
ev+mirage-unix/lib/lwt -I /Users/stevej/.opam/4.01.0dev+mirage-unix/lib/lwt=
 -pp &#39;camlp4o -I /Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml -I=
 /Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml -I /Users/stevej/.opam=
/4.01.0dev+mirage-unix/lib/ocaml/camlp4 -I /Users/stevej/.opam/4.01.0dev+mi=
rage-unix/lib/optcomp optcomp.cma -I /Users/stevej/.opam/4.01.0dev+mirage-u=
nix/lib/ocplib-endian -I /Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocpl=
ib-endian -I /Users/stevej/.opam/4.01.0dev+mirage-unix/lib/cstruct -I /User=
s/stevej/.opam/4.01.0dev+mirage-unix/lib/lwt -I /Users/stevej/.opam/4.01.0d=
ev+mirage-unix/lib/lwt -I /Users/stevej/.opam/4.01.0dev+mirage-unix/lib/cst=
ruct cstruct-syntax.cma -I /Users/stevej/.opam/4.01.0dev+mirage-unix/lib/lw=
t lwt-syntax-options.cma -I /Users/stevej/.opam/4.01.0dev+mirage-unix/lib/l=
wt lwt-syntax.cma -I /Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml st=
r.cma&#39; -I lib -o lib/io_page.cmi lib/io_page.mli</div>

<div>File &quot;lib/io_page.mli&quot;, line 17, characters 9-20:</div><div>=
Error: Unbound type constructor Cstruct.buf</div><div>Command exited with c=
ode 2.</div></div><div><br></div></div><div class=3D"gmail_extra"><br><br>

<div class=3D"gmail_quote">On Mon, Feb 11, 2013 at 10:25 AM, Steve Jenson <=
span dir=3D"ltr">&lt;<a href=3D"mailto:stevej@fruitless.org" target=3D"_bla=
nk">stevej@fruitless.org</a>&gt;</span> wrote:<br><blockquote class=3D"gmai=
l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left=
:1ex">

<div dir=3D"ltr"><div><div class=3D"h5">On Mon, Feb 11, 2013 at 3:02 AM, An=
il Madhavapeddy <span dir=3D"ltr">&lt;<a href=3D"mailto:anil@recoil.org" ta=
rget=3D"_blank">anil@recoil.org</a>&gt;</span> wrote:<br><div class=3D"gmai=
l_extra">

<div class=3D"gmail_quote">

<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
adding-left:1ex"><div>On 11 Feb 2013, at 08:58, Thomas Gazagnaire &lt;<a hr=
ef=3D"mailto:thomas.gazagnaire@gmail.com" target=3D"_blank">thomas.gazagnai=
re@gmail.com</a>&gt; wrote:<br>




<br>
&gt; Hi Steve,<br>
&gt;<br>
&gt;&gt; =A0./configure --prefix /Users/stevej/.opam/3.12.1+mirage-unix-dir=
ect<br>
&gt;<br>
&gt; The new &quot;official&quot; mirage compiler is now 4.01.0dev+mirage-u=
nix, so you should run &#39;opam switch 4.01.0dev+mirage-unix&#39; =A0befor=
e installing mirage. Regarding your error, native dynlink was broken with O=
Caml 3.12.1 on OSX.<br>




<br>
</div>Hey Steve! Thanks for the reminder...I&#39;ve yank the 3.12.1 compile=
rs from the OPAM repository, as they&#39;re now well deprecated. =A0The swi=
tch to 4.x was quite easy, and there are many, many performance and stabili=
ty improvements in the new tree.<br>




<br>
I&#39;d recommend 4.01.0dev+mirage-xen to play with. =A0It gives you the tr=
unk version with new compiler intrinsics that Pierre put in to optimise han=
dling of low-level int16/32/64s. =A0It&#39;ll be what the first alpha relea=
se uses.<br>




<br>
(documentation update on the website coming as soon as mirari has first rel=
ease, real soon now!)<br>
<span><font color=3D"#888888"><br>
-anil</font></span></blockquote></div><br></div></div></div><div class=3D"g=
mail_extra">Happy to be a guinea pig. :-)</div><div class=3D"gmail_extra"><=
br></div><div class=3D"gmail_extra">I switched to 4.01.0dev+mirage-unix=A0b=
ut it looks like xenstore is requiring a newer version of cstruct than is p=
rovided?</div>


<div class=3D"gmail_extra">
<br></div><div class=3D"gmail_extra">Is `mirage` the correct thing to insta=
ll if I want to build a mirage app? I notice that mirage-www is not in OPAM=
 any longer.</div><div class=3D"gmail_extra"><br></div><div class=3D"gmail_=
extra">


<div class=3D"gmail_extra">$ opam list |grep mirage</div><div class=3D"gmai=
l_extra">
Available packages for 4.01.0dev+mirage-unix:</div><div class=3D"gmail_extr=
a">mirage =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -- =A0Mirage stdlib</div>=
<div class=3D"gmail_extra">mirage-fs =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-- =
=A0Mirage filesystem utilities</div><div class=3D"gmail_extra">



mirage-net =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -- =A0Mirage TCP/IP networking l=
ibrary</div><div class=3D"gmail_extra">oasis-mirage =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 -- =A0This is a fork of OASIS with support for native output-obj.</div=
></div><div class=3D"gmail_extra">



<br></div><div class=3D"gmail_extra"><div class=3D"im"><div class=3D"gmail_=
extra">$ opam install mirage</div><div class=3D"gmail_extra">The following =
actions will be performed:</div></div><div class=3D"gmail_extra">=A0- insta=
ll ounit.1.1.2 [required by mirage]</div>



<div class=3D"gmail_extra">=A0- install cstruct.0.5.2 [required by mirage]<=
/div><div class=3D"gmail_extra">=A0- install xenstore.1.1.0 [required by mi=
rage]</div><div class=3D"im"><div class=3D"gmail_extra">=A0- install mirage=
.0.6.1</div>

<div class=3D"gmail_extra">

4 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove=
</div><div class=3D"gmail_extra">Do you want to continue ? [Y/n] y</div><di=
v class=3D"gmail_extra"><br></div></div><div class=3D"gmail_extra">=3D-=3D-=
=3D cstruct.0.5.2 =3D-=3D-=3D</div>



<div class=3D"gmail_extra">Downloading <a href=3D"https://github.com/mirage=
/ocaml-cstruct/archive/ocaml-cstruct-0.5.2.tar.gz" target=3D"_blank">https:=
//github.com/mirage/ocaml-cstruct/archive/ocaml-cstruct-0.5.2.tar.gz</a>.</=
div>


<div class=3D"gmail_extra">
Creating /Users/stevej/.opam/repo/dev/archives/cstruct.0.5.2+opam.tar.gz.</=
div><div class=3D"gmail_extra">Extracting /Users/stevej/.opam/archives/cstr=
uct.0.5.2+opam.tar.gz.</div><div class=3D"gmail_extra">Building cstruct.0.5=
.2:</div>



<div class=3D"gmail_extra">=A0 make</div><div class=3D"gmail_extra">=A0 mak=
e install</div><div class=3D"gmail_extra">Installing cstruct.0.5.2.</div><d=
iv class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">=3D-=3D-=3D o=
unit.1.1.2 =3D-=3D-=3D</div>



<div class=3D"gmail_extra">Downloading <a href=3D"http://forge.ocamlcore.or=
g/frs/download.php/886/ounit-1.1.2.tar.gz" target=3D"_blank">http://forge.o=
camlcore.org/frs/download.php/886/ounit-1.1.2.tar.gz</a>.</div><div class=
=3D"gmail_extra">


Creating /Users/stevej/.opam/repo/dev/archives/ounit.1.1.2+opam.tar.gz.</di=
v>
<div class=3D"gmail_extra">Extracting /Users/stevej/.opam/archives/ounit.1.=
1.2+opam.tar.gz.</div><div class=3D"gmail_extra">Building ounit.1.1.2:</div=
><div class=3D"gmail_extra">=A0 make build</div><div class=3D"gmail_extra">=
=A0 make install</div>



<div class=3D"gmail_extra">Installing ounit.1.1.2.</div><div class=3D"gmail=
_extra"><br></div><div class=3D"gmail_extra">=3D-=3D-=3D xenstore.1.1.0 =3D=
-=3D-=3D</div><div class=3D"gmail_extra">Downloading <a href=3D"https://git=
hub.com/mirage/ocaml-xenstore/archive/ocaml-xenstore-1.1.0.tar.gz" target=
=3D"_blank">https://github.com/mirage/ocaml-xenstore/archive/ocaml-xenstore=
-1.1.0.tar.gz</a>.</div>



<div class=3D"gmail_extra">Creating /Users/stevej/.opam/repo/dev/archives/x=
enstore.1.1.0+opam.tar.gz.</div><div class=3D"gmail_extra">Extracting /User=
s/stevej/.opam/archives/xenstore.1.1.0+opam.tar.gz.</div><div class=3D"gmai=
l_extra">



Building xenstore.1.1.0:</div><div class=3D"gmail_extra">=A0 make all</div>=
<div class=3D"gmail_extra">=A0 make install</div><div class=3D"gmail_extra"=
>The compilation of xenstore.1.1.0 failed.</div><div class=3D"gmail_extra">=
Uninstalling xenstore.1.1.0:</div>



<div class=3D"gmail_extra">=A0 ocamlfind remove xenstore</div><div class=3D=
"gmail_extra"><br></div><div class=3D"gmail_extra">Due to some errors while=
 processing xenstore.1.1.0, the following actions will NOT be proceeded:</d=
iv>


<div class=3D"gmail_extra">
=A0- install mirage.0.6.1</div><div class=3D"gmail_extra"><br></div><div cl=
ass=3D"gmail_extra">=3D=3D=3D=3D ERROR [while installing xenstore.1.1.0] =
=3D=3D=3D=3D</div><div class=3D"gmail_extra"># command =A0 =A0 =A0 =A0 make=
 all</div><div class=3D"gmail_extra">



# path =A0 =A0 =A0 =A0 =A0 =A0/Users/stevej/.opam/4.01.0dev+mirage-unix/bui=
ld/xenstore.1.1.0</div><div class=3D"gmail_extra"># exit-code =A0 =A0 =A0 2=
</div><div class=3D"gmail_extra"># env-file =A0 =A0 =A0 =A0/Users/stevej/.o=
pam/4.01.0dev+mirage-unix/build/xenstore.1.1.0/xenstore-2dea01.env</div>



<div class=3D"gmail_extra"># stdout-file =A0 =A0 /Users/stevej/.opam/4.01.0=
dev+mirage-unix/build/xenstore.1.1.0/xenstore-2dea01.out</div><div class=3D=
"gmail_extra"># stderr-file =A0 =A0 /Users/stevej/.opam/4.01.0dev+mirage-un=
ix/build/xenstore.1.1.0/xenstore-2dea01.err</div>



<div class=3D"gmail_extra">### stderr ###</div><div class=3D"gmail_extra">W=
: Field &#39;pkg_cstruct_version_lt_0_6_0&#39; is not set: Cannot satisfy v=
ersion constraint on pkg_cstruct: &lt; 0.6.0 (version: 0.6.0)</div><div cla=
ss=3D"gmail_extra">



E: Cannot find findlib package cstruct (&lt; 0.6.0)</div><div class=3D"gmai=
l_extra">E: Failure(&quot;1 configuration error&quot;)</div><div class=3D"g=
mail_extra">make: *** [setup.data] Error 1</div><div class=3D"gmail_extra">=
<br>



</div><div class=3D"gmail_extra">&#39;opam install mirage&#39; failed.</div=
></div><div class=3D"gmail_extra"><br></div></div>
</blockquote></div><br></div>

--14dae9340faff55d5004d57a5a53--


From anil@recoil.org Tue Feb 12 16:11:38 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U5ISI-0003xz-Ig (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Tue, 12 Feb 2013 16:11:38 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1444680
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:27835
	helo=dark.recoil.org)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1U5ISH-0007n1-qg (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Tue, 12 Feb 2013 16:11:38 +0000
Received: (qmail 10512 invoked by uid 634); 12 Feb 2013 16:11:36 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO [10.0.1.83]) (128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Tue, 12 Feb 2013 16:11:36 +0000
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: Trouble installing mirage from OPAM
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CABiHZ_XyeHZ7q+=cESwFaSU0=LyESJutcxrxEw=HkCHeHpRAXQ@mail.gmail.com>
Date: Tue, 12 Feb 2013 16:11:37 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <F2300FB4-C0DA-4D31-9A48-6D1AB564A6E7@recoil.org>
References: <CABiHZ_VKDnf9awgzQHSD0mQEpxasH9WwLLXMKy+pXx6DxJoqyA@mail.gmail.com>
	<1D8588A0-E18D-4A28-B89A-132E705065BF@gmail.com>
	<14DD7270-7B1A-467B-A684-883430BB9BF2@recoil.org>
	<CABiHZ_VBVwkRmMvS4+VAteZmrZ4LJE25kMPgWKQ7ooxVL=bgDg@mail.gmail.com>
	<CABiHZ_XyeHZ7q+=cESwFaSU0=LyESJutcxrxEw=HkCHeHpRAXQ@mail.gmail.com>
To: Steve Jenson <stevej@fruitless.org>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: cl-mirage@lists.cam.ac.uk, Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 12 Feb 2013 16:11:38 -0000
Content-Length: 6692
Lines: 175

Our constraints are all over the place, due to the development remotes
getting out of sync.  I've just fixed the Jenkins server (which ran out
of inodes), and the constraints now, and then a full test run will give
us a working version.

I've also switched mirage-www over to use Mirari now, which simplifies
the application build scripts dramatically.

Update shortly once all these builds are finished and packages are
pushed...

-anil

On 11 Feb 2013, at 22:22, Steve Jenson <stevej@fruitless.org> wrote:

> After `opam remote add xen-org =
git://github.com/xen-org/opam-repo-dev`, I got a little further, as =
cstruct.0.6.2 is available but `opam install mirage` fails with the =
following error:
>=20
>  /Users/stevej/.opam/4.01.0dev+mirage-unix/bin/ocamlc.opt -c -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml/camlp4 -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/optcomp -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocplib-endian -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocplib-endian -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/cstruct -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/lwt -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/lwt -pp 'camlp4o -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml/camlp4 -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/optcomp optcomp.cma -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocplib-endian -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocplib-endian -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/cstruct -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/lwt -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/lwt -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/cstruct cstruct-syntax.cma =
-I /Users/stevej/.opam/4.01.0dev+mirage-unix/lib/lwt =
lwt-syntax-options.cma -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/lwt lwt-syntax.cma -I =
/Users/stevej/.opam/4.01.0dev+mirage-unix/lib/ocaml str.cma' -I lib -o =
lib/io_page.cmi lib/io_page.mli
> File "lib/io_page.mli", line 17, characters 9-20:
> Error: Unbound type constructor Cstruct.buf
> Command exited with code 2.
>=20
>=20
>=20
> On Mon, Feb 11, 2013 at 10:25 AM, Steve Jenson <stevej@fruitless.org> =
wrote:
> On Mon, Feb 11, 2013 at 3:02 AM, Anil Madhavapeddy <anil@recoil.org> =
wrote:
> On 11 Feb 2013, at 08:58, Thomas Gazagnaire =
<thomas.gazagnaire@gmail.com> wrote:
>=20
> > Hi Steve,
> >
> >>  ./configure --prefix /Users/stevej/.opam/3.12.1+mirage-unix-direct
> >
> > The new "official" mirage compiler is now 4.01.0dev+mirage-unix, so =
you should run 'opam switch 4.01.0dev+mirage-unix'  before installing =
mirage. Regarding your error, native dynlink was broken with OCaml =
3.12.1 on OSX.
>=20
> Hey Steve! Thanks for the reminder...I've yank the 3.12.1 compilers =
from the OPAM repository, as they're now well deprecated.  The switch to =
4.x was quite easy, and there are many, many performance and stability =
improvements in the new tree.
>=20
> I'd recommend 4.01.0dev+mirage-xen to play with.  It gives you the =
trunk version with new compiler intrinsics that Pierre put in to =
optimise handling of low-level int16/32/64s.  It'll be what the first =
alpha release uses.
>=20
> (documentation update on the website coming as soon as mirari has =
first release, real soon now!)
>=20
> -anil
>=20
> Happy to be a guinea pig. :-)
>=20
> I switched to 4.01.0dev+mirage-unix but it looks like xenstore is =
requiring a newer version of cstruct than is provided?
>=20
> Is `mirage` the correct thing to install if I want to build a mirage =
app? I notice that mirage-www is not in OPAM any longer.
>=20
> $ opam list |grep mirage
> Available packages for 4.01.0dev+mirage-unix:
> mirage                     --  Mirage stdlib
> mirage-fs                  --  Mirage filesystem utilities
> mirage-net                 --  Mirage TCP/IP networking library
> oasis-mirage               --  This is a fork of OASIS with support =
for native output-obj.
>=20
> $ opam install mirage
> The following actions will be performed:
>  - install ounit.1.1.2 [required by mirage]
>  - install cstruct.0.5.2 [required by mirage]
>  - install xenstore.1.1.0 [required by mirage]
>  - install mirage.0.6.1
> 4 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to =
remove
> Do you want to continue ? [Y/n] y
>=20
> =3D-=3D-=3D cstruct.0.5.2 =3D-=3D-=3D
> Downloading =
https://github.com/mirage/ocaml-cstruct/archive/ocaml-cstruct-0.5.2.tar.gz=
.
> Creating =
/Users/stevej/.opam/repo/dev/archives/cstruct.0.5.2+opam.tar.gz.
> Extracting /Users/stevej/.opam/archives/cstruct.0.5.2+opam.tar.gz.
> Building cstruct.0.5.2:
>   make
>   make install
> Installing cstruct.0.5.2.
>=20
> =3D-=3D-=3D ounit.1.1.2 =3D-=3D-=3D
> Downloading =
http://forge.ocamlcore.org/frs/download.php/886/ounit-1.1.2.tar.gz.
> Creating =
/Users/stevej/.opam/repo/dev/archives/ounit.1.1.2+opam.tar.gz.
> Extracting /Users/stevej/.opam/archives/ounit.1.1.2+opam.tar.gz.
> Building ounit.1.1.2:
>   make build
>   make install
> Installing ounit.1.1.2.
>=20
> =3D-=3D-=3D xenstore.1.1.0 =3D-=3D-=3D
> Downloading =
https://github.com/mirage/ocaml-xenstore/archive/ocaml-xenstore-1.1.0.tar.=
gz.
> Creating =
/Users/stevej/.opam/repo/dev/archives/xenstore.1.1.0+opam.tar.gz.
> Extracting /Users/stevej/.opam/archives/xenstore.1.1.0+opam.tar.gz.
> Building xenstore.1.1.0:
>   make all
>   make install
> The compilation of xenstore.1.1.0 failed.
> Uninstalling xenstore.1.1.0:
>   ocamlfind remove xenstore
>=20
> Due to some errors while processing xenstore.1.1.0, the following =
actions will NOT be proceeded:
>  - install mirage.0.6.1
>=20
> =3D=3D=3D=3D ERROR [while installing xenstore.1.1.0] =3D=3D=3D=3D
> # command         make all
> # path            =
/Users/stevej/.opam/4.01.0dev+mirage-unix/build/xenstore.1.1.0
> # exit-code       2
> # env-file        =
/Users/stevej/.opam/4.01.0dev+mirage-unix/build/xenstore.1.1.0/xenstore-2d=
ea01.env
> # stdout-file     =
/Users/stevej/.opam/4.01.0dev+mirage-unix/build/xenstore.1.1.0/xenstore-2d=
ea01.out
> # stderr-file     =
/Users/stevej/.opam/4.01.0dev+mirage-unix/build/xenstore.1.1.0/xenstore-2d=
ea01.err
> ### stderr ###
> W: Field 'pkg_cstruct_version_lt_0_6_0' is not set: Cannot satisfy =
version constraint on pkg_cstruct: < 0.6.0 (version: 0.6.0)
> E: Cannot find findlib package cstruct (< 0.6.0)
> E: Failure("1 configuration error")
> make: *** [setup.data] Error 1
>=20
> 'opam install mirage' failed.
>=20
>=20



From anil@recoil.org Thu Feb 14 22:03:15 2013
Received: from ppsw-41.csi.cam.ac.uk ([131.111.8.141])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U66tf-0003ej-0L (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 14 Feb 2013 22:03:15 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1445505
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:19929
	helo=dark.recoil.org)
	by ppsw-41.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with smtp id 1U66td-0006dP-Rb (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 14 Feb 2013 22:03:14 +0000
Received: (qmail 18310 invoked by uid 634); 14 Feb 2013 22:03:13 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.38]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Thu, 14 Feb 2013 22:03:12 +0000
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: xenopsd success for booting mirage kernels
Message-Id: <21A4B9DB-9B53-433B-825E-1F801A531042@recoil.org>
Date: Thu, 14 Feb 2013 22:03:11 +0000
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>,
	"xen-api@lists.xen.org" <xen-api@lists.xen.org>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 14 Feb 2013 22:03:15 -0000
Content-Length: 985
Lines: 26

I followed Dave's instructions at:
http://wiki.xen.org/wiki/Building_Xenopsd

...and got xenopsd running on my Ubuntu/raring laptop and booting a =
Mirage kernel very nicely.  A few minor things cropped up:

- there's no mem-set command, so I had to restart xend to balloon my =
dom0 down.

- the VM UUIDs are hidden, but the cmdline only takes the VM name.  This =
means I can add multiple VMs with the same text name, but only address =
the last one.

- a few of the packages in xen-org/opam-repo-dev are upstream, so I sent =
a pull req to remove the development ones from there.

It's a bit of a pain having to sudo to run the xenops-cli in development =
mode, since I then have to hardcode the OPAM path.  It would be =
convenient if xenopsd listened on localhost HTTP with auth instead, so =
that other tools (such as the Mirage mirari execution frontend) could =
work more easily.  Thoughts on that?

Overall, really nice to see xapi being split up so effectively now!

-anil=


From Dave.Scott@eu.citrix.com Thu Feb 14 22:25:18 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U67F0-0003yB-IX (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk (return-path <Dave.Scott@eu.citrix.com>);
	Thu, 14 Feb 2013 22:25:18 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.0 from SpamAssassin-3.3.2-1445505 
	* -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from smtp.eu.citrix.com ([46.33.159.39]:1722)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1U67Ev-00012N-YP (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk (return-path <Dave.Scott@eu.citrix.com>);
	Thu, 14 Feb 2013 22:25:18 +0000
X-IronPort-AV: E=Sophos;i="4.84,666,1355097600"; 
   d="scan'208";a="1485335"
Received: from lonpmailmx01.citrite.net ([10.30.203.162])
	by LONPIPO01.EU.CITRIX.COM with ESMTP/TLS/RC4-MD5;
	14 Feb 2013 22:25:13 +0000
Received: from LONPMAILBOX01.citrite.net ([10.30.224.160]) by
	LONPMAILMX01.citrite.net ([10.30.203.162]) with mapi; Thu, 14 Feb 2013
	22:25:12 +0000
From: Dave Scott <Dave.Scott@eu.citrix.com>
To: Anil Madhavapeddy <anil@recoil.org>
Date: Thu, 14 Feb 2013 22:25:11 +0000
Subject: Re: xenopsd success for booting mirage kernels
Thread-Topic: xenopsd success for booting mirage kernels
Thread-Index: Ac4LAifeeJJBfve6Q0SqTwG5NzHiAA==
Message-ID: <B044E97A-F12C-4C56-9489-103F339DA991@eu.citrix.com>
References: <21A4B9DB-9B53-433B-825E-1F801A531042@recoil.org>
In-Reply-To: <21A4B9DB-9B53-433B-825E-1F801A531042@recoil.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>,
	"xen-api@lists.xen.org" <xen-api@lists.xen.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 14 Feb 2013 22:25:18 -0000
Content-Length: 1731
Lines: 54

Hi,

Glad you managed to get it to work!

On Feb 14, 2013, at 10:03 PM, "Anil Madhavapeddy" <anil@recoil.org> wrote:

> I followed Dave's instructions at:
> http://wiki.xen.org/wiki/Building_Xenopsd
>=20
> ...and got xenopsd running on my Ubuntu/raring laptop and booting a Mirag=
e kernel very nicely.  A few minor things cropped up:
>=20
> - there's no mem-set command, so I had to restart xend to balloon my dom0=
 down.

Yeah, I've been using "xl". However I just packaged squeezed, the memory ba=
llooning daemon... If this is working properly then it'll balloon dom0 down=
-- I'll test this in a while.

>=20
> - the VM UUIDs are hidden, but the cmdline only takes the VM name.  This =
means I can add multiple VMs with the same text name, but only address the =
last one.

Oops, probably should accept both names and uuids. To clean up you can dele=
te the json files from /var/run/nonpersistent/xenops if you need to.

>=20
> - a few of the packages in xen-org/opam-repo-dev are upstream, so I sent =
a pull req to remove the development ones from there.

Great

>=20
> It's a bit of a pain having to sudo to run the xenops-cli in development =
mode, since I then have to hardcode the OPAM path.  It would be convenient =
if xenopsd listened on localhost HTTP with auth instead, so that other tool=
s (such as the Mirage mirari execution frontend) could work more easily.  T=
houghts on that?

Will mirari talk the xenops API directly? In my dev branch I automatically =
chgrp'd the xenops socket to the "xapi" group to give me access without sud=
o-- would that help?

>=20
> Overall, really nice to see xapi being split up so effectively now!

Feel free to bring issues up in the tracker! :-)

Cheers,
Dave
>=20
> -anil


From anil@recoil.org Fri Feb 15 15:02:55 2013
Received: from ppsw-42.csi.cam.ac.uk ([131.111.8.142])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U6MoR-0006f9-EB (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Fri, 15 Feb 2013 15:02:55 +0000
X-Cam-SpamDetails: score -0.1 from SpamAssassin-3.3.2-1446069 
	* -0.1 BAYES_00 BODY: Bayes spam probability is 0 to 1%
	*      [score: 0.0000]
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:29307
	helo=dark.recoil.org)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1U6MoR-000139-6j (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Fri, 15 Feb 2013 15:02:55 +0000
Received: (qmail 29189 invoked by uid 634); 15 Feb 2013 15:02:54 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO [10.0.1.83]) (128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Fri, 15 Feb 2013 15:02:53 +0000
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: xenopsd success for booting mirage kernels
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <B044E97A-F12C-4C56-9489-103F339DA991@eu.citrix.com>
Date: Fri, 15 Feb 2013 15:02:55 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <EAD18B5F-85EB-45A7-A155-39DD8AF70C65@recoil.org>
References: <21A4B9DB-9B53-433B-825E-1F801A531042@recoil.org>
	<B044E97A-F12C-4C56-9489-103F339DA991@eu.citrix.com>
To: Dave Scott <Dave.Scott@eu.citrix.com>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>,
	"xen-api@lists.xen.org" <xen-api@lists.xen.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Fri, 15 Feb 2013 15:02:55 -0000
Content-Length: 1876
Lines: 46

On 14 Feb 2013, at 22:25, Dave Scott <Dave.Scott@eu.citrix.com> wrote:
>=20
> Yeah, I've been using "xl". However I just packaged squeezed, the =
memory ballooning daemon... If this is working properly then it'll =
balloon dom0 down-- I'll test this in a while.

Superb; xl failed to set the memory for some other reason (my notes are =
at home), but I'll ignore that in favour of squeezed.

>>=20
>> - the VM UUIDs are hidden, but the cmdline only takes the VM name.  =
This means I can add multiple VMs with the same text name, but only =
address the last one.
>=20
> Oops, probably should accept both names and uuids. To clean up you can =
delete the json files from /var/run/nonpersistent/xenops if you need to.

Sounds good. What do you think about just defaulting it to the memory fs =
instead of the filesystem one to be even more zero-configuration by =
default?

> Will mirari talk the xenops API directly? In my dev branch I =
automatically chgrp'd the xenops socket to the "xapi" group to give me =
access without sudo-- would that help?

Ideally, yes.  The xenops-cli JSON interface is very simple to use, and =
it would be easier/nicer to just manage the lifecycle of the VM =
directly.

Do be careful about depending on the filesystem permissions for domain =
sockets.  Linux respects this, but traditionally they've been ignored by =
BSD variants.

How about listening on HTTP with a RESTful interface?  That would make =
debugging via curl quite easy.  Just need to write a nice =
cohttp_rest.ml, perhaps as a lens?

(PS: could you upstream the Cohttp_posix_unbuffered_io when you get a =
chance?  I need to think about how to best support this in the overall =
interface.  You're using it to be able to pass off the fd to another =
process, but does this also handle the case of weird body encodings that =
require knowledge from the HTTP headers?)


-anil=


From anil@recoil.org Tue Feb 19 12:11:53 2013
Received: from ppsw-41.csi.cam.ac.uk ([131.111.8.141])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U7m37-0005Ym-0a (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Tue, 19 Feb 2013 12:11:53 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1447148
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:3771
	helo=dark.recoil.org)
	by ppsw-41.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with smtp id 1U7m31-0000AJ-SI (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Tue, 19 Feb 2013 12:11:52 +0000
Received: (qmail 23231 invoked by uid 634); 19 Feb 2013 12:11:46 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.38]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Tue, 19 Feb 2013 12:11:46 +0000
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: pathos: pathological http server
Message-Id: <B95271F2-2B54-4773-B6E7-409FC8D938D3@recoil.org>
Date: Tue, 19 Feb 2013 12:11:45 +0000
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 19 Feb 2013 12:11:53 -0000
Content-Length: 212
Lines: 8

An interesting way to test the corners of our HTTP library:
http://cortesi.github.com/pathod/

Are there any others like this for, e.g., TCP? (Balraj, I'm thinking of =
your 1-byte write netfront test).

-anil=


From Richard.Mortier@nottingham.ac.uk Wed Feb 20 02:29:00 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U7zQa-0007jQ-4E (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Wed, 20 Feb 2013 02:29:00 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1447148 
	* 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
	blocked.
	* See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
	*       for more information. *      [URIs: github.com]
	* 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from engine04-20433-4.icritical.com ([195.62.217.152]:56682)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with smtp id 1U7zQZ-0007Ih-XC (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Wed, 20 Feb 2013 02:29:00 +0000
Received: (qmail 21465 invoked from network); 20 Feb 2013 02:28:56 -0000
Received: from localhost (127.0.0.1)
	by engine04-20433-4.icritical.com with SMTP; 20 Feb 2013 02:28:56 -0000
Received: from engine04-20433-4.icritical.com ([127.0.0.1])
	by localhost (engine04-20433-4.icritical.com [127.0.0.1]) (amavisd-new,
	port 10024) with SMTP id 20266-03 for <cl-mirage@lists.cam.ac.uk>;
	Wed, 20 Feb 2013 02:28:54 +0000 (GMT)
Received: (qmail 21450 invoked by uid 599); 20 Feb 2013 02:28:54 -0000
Received: from unknown (HELO smtp3.nottingham.ac.uk) (128.243.44.55)
	by engine04-20433-4.icritical.com (qpsmtpd/0.28) with ESMTP;
	Wed, 20 Feb 2013 02:28:54 +0000
Received: from uiwexhub02.ad.nottingham.ac.uk ([128.243.15.132])
	by smtp3.nottingham.ac.uk with esmtps (TLSv1:AES128-SHA:128)
	(Exim 4.77) (envelope-from <Richard.Mortier@nottingham.ac.uk>)
	id 1U7zQV-0005DM-EF
	for cl-mirage@lists.cam.ac.uk; Wed, 20 Feb 2013 02:28:55 +0000
From: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Date: Wed, 20 Feb 2013 02:28:54 +0000
Subject: Re: pathos: pathological http server
Thread-Topic: pathos: pathological http server
Thread-Index: Ac4PEgeHwg1f55W+TRKodCvdCzw1TA==
Message-ID: <3458913A-EF5C-4193-BB8F-E5093DAA70A9@nottingham.ac.uk>
References: <B95271F2-2B54-4773-B6E7-409FC8D938D3@recoil.org>
In-Reply-To: <B95271F2-2B54-4773-B6E7-409FC8D938D3@recoil.org>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, en-GB
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Virus-Scanned: by iCritical at engine04-20433-4.icritical.com
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 20 Feb 2013 02:29:00 -0000
Content-Length: 1258
Lines: 30

i recall a paper from vern about bro where they talked about various attack=
s against stacks (overlapping segments and such like). can bro be used/scri=
pted in some way to provide that sort of thing for tcp?

On 19 Feb 2013, at 20:11, Anil Madhavapeddy wrote:

> An interesting way to test the corners of our HTTP library:
> http://cortesi.github.com/pathod/
>=20
> Are there any others like this for, e.g., TCP? (Balraj, I'm thinking of y=
our 1-byte write netfront test).
>=20
> -anil


--=20
Cheers,

R.




This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


From stevej@fruitless.org Wed Feb 20 04:58:24 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U81lA-00028u-Sx (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <stevej@fruitless.org>); Wed, 20 Feb 2013 04:58:24 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.7 from SpamAssassin-3.3.2-1447627 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.223.182 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
	blocked.
	* See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
	*       for more information. *      [URIs: github.com]
	*  0.0 HTML_MESSAGE BODY: HTML included in message
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-ie0-f182.google.com ([209.85.223.182]:50755)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1U81l9-000401-Xq (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <stevej@fruitless.org>); Wed, 20 Feb 2013 04:58:24 +0000
Received: by mail-ie0-f182.google.com with SMTP id k14so9391067iea.41
	for <cl-mirage@lists.cam.ac.uk>; Tue, 19 Feb 2013 20:58:22 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=x-received:mime-version:x-originating-ip:in-reply-to:references
	:from:date:message-id:subject:to:cc:content-type:x-gm-message-state;
	bh=v06FeDzM69gg7FD9T2WD00pT4Ebq+p/EyvTczSWi3Is=;
	b=BIxkTMkZdldxgTrC7yzqfhUC/yfwGZz5IzT/1LtwddaEvWMTEOx4Rr5cHk0Xpf5/ix
	nEFaJC08A7rjtX1NUKf4syTD/Fa0jOTu2M0Ygo9P5Ok5d6pnYdWKIfuDgJd4ZltXRX+I
	LH3ODtp/8bMsxmDb8cWVORY4PJSGEdtJ3CcHIpH9X8NaFELk4UI8X7ut3SXB5S42OpAP
	QApuy2yvyOd28xpfST3mDgDPi5130Dro+VVb1rFXyrXJQknIqxkgAxEypNHaAWNYVSL+
	KEmIJ7WxvR8BphEqzim7aoDChW1CgDtj5Et8rCKKjlPLEbuaj1a6r6oR66JLF0Y4xlSa
	hQqg==
X-Received: by 10.50.153.198 with SMTP id vi6mr10690108igb.112.1361336302317; 
	Tue, 19 Feb 2013 20:58:22 -0800 (PST)
MIME-Version: 1.0
Received: by 10.50.181.170 with HTTP; Tue, 19 Feb 2013 20:58:02 -0800 (PST)
X-Originating-IP: [24.23.130.150]
In-Reply-To: <B95271F2-2B54-4773-B6E7-409FC8D938D3@recoil.org>
References: <B95271F2-2B54-4773-B6E7-409FC8D938D3@recoil.org>
From: Steve Jenson <stevej@fruitless.org>
Date: Tue, 19 Feb 2013 20:58:02 -0800
Message-ID: <CABiHZ_XyXd6uiG2rJ_vNDqn+2r3GSgYVbCa-hKuPtw-U9ZBp-A@mail.gmail.com>
Subject: Re: pathos: pathological http server
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: multipart/alternative; boundary=e89a8f22c681b8319104d620ce96
X-Gm-Message-State: ALoCoQmOxFopGSdhvP7S+YrvaMVsB5zaIXrZArROAP2VwO4j8KM3J2RR+s4qg4ATAqgs5V48Ffgs
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 20 Feb 2013 04:58:25 -0000
Content-Length: 1564
Lines: 45

--e89a8f22c681b8319104d620ce96
Content-Type: text/plain; charset=ISO-8859-1

I believe scapy[1] can be used to fuzz TCP and IP.

http://www.secdev.org/projects/scapy/


On Tue, Feb 19, 2013 at 4:11 AM, Anil Madhavapeddy <anil@recoil.org> wrote:

> An interesting way to test the corners of our HTTP library:
> http://cortesi.github.com/pathod/
>
> Are there any others like this for, e.g., TCP? (Balraj, I'm thinking of
> your 1-byte write netfront test).
>
> -anil
>

--e89a8f22c681b8319104d620ce96
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I believe scapy[1] can be used to fuzz TCP and IP.<div><br=
></div><div><a href=3D"http://www.secdev.org/projects/scapy/">http://www.se=
cdev.org/projects/scapy/</a></div></div><div class=3D"gmail_extra"><br><br>=
<div class=3D"gmail_quote">

On Tue, Feb 19, 2013 at 4:11 AM, Anil Madhavapeddy <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:anil@recoil.org" target=3D"_blank">anil@recoil.org</a>&gt;<=
/span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex">

An interesting way to test the corners of our HTTP library:<br>
<a href=3D"http://cortesi.github.com/pathod/" target=3D"_blank">http://cort=
esi.github.com/pathod/</a><br>
<br>
Are there any others like this for, e.g., TCP? (Balraj, I&#39;m thinking of=
 your 1-byte write netfront test).<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-anil<br>
</font></span></blockquote></div><br></div>

--e89a8f22c681b8319104d620ce96--


From anil@recoil.org Sun Feb 24 10:42:49 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1U9Z2f-00016P-6B (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 24 Feb 2013 10:42:49 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1449282 
	* 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
	blocked.
	* See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
	*       for more information. *      [URIs: xen.org]
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:42129
	helo=dark.recoil.org)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with smtp id 1U9Z2e-0002WI-Xz (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 24 Feb 2013 10:42:49 +0000
Received: (qmail 2294 invoked by uid 634); 24 Feb 2013 10:42:48 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.38]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Sun, 24 Feb 2013 10:42:47 +0000
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: [Vote] Results of formal vote for Mirage to be accepted as
	Xen.org Incubation Project
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <512984AE.2060400@xen.org>
Date: Sun, 24 Feb 2013 10:42:47 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <839A5A49-28E0-4292-AAC6-63C3DA6BF9FB@recoil.org>
References: <512984AE.2060400@xen.org>
To: lars.kurth@xen.org
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 24 Feb 2013 10:42:49 -0000
Content-Length: 1681
Lines: 49

[dropping CC to cl-mirage]

On 24 Feb 2013, at 03:10, Lars Kurth <lars.kurth@xen.org> wrote:

> Hi everybody,
>=20
> sorry for the delay in posting the vote results for =
http://wiki.xen.org/wiki/Mirage_Incubation_Project_Proposal.
>=20
> The vote breakdown:
> - 6 out of 7 Xen committers voted (including project leads)
> - 5 were in favour

Great news!

> - 1 abstained due to the "choice of the ISC licence rather than a =
copyleft licence such as LGPLv2+"

This is worth looking into a little more deeply.  The LGPLv2+ isn't =
appropriate for Mirage due to the static linking.  With the unmodified =
(L)GPL, this would require all applications written for Mirage to also =
be GPLed.

The current practice in the OCaml community is to have a LGPLv2+linking =
exception, which rather defeats the point of a standard copyleft license =
by customising it.

The ISC license is essentially a 'simpler BSD license', but I'm open to =
alternatives if really appropriate.  However, these have to be some form =
of BSD/Apache-like license that are friendly to static linking.

Dave and Mike from Citrix should also be consulted, since a significant =
number of the libraries that Mirage uses are authored by them (and some =
are LGPLv2+exception, which I'd like to normalise around whatever we =
decide on).

> So overall the vote carries.
>=20
> We also several other community members voting in support of the =
proposal. We also discussed the proposal at the last Xen Maintainer, =
Committer and Developer Meeting, which expressed support for the =
proposal.
>=20
> What happens next?
> I will work with the Mirage project lead on a detailed plan for the =
Incubation phase.

-anil=


From anil@recoil.org Mon Feb 25 16:23:12 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UA0pc-0006hN-EF (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 25 Feb 2013 16:23:12 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1449446 
	* 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
	blocked.
	* See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
	*       for more information. *      [URIs: github.com]
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:38152
	helo=dark.recoil.org)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1UA0pb-0008Rx-rx (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 25 Feb 2013 16:23:12 +0000
Received: (qmail 28239 invoked by uid 634); 25 Feb 2013 16:23:11 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from no-dns-yet.demon.co.uk (HELO [192.168.15.192]) (62.49.66.12)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Mon, 25 Feb 2013 16:23:11 +0000
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: ANN: ocaml-cstruct-0.7.0
Message-Id: <4E36034F-F61F-4560-AE8E-44568E0B25A4@recoil.org>
Date: Mon, 25 Feb 2013 16:23:08 +0000
To: "ocaml-core@googlegroups.com" <ocaml-core@googlegroups.com>,
	"cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 25 Feb 2013 16:23:12 -0000
Content-Length: 991
Lines: 28

I've just released another beta of Cstruct to OPAM with the following =
changes.  This is the first release add early Core/Async support (which =
will be used in another set of upcoming libraries), so I've cross posted =
to the OCaml Core and Mirage lists.

See http://github.com/mirage/ocaml-cstruct for a README with examples.
The overall interface should still be considered beta and subject to =
change (see the TODO).

0.7.0 (25-Feb-2013):

* Add zero-copy conversion functions to/from the Core `Bigsubstring`.
* Add an `of_string` function to simplify the construction from OCaml =
values.
* Add Async interface to interoperate with Jane Street Core code.

0.6.2 (08-Feb-2013):

* Add experimental `cstruct.obuild` for the `obuild` build tool.
* Use bounds checked version of all functions in the external interface.
* Expose the `Cstruct.debug` to dump internal state of a buffer to a =
string.
* Add `set_len` and `add_len` to manipulate the total-length field =
directly.


-anil=


From amc79@cam.ac.uk Mon Feb 25 17:33:17 2013
Received: from ppsw-42.csi.cam.ac.uk ([131.111.8.142])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UA1vQ-0002GC-Tf (Exim 4.70)
	(return-path <amc79@cam.ac.uk>); Mon, 25 Feb 2013 17:33:16 +0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from dhcp-128-232-143-169.eduroam.csx.cam.ac.uk
	([128.232.143.169]:61620)
	by ppsw-42.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1UA1vQ-0006P7-9K (Exim 4.80_167-5a66dd3)
	(return-path <amc79@cam.ac.uk>); Mon, 25 Feb 2013 17:33:16 +0000
From: Amir Chaudhry <amc79@cam.ac.uk>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Subject: OCaml Labs Meeting - 8th March at 2pm in the Computer Lab
Date: Mon, 25 Feb 2013 17:33:18 +0000
Message-Id: <9C034B82-D570-4443-80CD-AFC9EAF25417@cam.ac.uk>
To: "cl-ocamllabs@lists.cam.ac.uk" <cl-ocamllabs@lists.cam.ac.uk>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
Cc: Mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 25 Feb 2013 17:33:17 -0000
Content-Length: 573
Lines: 24

Dear all,

The next OCaml Labs meeting will take place on the 8th of March.=20
Location information is below and the meeting agenda will follow later =
this week. =20

Please do let me know if you will be attending.

-- Details --
OCaml Labs Meeting
8th March 2013
2pm =96 3:30pm (but aiming for 3pm finish)
Room FW26 - Cambridge Computer Laboratory
William Gates Building
JJ Thomson Avenue
Cambridge CB3 0FD

Best wishes,
Amir


PS If you'd like to subscribe to an iCal feed of OCaml Labs events, =
please use the following link: webcal://talks.cam.ac.uk/show/ics/41277=


From anil@recoil.org Wed Feb 27 09:09:29 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UAd0z-00064k-BP (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Wed, 27 Feb 2013 09:09:29 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1450078 
	* 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
	blocked.
	* See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
	*       for more information. *      [URIs: github.com]
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:25314
	helo=dark.recoil.org)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1UAd0y-0000hU-sN (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Wed, 27 Feb 2013 09:09:29 +0000
Received: (qmail 27315 invoked by uid 634); 27 Feb 2013 09:09:28 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.84]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Wed, 27 Feb 2013 09:09:27 +0000
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: the profiling patch
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAM3Ki77AR2AbzAuB-jviFwUfEkTAgHHTpSzT4kOjpa7nWopF8w@mail.gmail.com>
Date: Wed, 27 Feb 2013 09:09:26 +0000
Content-Transfer-Encoding: 7bit
Message-Id: <C49B63FD-D96B-4D84-9F9C-C1594971F0BA@recoil.org>
References: <9022E254-4804-4630-9CF8-EFA7C213F58C@recoil.org>
	<CAM3Ki77AR2AbzAuB-jviFwUfEkTAgHHTpSzT4kOjpa7nWopF8w@mail.gmail.com>
To: Mark Shinwell <mshinwell@janestreet.com>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 27 Feb 2013 09:09:29 -0000
Content-Length: 1588
Lines: 62

Thanks, I'm CCing cl-mirage in case anyone else has time to try out Mark's
amazing new native code profiling support.  You should be able to:

$ opam remote add shinwell git://github.com/mshinwell/opam-repo-dev

and find the new compiler switch he describes below.  I'm going to give
this a shot over the DNS queryperf benchmarks later.

-anil

On 26 Feb 2013, at 13:48, Mark Shinwell <mshinwell@janestreet.com> wrote:
> 
> 0. Use my 4.00.1-allocation-tracing branch (look in my opam repo
> on github for the compiler description).
> 
> 1. Use -allocation-tracing to ocamlopt.
> 
> 2. Run with OCAMLRUNPARAM=T
> 
> 3. Either:
> 
>  external decode : unit -> unit
>    = "caml_dump_allocation_tracing_arrays"
>  ...
>  Pervasives.at_exit decode
> 
> or: run under gdb, break on [exit] or similar, then run:
>  call caml_dump_allocation_tracing_arrays(0)
> 
> 4. Copy and paste the output into two files, one for minor, one for
> major, and strip off the first column which says "minor" or "major".
> 
> 5. Run through the decoding script (below).  Syntax:
>  ./decode.sh <executable> <allocation output file>
> 
> Mark
> 
> --
> 
> #!/bin/bash
> 
> set -eu -o pipefail
> 
> exe="$1"
> allocs="$2"
> 
> commands=$(mktemp)
> lines=$(mktemp)
> nums=$(mktemp)
> addrs=$(mktemp)
> 
> cat $allocs | sed 's/,.*//' > $addrs
> cat $addrs | sed 's/^/inf line */' > $commands
> paste <(sed -e 's/.*,//' $allocs) <(gdb $exe -batch -x $commands) | \
>  sed 's/__/./g' | \
>  sed 's/<caml\([A-Z]\)/<\1/g' | \
>  sed 's/ starts at address /: /' | \
>  sed 's/and ends at/->/' | \
>  sort -k 1 -n -r
> 



From mshinwell@janestreet.com Wed Feb 27 09:12:48 2013
Received: from ppsw-42.csi.cam.ac.uk ([131.111.8.142])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UAd4B-0006Dh-Vg (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk (return-path <mshinwell@janestreet.com>);
	Wed, 27 Feb 2013 09:12:47 +0000
X-Cam-SpamDetails: score -0.7 from SpamAssassin-3.3.2-1450078 
	* -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
	* -0.1 BAYES_00 BODY: Bayes spam probability is 0 to 1%
	*      [score: 0.0000]
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mx5.janestreet.com ([38.105.200.229]:54721
	helo=tot-dmz-mxout1.janestreet.com)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1UAd44-0000A3-92 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk (return-path <mshinwell@janestreet.com>);
	Wed, 27 Feb 2013 09:12:47 +0000
Received: from [172.27.22.15] (helo=tot-smtp)
	by tot-dmz-mxout1.janestreet.com with esmtp (Exim 4.76)
	(envelope-from <mshinwell@janestreet.com>) id 1UAd3l-0000fd-85
	for cl-mirage@lists.cam.ac.uk; Wed, 27 Feb 2013 04:12:21 -0500
Received: from tot-dmz-mxgoog1.delacy.com ([172.27.224.14]
	helo=mxgoog2.janestreet.com)
	by tot-smtp with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72)
	(envelope-from <mshinwell@janestreet.com>) id 1UAd3j-00042C-LX
	for cl-mirage@lists.cam.ac.uk; Wed, 27 Feb 2013 04:12:19 -0500
Received: from mail-ve0-f198.google.com ([209.85.128.198])
	by mxgoog2.janestreet.com with esmtp (Exim 4.76)
	(envelope-from <mshinwell@janestreet.com>) id 1UAd3j-0006rP-JM
	for cl-mirage@lists.cam.ac.uk; Wed, 27 Feb 2013 04:12:19 -0500
Received: by mail-ve0-f198.google.com with SMTP id 14so624932vea.1
	for <cl-mirage@lists.cam.ac.uk>; Wed, 27 Feb 2013 01:12:19 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=x-received:mime-version:x-received:in-reply-to:references:date
	:message-id:subject:from:to:cc:content-type:x-gm-message-state;
	bh=RdaOq73/UmU6hIaO7BmIYf0T2V67NPSkDf/nzKNG62s=;
	b=ij0gZaDgpm9JvNiA0xPzyOXx7kvlDmll++OlmC19rXiwaCugismwu+fp7sQAX46gH1
	jyS3lOqsg7TT/XEilQu8A7YfM4R+B30YdClyQmi/wM3VNdy+auFMFdA8Mr5wFH5DzkPB
	xoqKKGGLv7Rgc0uvQMhT7ylI96CiF6ClzFVUAJpM9ith6D2yS1TJ2c+UZLXRmW145M49
	871UNE2kO4V+CqgdLEc61PV+yZaB/Rm/vQ4M/OmH9eaXvEQyx88FKV95VatjCtHIEvKT
	DWm/nywoEfRFnwb46lL//WzpvPG4UW8C6T9MU2p99Yl2nR/n963d3RPTjre9Ua4Tz4le
	pdaQ==
X-Received: by 10.58.84.164 with SMTP id a4mr634448vez.9.1361956339424;
	Wed, 27 Feb 2013 01:12:19 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.58.84.164 with SMTP id a4mr634446vez.9.1361956339322; Wed,
	27 Feb 2013 01:12:19 -0800 (PST)
Received: by 10.58.244.164 with HTTP; Wed, 27 Feb 2013 01:12:18 -0800 (PST)
In-Reply-To: <C49B63FD-D96B-4D84-9F9C-C1594971F0BA@recoil.org>
References: <9022E254-4804-4630-9CF8-EFA7C213F58C@recoil.org>
	<CAM3Ki77AR2AbzAuB-jviFwUfEkTAgHHTpSzT4kOjpa7nWopF8w@mail.gmail.com>
	<C49B63FD-D96B-4D84-9F9C-C1594971F0BA@recoil.org>
Date: Wed, 27 Feb 2013 09:12:18 +0000
Message-ID: <CAM3Ki75d7vTjW1YPGBep5o10HwJZhHbTukUkJJ2evtgrVn4wPQ@mail.gmail.com>
Subject: Re: the profiling patch
From: Mark Shinwell <mshinwell@janestreet.com>
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=ISO-8859-1
X-Gm-Message-State: ALoCoQn4SuBuSc0bAPky4KSGHbRDv4uj5R3/DbGelj/gNctHPO9lA7iZiXv7QCrL8lsikLLJ1VAe4hR7AZTIMKu0xsCgO+KdQGbzd2t654aVPbieN5jTxDKenpGqDMHS7nm6I34oGIbCtJIXOQSrb2bvwvHrFqUFeQ==
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 27 Feb 2013 09:12:48 -0000
Content-Length: 546
Lines: 14

On 27 February 2013 09:09, Anil Madhavapeddy <anil@recoil.org> wrote:
> Thanks, I'm CCing cl-mirage in case anyone else has time to try out Mark's
> amazing new native code profiling support.  You should be able to:
>
> $ opam remote add shinwell git://github.com/mshinwell/opam-repo-dev
>
> and find the new compiler switch he describes below.  I'm going to give
> this a shot over the DNS queryperf benchmarks later.

Let me know if something fails (I haven't tried compiling the compiler
from the OPAM repo yet, but it should be fine).

Mark


From avsm@dark.recoil.org Wed Feb 27 21:52:21 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UAovF-0003LS-Oh (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <avsm@dark.recoil.org>); Wed, 27 Feb 2013 21:52:21 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1450078 
	* 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
	blocked.
	* See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
	*       for more information. *      [URIs: github.com]
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:46292
	helo=dark.recoil.org)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1UAovF-0003CX-q1 (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <avsm@dark.recoil.org>); Wed, 27 Feb 2013 21:52:21 +0000
Received: (qmail 8764 invoked by uid 10000); 27 Feb 2013 21:52:20 -0000
Date: Wed, 27 Feb 2013 21:52:20 +0000
From: Anil Madhavapeddy <anil@recoil.org>
To: "Vincent B." <vb@vb.fdn.fr>
Subject: mirari updates
Message-ID: <20130227215220.GA2255@dark.recoil.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: cl-mirage@lists.cam.ac.uk
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 27 Feb 2013 21:52:21 -0000
Content-Length: 1808
Lines: 38

Vincent Bernardoff's been fixing up Mirari over at Citrix. I've merged all
the latest changes into http://github.com/mirage/mirari -- let's use that
instead of Thomas' repository for pull requests from now on.

I think we're ready to start moving all the docs on the website over to
Mirari now. Do you have your Xen kernels all working now Vincent?

There's one main thing missing from Mirari now: the run target to execute
the kernel.  Some hacks to beware of:

- In the UNIX backend, in mirage-platform/unix/runtime/tap_stubs_*.c,
  we currently hardcode an `ifconfig 10.0.0.1` to give the tap device
  a static IP address.  This has made it easy so far to get networking
  up and running, but the tap device setup really ought to be done by
  Mirari-run instead of the Mirage-platform libraries (which should just
  open a tun passed to them).

- In the Xen backend, we need to generate a config file that also includes
  the bridge information for the VIF.  Right now the mirari.conf file
  doesn't include the bridge (only the IP address/DHCP), so it will need
  to be added as part of run support.

- libvirt seems to be the best option to actually execute the kernel. Has
  anyone tried this yet -- Dave?

On the configuration/build side, I've been thinking that Mirari should
also run the compiler directly using the 4.01.0+mirage-xen switch.  This
will let the developer have their normal OPAM switch be one that can
generate UNIX binaries (and also let Mirari depend on Core/Async/etc which
can be part of the host toolchain and not the Xen one).  

Thomas: what's the best way to get OPAM support for this... I guess we
need a way to spawn a subshell under a particular switch:
e.g.: $ opam config env -s 4.01.0+mirage-xen
That would then call obuild which would work correctly. Thoughts?

-anil


From vb@vb.fdn.fr Wed Feb 27 22:15:28 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UApHc-00045e-IQ (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@vb.fdn.fr>); Wed, 27 Feb 2013 22:15:28 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -5.0 from SpamAssassin-3.3.2-1450078 
	*  0.0 T_FRT_PROFILE2 BODY: ReplaceTags: Profile (2)
	* -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/,
	high *      trust
	*      [66.165.176.89 listed in list.dnswl.dnsbl.ja.net]
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from smtp.citrix.com ([66.165.176.89]:9714)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1UApHc-0000Za-pd (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@vb.fdn.fr>); Wed, 27 Feb 2013 22:15:28 +0000
X-IronPort-AV: E=Sophos;i="4.84,750,1355097600"; d="scan'208";a="10128077"
Received: from accessns.citrite.net (HELO FTLPEX01CL01.citrite.net)
	([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/AES128-SHA;
	27 Feb 2013 22:15:26 +0000
Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com
	(10.13.107.78) with Microsoft SMTP Server id 14.2.318.1;
	Wed, 27 Feb 2013 17:15:26 -0500
Received: from gateway-1.uk.xensource.com ([10.80.16.66])	by
	ukmail1.uk.xensource.com with esmtp (Exim 4.69)	(envelope-from
	<vb@vb.fdn.fr>)	id 1UApHa-0005I6-9U; Wed, 27 Feb 2013 22:15:26 +0000
Received: from localhost ([127.0.0.1] helo=[IPv6:::1])	by
	gateway-1.uk.xensource.com with esmtp (Exim 4.72)	(envelope-from
	<vb@vb.fdn.fr>)	id 1UApHa-0001MI-0e; Wed, 27 Feb 2013 22:15:26 +0000
Message-ID: <512E857D.2060305@vb.fdn.fr>
Date: Wed, 27 Feb 2013 22:15:25 +0000
From: Vincent B. <vb@vb.fdn.fr>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130109 Thunderbird/17.0.2
MIME-Version: 1.0
To: Anil Madhavapeddy <anil@recoil.org>
Subject: Re: mirari updates
References: <20130227215220.GA2255@dark.recoil.org>
In-Reply-To: <20130227215220.GA2255@dark.recoil.org>
Content-Type: text/plain; charset="windows-1252"; format=flowed
Content-Transfer-Encoding: 8bit
Cc: cl-mirage@lists.cam.ac.uk
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 27 Feb 2013 22:15:28 -0000
Content-Length: 1170
Lines: 30

On 27/02/2013 21:52, Anil Madhavapeddy wrote:
> I think we're ready to start moving all the docs on the website over to
> Mirari now. Do you have your Xen kernels all working now Vincent?

Hi. I just joined the cl-mirage mailing list, so you don’t have to CC me 
anymore.

No, I have a problem with the UNIX backend, the function pcap_opendev is 
not implemented in Linux. I have tried to implement that this afternoon, 
only to find out in the end that this was not straightforward 
(pcap_open_live returns a pcap_t * and not a fd). I did not have the 
time to inquire further. I spent hours trying to make the buildsystem 
(which is based on a cmd script + ocamlbuild/custom myocamlbuild -- 
maybe we should port that on obuild ?) link the resulting libs with pcap 
(-lpcap). I did not manage to do that either, wasn’t proficient enough 
in ocamlbuild scripting.

So because of that, the tcp example in mirage-skeleton do not work in 
UNIX (and #require "mirage";; in utop fails as well because of 
pcap_opendev not implemented/linked).

I have taken good note of your comments about mirari run and I will try 
to figure out a solution for that.

Cheers !

Vincent




From anil@recoil.org Thu Feb 28 11:07:44 2013
Received: from ppsw-42.csi.cam.ac.uk ([131.111.8.142])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UB1Ky-0006kk-Eh (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 28 Feb 2013 11:07:44 +0000
X-Cam-SpamDetails: score -0.1 from SpamAssassin-3.3.2-1450680 
	*  0.0 T_FRT_PROFILE2 BODY: ReplaceTags: Profile (2)
	* -0.1 BAYES_00 BODY: Bayes spam probability is 0 to 1%
	*      [score: 0.0000]
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:6788
	helo=dark.recoil.org)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1UB1Kx-0000Kn-81 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 28 Feb 2013 11:07:44 +0000
Received: (qmail 25906 invoked by uid 634); 28 Feb 2013 11:07:42 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED,T_FRT_PROFILE2
X-Spam-Check-By: dark.recoil.org
Received: from no-dns-yet.demon.co.uk (HELO [192.168.15.136]) (62.49.66.12)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Thu, 28 Feb 2013 11:07:42 +0000
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: mirari updates
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <512E857D.2060305@vb.fdn.fr>
Date: Thu, 28 Feb 2013 11:07:38 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <F4209BA1-7343-4541-AC33-9A571A16D38B@recoil.org>
References: <20130227215220.GA2255@dark.recoil.org>
	<512E857D.2060305@vb.fdn.fr>
To: Vincent B. <vb@vb.fdn.fr>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: cl-mirage@lists.cam.ac.uk
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 28 Feb 2013 11:07:44 -0000
Content-Length: 1277
Lines: 27

On 27 Feb 2013, at 22:15, Vincent B. <vb@vb.fdn.fr> wrote:
>=20
> No, I have a problem with the UNIX backend, the function pcap_opendev =
is not implemented in Linux. I have tried to implement that this =
afternoon, only to find out in the end that this was not straightforward =
(pcap_open_live returns a pcap_t * and not a fd). I did not have the =
time to inquire further. I spent hours trying to make the buildsystem =
(which is based on a cmd script + ocamlbuild/custom myocamlbuild -- =
maybe we should port that on obuild ?) link the resulting libs with pcap =
(-lpcap). I did not manage to do that either, wasn=92t proficient enough =
in ocamlbuild scripting.

Truth be told, I have no idea what pcap is doing in there.  Haris, is it =
to avoid requiring a tuntap bridge and to work with an existing =
interface?

I'd be inclined to not expose it all to Linux for the moment, since it =
already has the bridging support for tuntap. MacOS X doesn't have =
kernel-level bridging, so I can see why pcap is useful there.

Btw, the cmd script was just a quick shim.  Replacing it with obuild =
would be great, if it can handle all the C bindings.  It may be better =
to build the C components with a conventional Makefile, and the OCaml =
libraries with obuild.
=20
-anil=


From thomas.gazagnaire@gmail.com Thu Feb 28 11:28:03 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UB1ed-0007nb-UO (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <thomas.gazagnaire@gmail.com>);
	Thu, 28 Feb 2013 11:28:03 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.8 from SpamAssassin-3.3.2-1450680 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.212.178 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (thomas.gazagnaire[at]gmail.com)
	* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	*      author's domain
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-wi0-f178.google.com ([209.85.212.178]:34082)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1UB1ec-0008Ng-sQ (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <thomas.gazagnaire@gmail.com>);
	Thu, 28 Feb 2013 11:28:03 +0000
Received: by mail-wi0-f178.google.com with SMTP id hq4so1927235wib.11
	for <cl-mirage@lists.cam.ac.uk>; Thu, 28 Feb 2013 03:28:02 -0800 (PST)
X-Received: by 10.194.76.37 with SMTP id h5mr10280982wjw.21.1362050882761;
	Thu, 28 Feb 2013 03:28:02 -0800 (PST)
Received: from [192.168.1.143] (perens.inria.fr. [128.93.60.79])
	by mx.google.com with ESMTPS id cf8sm14734220wib.1.2013.02.28.03.28.00
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Thu, 28 Feb 2013 03:28:01 -0800 (PST)
Subject: Re: mirari updates
Mime-Version: 1.0 (Apple Message framework v1085)
Content-Type: text/plain; charset=us-ascii
From: Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
In-Reply-To: <20130227215220.GA2255@dark.recoil.org>
Date: Thu, 28 Feb 2013 12:27:58 +0100
Content-Transfer-Encoding: 7bit
Message-Id: <A4BB9183-CCB4-4B91-94DE-A5716B9A9717@gmail.com>
References: <20130227215220.GA2255@dark.recoil.org>
To: Anil Madhavapeddy <anil@recoil.org>
X-Mailer: Apple Mail (2.1085)
Cc: "Vincent B." <vb@vb.fdn.fr>, cl-mirage@lists.cam.ac.uk
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 28 Feb 2013 11:28:04 -0000
Content-Length: 796
Lines: 20

> On the configuration/build side, I've been thinking that Mirari should
> also run the compiler directly using the 4.01.0+mirage-xen switch.  This
> will let the developer have their normal OPAM switch be one that can
> generate UNIX binaries (and also let Mirari depend on Core/Async/etc which
> can be part of the host toolchain and not the Xen one).  
> 
> Thomas: what's the best way to get OPAM support for this... I guess we
> need a way to spawn a subshell under a particular switch:
> e.g.: $ opam config env -s 4.01.0+mirage-xen
> That would then call obuild which would work correctly. Thoughts?

You can compile dependencies in another switch using:

opam install foo bar --switch=4.01.0+mirage-xen

And then you can indeed compile your project with the command you gave.

--
Thomas


From h.rotsos@gmail.com Thu Feb 28 11:47:06 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UB1x4-00012W-Jb (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <h.rotsos@gmail.com>); Thu, 28 Feb 2013 11:47:06 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.7 from SpamAssassin-3.3.2-1450680 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.219.50 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
	blocked.
	* See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
	*       for more information. *      [URIs: cam.ac.uk]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (h.rotsos[at]gmail.com)
	*  0.0 T_FRT_PROFILE2 BODY: ReplaceTags: Profile (2)
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-oa0-f50.google.com ([209.85.219.50]:34240)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1UB1x3-00014A-qJ (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <h.rotsos@gmail.com>); Thu, 28 Feb 2013 11:47:06 +0000
Received: by mail-oa0-f50.google.com with SMTP id l20so3413651oag.9
	for <cl-mirage@lists.cam.ac.uk>; Thu, 28 Feb 2013 03:47:04 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.60.31.42 with SMTP id x10mr5340156oeh.18.1362052024348; Thu,
	28 Feb 2013 03:47:04 -0800 (PST)
Sender: h.rotsos@gmail.com
Received: by 10.60.24.231 with HTTP; Thu, 28 Feb 2013 03:47:04 -0800 (PST)
In-Reply-To: <F4209BA1-7343-4541-AC33-9A571A16D38B@recoil.org>
References: <20130227215220.GA2255@dark.recoil.org>
	<512E857D.2060305@vb.fdn.fr>
	<F4209BA1-7343-4541-AC33-9A571A16D38B@recoil.org>
Date: Thu, 28 Feb 2013 11:47:04 +0000
X-Google-Sender-Auth: C1aQUaTnV7tT7r-LBxlsJKLtXws
Message-ID: <CALerif6KuF=mmDzO77PweHvU3hORnO5Ae5xg293ZUKde_jZSiw@mail.gmail.com>
Subject: Re: mirari updates
From: Haris Rotsos <cr409@cl.cam.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: multipart/alternative; boundary=e89a8fb1ff6613b5a504d6c773da
Cc: "Vincent B." <vb@vb.fdn.fr>,
	"cl-mirage@lists.cam.ac.uk Mailing List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 28 Feb 2013 11:47:06 -0000
Content-Length: 5934
Lines: 131

--e89a8fb1ff6613b5a504d6c773da
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

This is something I did a while back in order to allow interfaces to open
in Mac environments. It was the only way to open raw ethernet sockets in
MacOSX. The equivalent action in Linux should open a raw ethernet socket
using Libc (Something along this lines
http://aschauf.landshut.org/fh/linux/udp_vs_raw/ch01s03.html). At the
moment I haven't fixed the Linux code to work. In the case of Linux I had
an ifdef function which implements an empty function for this.

It is a bit complicated to handle this case because there is a different
approach on how to read packets from pcap fd in Macosx and from raw
ethernet sockets in Linux. The difference is that in pcap you need to skip
the pcap header. This is not the case in Linux. I can fix quickly the code
if you could give me some hint on how I could detect in Ocaml the OS type.


On 28 February 2013 11:07, Anil Madhavapeddy <anil@recoil.org> wrote:

> On 27 Feb 2013, at 22:15, Vincent B. <vb@vb.fdn.fr> wrote:
> >
> > No, I have a problem with the UNIX backend, the function pcap_opendev i=
s
> not implemented in Linux. I have tried to implement that this afternoon,
> only to find out in the end that this was not straightforward
> (pcap_open_live returns a pcap_t * and not a fd). I did not have the time
> to inquire further. I spent hours trying to make the buildsystem (which i=
s
> based on a cmd script + ocamlbuild/custom myocamlbuild -- maybe we should
> port that on obuild ?) link the resulting libs with pcap (-lpcap). I did
> not manage to do that either, wasn=E2=80=99t proficient enough in ocamlbu=
ild
> scripting.
>
> Truth be told, I have no idea what pcap is doing in there.  Haris, is it
> to avoid requiring a tuntap bridge and to work with an existing interface=
?
>
> I'd be inclined to not expose it all to Linux for the moment, since it
> already has the bridging support for tuntap. MacOS X doesn't have
> kernel-level bridging, so I can see why pcap is useful there.
>
> Btw, the cmd script was just a quick shim.  Replacing it with obuild woul=
d
> be great, if it can handle all the C bindings.  It may be better to build
> the C components with a conventional Makefile, and the OCaml libraries wi=
th
> obuild.
>
> -anil
>



--=20
Charalampos Rotsos
PhD student
The University of Cambridge
Computer Laboratory
William Gates Building
JJ Thomson Avenue
Cambridge
CB3 0FD

Phone: +44-(0) 1223 767032
Email: cr409@cl.cam.ac.uk

--e89a8fb1ff6613b5a504d6c773da
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">This is something I did a while back in order to allow int=
erfaces to open in Mac environments. It was the only way to open raw ethern=
et sockets in MacOSX. The equivalent action in Linux should open a raw ethe=
rnet socket using Libc (Something along <span class=3D"GRcorrect">this</spa=
n> lines <a href=3D"http://aschauf.landshut.org/fh/linux/udp_vs_raw/ch01s03=
.html">http://aschauf.landshut.org/fh/linux/udp_vs_raw/ch01s03.html</a>). A=
t the moment I haven&#39;t fixed the Linux code to work. In the case of Lin=
ux=C2=A0I had an ifdef=C2=A0function which implements an empty function for=
 this.=C2=A0<div>
<br></div><div style>It is a bit complicated to handle this case because th=
ere is a different approach on how to read packets from pcap=C2=A0<span cla=
ss=3D"GRcorrect">fd</span> in Macosx and from raw ethernet sockets in Linux=
. The difference is that in pcap=C2=A0you need to skip the pcap=C2=A0header=
. This is not the case in Linux. I can fix quickly the code if you could gi=
ve me some hint on how I could detect in Ocaml the OS type.=C2=A0</div>
</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On 28 F=
ebruary 2013 11:07, Anil Madhavapeddy <span dir=3D"ltr">&lt;<a href=3D"mail=
to:anil@recoil.org" target=3D"_blank">anil@recoil.org</a>&gt;</span> wrote:=
<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-lef=
t:1px #ccc solid;padding-left:1ex">
<div class=3D"im">On 27 Feb 2013, at 22:15, Vincent B. &lt;<a href=3D"mailt=
o:vb@vb.fdn.fr">vb@vb.fdn.fr</a>&gt; wrote:<br>
&gt;<br>
&gt; No, I have a problem with the UNIX backend, the function pcap_opendev =
is not implemented in Linux. I have tried to implement that this afternoon,=
 only to find out in the end that this was not straightforward (pcap_open_l=
ive returns a pcap_t * and not a fd). I did not have the time to inquire fu=
rther. I spent hours trying to make the buildsystem (which is based on a cm=
d script + ocamlbuild/custom myocamlbuild -- maybe we should port that on o=
build ?) link the resulting libs with pcap (-lpcap). I did not manage to do=
 that either, wasn=E2=80=99t proficient enough in ocamlbuild scripting.<br>

<br>
</div>Truth be told, I have no idea what pcap is doing in there. =C2=A0Hari=
s, is it to avoid requiring a tuntap bridge and to work with an existing in=
terface?<br>
<br>
I&#39;d be inclined to not expose it all to Linux for the moment, since it =
already has the bridging support for tuntap. MacOS X doesn&#39;t have kerne=
l-level bridging, so I can see why pcap is useful there.<br>
<br>
Btw, the cmd script was just a quick shim. =C2=A0Replacing it with obuild w=
ould be great, if it can handle all the C bindings. =C2=A0It may be better =
to build the C components with a conventional Makefile, and the OCaml libra=
ries with obuild.<br>

<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-anil<br>
</font></span></blockquote></div><br><br clear=3D"all"><div><br></div>-- <b=
r>Charalampos Rotsos<br>PhD student<br>The University of Cambridge<br>Compu=
ter Laboratory<br>William Gates Building<br>JJ Thomson Avenue<br>Cambridge<=
br>
CB3 0FD<br><br>Phone: +44-(0) 1223 767032<br>Email: <a href=3D"mailto:cr409=
@cl.cam.ac.uk">cr409@cl.cam.ac.uk</a>
</div>

--e89a8fb1ff6613b5a504d6c773da--


From mike.mcclurg@gmail.com Thu Feb 28 16:37:14 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UB6Tq-0005ZU-8x (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <mike.mcclurg@gmail.com>); Thu, 28 Feb 2013 16:37:14 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.8 from SpamAssassin-3.3.2-1450680 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [74.125.82.179 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (mike.mcclurg[at]gmail.com)
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	*      author's domain
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-we0-f179.google.com ([74.125.82.179]:40872)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1UB6To-0001Vj-rY (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <mike.mcclurg@gmail.com>); Thu, 28 Feb 2013 16:37:14 +0000
Received: by mail-we0-f179.google.com with SMTP id p43so1686422wea.24
	for <cl-mirage@lists.cam.ac.uk>; Thu, 28 Feb 2013 08:37:12 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.180.105.232 with SMTP id gp8mr33871442wib.33.1362069432438; 
	Thu, 28 Feb 2013 08:37:12 -0800 (PST)
Received: by 10.216.118.71 with HTTP; Thu, 28 Feb 2013 08:37:12 -0800 (PST)
In-Reply-To: <A4BB9183-CCB4-4B91-94DE-A5716B9A9717@gmail.com>
References: <20130227215220.GA2255@dark.recoil.org>
	<A4BB9183-CCB4-4B91-94DE-A5716B9A9717@gmail.com>
Date: Thu, 28 Feb 2013 16:37:12 +0000
Message-ID: <CALru5wWc5TDjgY=7UZr7Gao7sqO6uvh0rqyTzGknp2kCTmDN=A@mail.gmail.com>
Subject: Re: mirari updates
From: Mike McClurg <mike.mcclurg@gmail.com>
To: Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
Content-Type: multipart/alternative; boundary=f46d044402d0ae1a8d04d6cb8028
Cc: "Vincent B." <vb@vb.fdn.fr>,
	"cl-mirage@lists.cam.ac.uk" <cl-mirage@lists.cam.ac.uk>,
	Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 28 Feb 2013 16:37:14 -0000
Content-Length: 3430
Lines: 79

--f46d044402d0ae1a8d04d6cb8028
Content-Type: text/plain; charset=ISO-8859-1

On Thu, Feb 28, 2013 at 11:27 AM, Thomas Gazagnaire <
thomas.gazagnaire@gmail.com> wrote:

> > On the configuration/build side, I've been thinking that Mirari should
> > also run the compiler directly using the 4.01.0+mirage-xen switch.  This
> > will let the developer have their normal OPAM switch be one that can
> > generate UNIX binaries (and also let Mirari depend on Core/Async/etc
> which
> > can be part of the host toolchain and not the Xen one).
> >
> > Thomas: what's the best way to get OPAM support for this... I guess we
> > need a way to spawn a subshell under a particular switch:
> > e.g.: $ opam config env -s 4.01.0+mirage-xen
> > That would then call obuild which would work correctly. Thoughts?
>
> You can compile dependencies in another switch using:
>
> opam install foo bar --switch=4.01.0+mirage-xen
>
> And then you can indeed compile your project with the command you gave.
>

That's a really nice feature! I think what Vincent was looking for (correct
me if I'm wrong, Vincent) is the way to run arbitrary commands without
switching back and forth between compilers. I'm thinking of:

$ opam config env --switch 4.01.0+mirage-xen -- obuild build

So that I can do a mirage build in my current dir, but still use the system
compiler, for instance. This would be a useful feature outside of mirari.

Mike

--f46d044402d0ae1a8d04d6cb8028
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T=
hu, Feb 28, 2013 at 11:27 AM, Thomas Gazagnaire <span dir=3D"ltr">&lt;<a hr=
ef=3D"mailto:thomas.gazagnaire@gmail.com" target=3D"_blank">thomas.gazagnai=
re@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex"><div class=3D"im">&gt; On=
 the configuration/build side, I&#39;ve been thinking that Mirari should<br=
>
&gt; also run the compiler directly using the 4.01.0+mirage-xen switch. =A0=
This<br>
&gt; will let the developer have their normal OPAM switch be one that can<b=
r>
&gt; generate UNIX binaries (and also let Mirari depend on Core/Async/etc w=
hich<br>
&gt; can be part of the host toolchain and not the Xen one).<br>
&gt;<br>
&gt; Thomas: what&#39;s the best way to get OPAM support for this... I gues=
s we<br>
&gt; need a way to spawn a subshell under a particular switch:<br>
&gt; e.g.: $ opam config env -s 4.01.0+mirage-xen<br>
&gt; That would then call obuild which would work correctly. Thoughts?<br>
<br>
</div>You can compile dependencies in another switch using:<br>
<br>
opam install foo bar --switch=3D4.01.0+mirage-xen<br>
<br>
And then you can indeed compile your project with the command you gave.<br>=
</blockquote><div><br></div><div>That&#39;s a really nice feature! I think =
what Vincent was looking for (correct me if I&#39;m wrong, Vincent) is the =
way to run arbitrary commands without switching back and forth between comp=
ilers. I&#39;m thinking of:<br>
<br>$ opam config env --switch 4.01.0+mirage-xen -- obuild build<br><br></d=
iv><div>So that I can do a mirage build in my current dir, but still use th=
e system compiler, for instance. This would be a useful feature outside of =
mirari.<br>
<br>Mike<br></div></div></div></div>

--f46d044402d0ae1a8d04d6cb8028--


From anil@recoil.org Thu Feb 28 16:53:00 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UB6j6-00065J-Lz (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 28 Feb 2013 16:53:00 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1450680 
	* 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
	blocked.
	* See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
	*       for more information. *      [URIs: github.com]
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:36556
	helo=dark.recoil.org)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with smtp id 1UB6j5-0008I5-ZF (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 28 Feb 2013 16:53:00 +0000
Received: (qmail 20845 invoked by uid 634); 28 Feb 2013 16:52:59 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from no-dns-yet.demon.co.uk (HELO [192.168.15.136]) (62.49.66.12)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Thu, 28 Feb 2013 16:52:59 +0000
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: mirari updates
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CALru5wWc5TDjgY=7UZr7Gao7sqO6uvh0rqyTzGknp2kCTmDN=A@mail.gmail.com>
Date: Thu, 28 Feb 2013 16:53:01 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <239ED0CD-CA7E-479C-8559-A66821A75AC1@recoil.org>
References: <20130227215220.GA2255@dark.recoil.org>
	<A4BB9183-CCB4-4B91-94DE-A5716B9A9717@gmail.com>
	<CALru5wWc5TDjgY=7UZr7Gao7sqO6uvh0rqyTzGknp2kCTmDN=A@mail.gmail.com>
To: Mike McClurg <mike.mcclurg@gmail.com>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: "Vincent B." <vb@vb.fdn.fr>,
	"cl-mirage@lists.cam.ac.uk" <cl-mirage@lists.cam.ac.uk>,
	Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 28 Feb 2013 16:53:00 -0000
Content-Length: 824
Lines: 22

On 28 Feb 2013, at 16:37, Mike McClurg <mike.mcclurg@gmail.com> wrote:
>=20
> That's a really nice feature! I think what Vincent was looking for =
(correct me if I'm wrong, Vincent) is the way to run arbitrary commands =
without switching back and forth between compilers. I'm thinking of:
>=20
> $ opam config env --switch 4.01.0+mirage-xen -- obuild build
>=20
> So that I can do a mirage build in my current dir, but still use the =
system compiler, for instance. This would be a useful feature outside of =
mirari.

That's correct: we currently don't have a way to spawn a subshell with =
the environment variables for a different switch.  Note that the =
subshell does *not* need to call OPAM, only obuild.

Thomas, I (think) this is what our friend in =
https://github.com/OCamlPro/opam/issues/482 wanted :-)

-anil



From mike.mcclurg@gmail.com Thu Feb 28 17:05:40 2013
Received: from ppsw-50.csi.cam.ac.uk ([131.111.8.150])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UB6vM-0006kX-4R (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <mike.mcclurg@gmail.com>); Thu, 28 Feb 2013 17:05:40 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score -0.8 from SpamAssassin-3.3.2-1450680 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.212.174 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
	blocked.
	* See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
	*       for more information. *      [URIs: recoil.org]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (mike.mcclurg[at]gmail.com)
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	*      author's domain
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-wi0-f174.google.com ([209.85.212.174]:38235)
	by ppsw-50.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1UB6vK-0006S5-rr (Exim 4.72) for
	cl-mirage@lists.cam.ac.uk
	(return-path <mike.mcclurg@gmail.com>); Thu, 28 Feb 2013 17:05:40 +0000
Received: by mail-wi0-f174.google.com with SMTP id hi8so7995438wib.7
	for <cl-mirage@lists.cam.ac.uk>; Thu, 28 Feb 2013 09:05:38 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.194.20.72 with SMTP id l8mr12355301wje.36.1362071138528;
	Thu, 28 Feb 2013 09:05:38 -0800 (PST)
Received: by 10.216.118.71 with HTTP; Thu, 28 Feb 2013 09:05:38 -0800 (PST)
In-Reply-To: <239ED0CD-CA7E-479C-8559-A66821A75AC1@recoil.org>
References: <20130227215220.GA2255@dark.recoil.org>
	<A4BB9183-CCB4-4B91-94DE-A5716B9A9717@gmail.com>
	<CALru5wWc5TDjgY=7UZr7Gao7sqO6uvh0rqyTzGknp2kCTmDN=A@mail.gmail.com>
	<239ED0CD-CA7E-479C-8559-A66821A75AC1@recoil.org>
Date: Thu, 28 Feb 2013 17:05:38 +0000
Message-ID: <CALru5wWg0QE5PwEhzz6MWf97cpDkA2-to5POoGzGMQ_HUfYxag@mail.gmail.com>
Subject: Re: mirari updates
From: Mike McClurg <mike.mcclurg@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: multipart/alternative; boundary=047d7b5d98ad5ef63004d6cbe6a6
Cc: "Vincent B." <vb@vb.fdn.fr>,
	"cl-mirage@lists.cam.ac.uk" <cl-mirage@lists.cam.ac.uk>,
	Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 28 Feb 2013 17:05:40 -0000
Content-Length: 3054
Lines: 73

--047d7b5d98ad5ef63004d6cbe6a6
Content-Type: text/plain; charset=ISO-8859-1

On Thu, Feb 28, 2013 at 4:53 PM, Anil Madhavapeddy <anil@recoil.org> wrote:

> On 28 Feb 2013, at 16:37, Mike McClurg <mike.mcclurg@gmail.com> wrote:
> >
> > That's a really nice feature! I think what Vincent was looking for
> (correct me if I'm wrong, Vincent) is the way to run arbitrary commands
> without switching back and forth between compilers. I'm thinking of:
> >
> > $ opam config env --switch 4.01.0+mirage-xen -- obuild build
> >
> > So that I can do a mirage build in my current dir, but still use the
> system compiler, for instance. This would be a useful feature outside of
> mirari.
>
> That's correct: we currently don't have a way to spawn a subshell with the
> environment variables for a different switch.  Note that the subshell does
> *not* need to call OPAM, only obuild.
>
> Thomas, I (think) this is what our friend in
> https://github.com/OCamlPro/opam/issues/482 wanted :-)
>
> Yes, in addition to being less evil, I think that would allow us to do:

$ `opam config env-variables` some command

With those variables in the environment for "some command".

Mike

--047d7b5d98ad5ef63004d6cbe6a6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T=
hu, Feb 28, 2013 at 4:53 PM, Anil Madhavapeddy <span dir=3D"ltr">&lt;<a hre=
f=3D"mailto:anil@recoil.org" target=3D"_blank">anil@recoil.org</a>&gt;</spa=
n> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"im">On 28 Feb 2013, at 16:37, =
Mike McClurg &lt;<a href=3D"mailto:mike.mcclurg@gmail.com">mike.mcclurg@gma=
il.com</a>&gt; wrote:<br>

&gt;<br>
&gt; That&#39;s a really nice feature! I think what Vincent was looking for=
 (correct me if I&#39;m wrong, Vincent) is the way to run arbitrary command=
s without switching back and forth between compilers. I&#39;m thinking of:<=
br>

&gt;<br>
&gt; $ opam config env --switch 4.01.0+mirage-xen -- obuild build<br>
&gt;<br>
&gt; So that I can do a mirage build in my current dir, but still use the s=
ystem compiler, for instance. This would be a useful feature outside of mir=
ari.<br>
<br>
</div>That&#39;s correct: we currently don&#39;t have a way to spawn a subs=
hell with the environment variables for a different switch. =A0Note that th=
e subshell does *not* need to call OPAM, only obuild.<br>
<br>
Thomas, I (think) this is what our friend in <a href=3D"https://github.com/=
OCamlPro/opam/issues/482" target=3D"_blank">https://github.com/OCamlPro/opa=
m/issues/482</a> wanted :-)<br>
<span class=3D"HOEnZb"></span><br></blockquote><div>Yes, in addition to bei=
ng less evil, I think that would allow us to do:<br><br></div><div>$ `opam =
config env-variables` some command<br><br></div><div>With those variables i=
n the environment for &quot;some command&quot;.<br>
<br>Mike<br></div></div><br></div></div>

--047d7b5d98ad5ef63004d6cbe6a6--


From anil@recoil.org Thu Feb 28 18:05:06 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UB7qs-0000pF-P5 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 28 Feb 2013 18:05:06 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1450680 
	* 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
	blocked.
	* See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
	*       for more information. *      [URIs: parse.sh]
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:21553
	helo=dark.recoil.org)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with smtp id 1UB7qs-0004aB-XF (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 28 Feb 2013 18:05:06 +0000
Received: (qmail 5744 invoked by uid 634); 28 Feb 2013 18:05:05 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO [10.0.1.83]) (128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Thu, 28 Feb 2013 18:05:02 +0000
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: the profiling patch
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAM3Ki75d7vTjW1YPGBep5o10HwJZhHbTukUkJJ2evtgrVn4wPQ@mail.gmail.com>
Date: Thu, 28 Feb 2013 18:05:01 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <CE10DF67-6D25-4657-92E0-323009602FC8@recoil.org>
References: <9022E254-4804-4630-9CF8-EFA7C213F58C@recoil.org>
	<CAM3Ki77AR2AbzAuB-jviFwUfEkTAgHHTpSzT4kOjpa7nWopF8w@mail.gmail.com>
	<C49B63FD-D96B-4D84-9F9C-C1594971F0BA@recoil.org>
	<CAM3Ki75d7vTjW1YPGBep5o10HwJZhHbTukUkJJ2evtgrVn4wPQ@mail.gmail.com>
To: Mark Shinwell <mshinwell@janestreet.com>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 28 Feb 2013 18:05:06 -0000
Content-Length: 1380
Lines: 50

On 27 Feb 2013, at 09:12, Mark Shinwell <mshinwell@janestreet.com> =
wrote:

> On 27 February 2013 09:09, Anil Madhavapeddy <anil@recoil.org> wrote:
>> Thanks, I'm CCing cl-mirage in case anyone else has time to try out =
Mark's
>> amazing new native code profiling support.  You should be able to:
>>=20
>> $ opam remote add shinwell git://github.com/mshinwell/opam-repo-dev
>>=20
>> and find the new compiler switch he describes below.  I'm going to =
give
>> this a shot over the DNS queryperf benchmarks later.
>=20
> Let me know if something fails (I haven't tried compiling the compiler
> from the OPAM repo yet, but it should be fine).

There was a minor problem with the OPAM repo: you have to name the =
compiler
with a '+' signifying the purpose and you had a '-'.  I've committed it
into the main OPAM repo anyway, so you can switch to it via=20

$ opam switch 4.00.1+alloc-profiling

However, when I run it on a toy program, I get the expect

$ ./a.out=20
minor,0x404368,303
minor,0x405bd0,5
minor,0x405e48,2
minor,0x4063c0,9
minor,0x40ba48,12
major,0x4151a8,72
$ ./a.out > x                                                            =
                                        =20
$ ./parse.sh ./a.out x
/tmp/tmp.fJkFjf9obV:1: Error in sourced command file:
No symbol "minor" in current context.
303
72
12
9
5
2


Where does this 'minor' symbol crop up from?

-anil=


From anil@recoil.org Thu Feb 28 18:13:23 2013
Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UB7yt-00016a-4X (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 28 Feb 2013 18:13:23 +0000
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1450680 
	* 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
	blocked.
	* See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
	*       for more information. *      [URIs: recoil.org]
	*  0.0 T_FRT_PROFILE2 BODY: ReplaceTags: Profile (2)
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:44402
	helo=dark.recoil.org)
	by ppsw-51.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with smtp id 1UB7yr-0007NC-Yk (Exim 4.72) for cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 28 Feb 2013 18:13:23 +0000
Received: (qmail 18307 invoked by uid 634); 28 Feb 2013 18:13:20 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED,T_FRT_PROFILE2
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO [10.0.1.83]) (128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Thu, 28 Feb 2013 18:13:20 +0000
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: mirari updates
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CALerif6KuF=mmDzO77PweHvU3hORnO5Ae5xg293ZUKde_jZSiw@mail.gmail.com>
Date: Thu, 28 Feb 2013 18:13:19 +0000
Content-Transfer-Encoding: quoted-printable
Message-Id: <B2F516C3-3A92-4A1C-B709-CDE92648A332@recoil.org>
References: <20130227215220.GA2255@dark.recoil.org>
	<512E857D.2060305@vb.fdn.fr>
	<F4209BA1-7343-4541-AC33-9A571A16D38B@recoil.org>
	<CALerif6KuF=mmDzO77PweHvU3hORnO5Ae5xg293ZUKde_jZSiw@mail.gmail.com>
To: Haris Rotsos <cr409@cl.cam.ac.uk>
X-Mailer: Apple Mail (2.1499)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: "Vincent B." <vb@vb.fdn.fr>,
	"cl-mirage@lists.cam.ac.uk Mailing List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 28 Feb 2013 18:13:23 -0000
Content-Length: 3339
Lines: 80

I had a quick chat with Haris about this.  I think what we're missing in =
the UNIX backend is a simple control socket that mirrors the operations =
that Xenstore provides a VM: start, stop, suspend, hotplug device, and =
so on.  Without this, we're forced to hardcode many control operations =
in the library directly.

If we make the runloop of a UNIX Mirage process mimic the Xen version, =
then many of these hacks go away.  For instance, the bridging =
configuration can be done from a command line utility that sets up tun =
(or pcap) devices, and then passes the fd to the listening Mirage UNIX =
process.

It's very Erlang and actor-like, but quite easy to build into Mirari =
with a bit of cmdliner magic.  Dave already has an Lwt fd-passing =
library I believe.

-anil

On 28 Feb 2013, at 11:47, Haris Rotsos <cr409@cl.cam.ac.uk> wrote:

> This is something I did a while back in order to allow interfaces to =
open in Mac environments. It was the only way to open raw ethernet =
sockets in MacOSX. The equivalent action in Linux should open a raw =
ethernet socket using Libc (Something along this lines =
http://aschauf.landshut.org/fh/linux/udp_vs_raw/ch01s03.html). At the =
moment I haven't fixed the Linux code to work. In the case of Linux I =
had an ifdef function which implements an empty function for this.=20
>=20
> It is a bit complicated to handle this case because there is a =
different approach on how to read packets from pcap fd in Macosx and =
from raw ethernet sockets in Linux. The difference is that in pcap you =
need to skip the pcap header. This is not the case in Linux. I can fix =
quickly the code if you could give me some hint on how I could detect in =
Ocaml the OS type.=20
>=20
>=20
> On 28 February 2013 11:07, Anil Madhavapeddy <anil@recoil.org> wrote:
> On 27 Feb 2013, at 22:15, Vincent B. <vb@vb.fdn.fr> wrote:
> >
> > No, I have a problem with the UNIX backend, the function =
pcap_opendev is not implemented in Linux. I have tried to implement that =
this afternoon, only to find out in the end that this was not =
straightforward (pcap_open_live returns a pcap_t * and not a fd). I did =
not have the time to inquire further. I spent hours trying to make the =
buildsystem (which is based on a cmd script + ocamlbuild/custom =
myocamlbuild -- maybe we should port that on obuild ?) link the =
resulting libs with pcap (-lpcap). I did not manage to do that either, =
wasn=92t proficient enough in ocamlbuild scripting.
>=20
> Truth be told, I have no idea what pcap is doing in there.  Haris, is =
it to avoid requiring a tuntap bridge and to work with an existing =
interface?
>=20
> I'd be inclined to not expose it all to Linux for the moment, since it =
already has the bridging support for tuntap. MacOS X doesn't have =
kernel-level bridging, so I can see why pcap is useful there.
>=20
> Btw, the cmd script was just a quick shim.  Replacing it with obuild =
would be great, if it can handle all the C bindings.  It may be better =
to build the C components with a conventional Makefile, and the OCaml =
libraries with obuild.
>=20
> -anil
>=20
>=20
>=20
> --=20
> Charalampos Rotsos
> PhD student
> The University of Cambridge
> Computer Laboratory
> William Gates Building
> JJ Thomson Avenue
> Cambridge
> CB3 0FD
>=20
> Phone: +44-(0) 1223 767032
> Email: cr409@cl.cam.ac.uk



