zlacker

[parent] [thread] 5 comments
1. plesn+(OP)[view] [source] 2010-04-07 14:34:36
Could someone point me at a clear explanation of the difference between a micro-kernel and an hypervisor?

Maybe I need to see something like the Xen presentation at Fosdem again.

Edit: http://www.ok-labs.com/blog/entry/microkernels-vs-hypervisor... is quite ok.

replies(2): >>Andrew+P1 >>kmavm+D3
2. Andrew+P1[view] [source] 2010-04-07 15:05:00
>>plesn+(OP)
I'm not an expert, but I'll give it a try.

A hypervisor runs multiple Operating Systems, having each one think that it has access to the whole of the hardware.

A microkernel is one way of writing the kernel of the Operating System, so that each part of it is a separate process, routing messages to each other in a safe manner to get things done, rather than doing direct calls to each others code.

With a hypervisor you wouldn't expect each of the OSes to have any communication with each other at all, whereas with a microkernel you'd expect the different processes to talk to each other a lot.

You can, apparently, repurpose a microkernel as a hypervisor, but I don't know anything about that at all. Presumably the infrastructure is quite similar.

replies(2): >>gaius+83 >>soren+A5
◧◩
3. gaius+83[view] [source] [discussion] 2010-04-07 15:29:49
>>Andrew+P1
Yes, the Mach microkernel can host multiple OSs. In practice this is rarely done.
4. kmavm+D3[view] [source] 2010-04-07 15:36:56
>>plesn+(OP)
The distinction has never been well-posed, in my opinion. I wrote about it (gulp) almost five years ago here:

http://x86vmm.blogspot.com/2005/11/xen-and-redhat.html

Both present "virtual machines" to client code. For that matter, so does UNIX, although the UNIX virtual machine has some very complex virtual instructions, like fork(2), exec(2), dup(2), etc. You can crudely map most software platforms on a continuum of abstraction, with something like Python's implicit virtual machine (which is dynamically typed and bound late) at one extreme, and a bare-metal VMM whose interface is identical to that of the underlying hardware at the other.

Both paravirtual hypervisors and microkernels extend the underlying hardware, and they do so at a lower level of abstraction than what we call an OS. In practice, the hypervisors extensions feel more like hardware (they might include device models, virtual memory translation, and interrupt models), while the microkernel's would feel more like software (providing RPC mechanisms, security models, abstractions like "thread" and "process", etc.).

Even in practice the line is grey sometimes. L4 used to call itself a microkernel; now it calls itself a hypervisor.

replies(1): >>plesn+rU
◧◩
5. soren+A5[view] [source] [discussion] 2010-04-07 16:25:04
>>Andrew+P1
An example for a microkernel running a Linux OS is L4Linux (http://os.inf.tu-dresden.de/L4/LinuxOnL4/overview.shtml).

There is a lot of controversy about the distinction between VMMs and microkernels. A view from the microkernel side is given in http://www.ertos.nicta.com.au/publications/papers/Heiser_UL_...

◧◩
6. plesn+rU[view] [source] [discussion] 2010-04-08 20:42:36
>>kmavm+D3
Oh, I forgot to thank you, very interesting post.
[go to top]