From: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
To: Patrick Colp <pjcolp@cs.ubc.ca>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"George S. Coker, II (ncsc)" <gscoker@alpha.ncsc.mil>,
Samuel Thibault <samuel.thibault@eu.citrix.com>
Subject: Re: caml stubdom crashes
Date: Fri, 03 Apr 2009 09:31:01 +0100 [thread overview]
Message-ID: <49D5C945.7000202@eu.citrix.com> (raw)
In-Reply-To: <49D4E640.6080603@cs.ubc.ca>
Patrick Colp wrote:
> Alex Zeffertt wrote:
>> I suspect the problem is that the caml-stubdom target in
>> stubdom/caml/Makefile compiles stubdom/caml/hello.ml and links it with
>> $(CAMLLIB)/libasmrun.a. But this is a library compiled for the
>> development machine platform (linux-i386-glibc) not for the stubdomain
>> platform (minios-i386-newlib).
>>
>> Maybe the original hello.ml only worked through luck, and the fact that
>> it used so very little of the ocaml language.
>
> What environment did you use to compile the stubdom? I tried using Ubuntu
> with George Coker's patch and got the same result as you (page faulting).
> Interestingly, I could use a %s and a string and that seems to work OK, but
> not %d with an int.
>
> When I instead used Debian to compile the stubdom (which requires no
> patch), then I could compile and run your code just fine (no page faults).
> Maybe this is the problem you're having?
>
That's interesting, thanks! I am using Ubuntu intrepid with ocaml version
3.10.2-3ubuntu1.
I don't really like the idea of requiring a Debian build environment as a
solution. It suggests a dependency on something we really don't understand.
Wouldn't it be better to rebuild ocaml under stubdom/ like we do for newlib and
lwip, and the be sure we'll get the same results whatever the build machine?
>
>> In order to run a non trivial ocaml application in a stubdomain (e.g.
>> ocaml xenstored) do I need to port ocaml to minios-i386-newlib?
>
> No, it should be possible as is. In fact, I've gotten my OCaml XenStore to
> run in a caml-stubdom (compiled in a Debian domain).
>
> I'll soon be releasing a patch against the recently released disaggregated
> C xenstored stuff that uses my OCaml XenStore in a caml-stubdom instead.
>
>
Ah, it looks like we've been duplicating the work. I've been working on getting
http://xenbits.xensource.com/ext/xen-ocaml-tools.hg integrated into
xen-unstable.hg. The idea is that by default "make dist" builds the in-tree
xenstored (as both a dom0 daemon and as a stubdom), but by uncommenting a line
in Config.mk it will download xen-ocaml-tools.hg and build that instead (as both
a dom0 daemon and as a stubdom). The choice of whether to run it as a dom0
daemon or as a stubdom is made post-install.
This system allows you to override the url used to get the "remote" xenstored.
The build system does something similar for qemu already.
I'll send you my patches offline.
> Patrick
>
Regards,
Alex
prev parent reply other threads:[~2009-04-03 8:31 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-02 14:38 caml stubdom crashes Alex Zeffertt
2009-04-02 16:22 ` Patrick Colp
2009-04-02 17:19 ` George S. Coker, II
2009-04-02 19:39 ` ocaml?? why?? (was: caml stubdom crashes) Dan Magenheimer
2009-04-02 21:38 ` Samuel Thibault
2009-04-02 22:13 ` Dan Magenheimer
2009-04-02 22:31 ` Samuel Thibault
2009-04-02 23:36 ` Ian Pratt
2009-04-03 0:40 ` Dan Magenheimer
2009-04-03 1:21 ` Ian Pratt
2009-04-02 23:46 ` Anil Madhavapeddy
2009-04-06 10:33 ` John Levon
2009-04-06 13:51 ` ocaml?? why?? Vincent Hanquez
2009-04-06 13:51 ` John Levon
2009-04-06 15:08 ` Vincent Hanquez
2009-04-06 15:29 ` Patrick Colp
2009-04-06 15:38 ` John Levon
2009-04-06 16:44 ` Vincent Hanquez
2009-04-03 8:53 ` caml stubdom crashes Alex Zeffertt
2009-04-03 14:53 ` George S. Coker, II
2009-04-03 21:07 ` Patrick Colp
2009-04-06 13:42 ` Alex Zeffertt
2009-04-03 8:31 ` Alex Zeffertt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49D5C945.7000202@eu.citrix.com \
--to=alex.zeffertt@eu.citrix.com \
--cc=gscoker@alpha.ncsc.mil \
--cc=pjcolp@cs.ubc.ca \
--cc=samuel.thibault@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.