Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Use mini-os as the Xen layer #95

Open
izgzhen opened this issue Jan 1, 2017 · 1 comment
Open

Use mini-os as the Xen layer #95

izgzhen opened this issue Jan 1, 2017 · 1 comment
Milestone

Comments

@izgzhen
Copy link
Contributor

izgzhen commented Jan 1, 2017

This is not proposed by me but by @acw , but I have investigated into it a bit. Discussion or correction is welcomed.

My current conclusion is we can't use mini-OS as a drop-in replacement for the rts/xen right now, because interfaces implemented by mini-OS is not a super-set of rts/xen. For example, in libc, we assume a mremap syscall, which is provided by the runtime_realloc in rts/xen indirectly. However, mini-OS doesn't implement this at all.

Also, locks and signals are also something unique to rts/xen.

However, mini-OS has better support for other features in POSIX, esp. when file descriptor is involved.

So here are two ways to go:

  • Keep maintaining the rts/xen and add more features incrementally
  • Implement missing features in mini-OS
@acw
Copy link
Contributor

acw commented Jan 4, 2017

Just to be clear, replacing rts/xen with mini-os is a HaLVM3 task, and I do not expect HaLVM3 to be a natural progression from HaLVM2.

In particular, in HaLVM3, I plan to completely remove rts/xen, and build GHC using the existing build system using the POSIX backend. This POSIX backend will then link against our custom copy of musl, which will then link against one of our low-level options (mini-os, solo5, the Linux kernel, etc.).

@acw acw added v3.0 and removed v3.0 labels Mar 24, 2017
@acw acw added this to the HaLVM 3.0 milestone Mar 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants