[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] [ANN] LuaJIT on Xen



On Sat, 2013-09-14 at 18:31 +0100, Justin Cormack wrote:
> I have been working with Antti Kantee on running scripting languages
> directly on Xen, and have got LuaJIT running.

This is really cool! You might want to announce on xen-devel too since
this work is likely to be of more interest to developers in the
short-term.

Ian.

> 
> Essentially this is a build of a modified version of the Xen "Mini-os"
> which provides a small stub to handle basic Xen functions like memory
> allocation, combined with NetBSD kernel components to provide
> networking and file system access if required, plus NetBSD libc to
> provide enough to build and run normal C code. Then the build system
> creates an executable 'kernel' that Xen can run which combines LuaJIT
> and example bytecode-compiled Lua scripts.
> 
> The current example compiles the ljsyscall test suite, just to show
> how the build works.
> 
> Some things are not yet supported, like fork, exec, dynamic libraries,
> mmap other than a small stub.
> 
> All code is MIT or BSD licensed.
> 
> https://github.com/justincormack/rumpuser-xen
> 
> Compiling other languages should be relatively possible too in principle.
> 
> Currently it only works with 32 bit LuaJIT, it needs some fixes to
> mmap for 64 bit support. The build process is not very nice, and will
> be improved.
> 
> You should be able to compile C libraries and add support, the base
> environment is much like NetBSD, so much stuff compiles. You can use
> the Lua ffi for stuff thats linked into the binary, but you will need to
> tweak the (quick hack) ljsyscall/examples/dl.c script which handles
> dlsym that the ffi uses, as static linking does not provide dlsym. Ask
> for help on github if you have issues.
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxx
> http://lists.xen.org/xen-users



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.