5 ms·
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 presentati
by plesn 17y ago
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-hypervisors/ http://www.ok-labs.com/blog/entry/microkernels-vs-hypervisor... is quite ok.
- AndrewDucker 17y agoI'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.
- gaius 17y agoYes, the Mach microkernel can host multiple OSs. In practice this is rarely done.
- soren 17y agoAn example for a microkernel running a Linux OS is L4Linux (http://os.inf.tu-dresden.de/L4/LinuxOnL4/overview.shtml 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_06.pdf http://www.ertos.nicta.com.au/publications/papers/Heiser_UL_...
- kmavm 17y agoThe 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 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.
- plesn 17y agoOh, I forgot to thank you, very interesting post.