Thanks Bruce for the detailed explanation. I have seen various diagrams explaining some of the concepts you've highlighted here.<br><br>Teh only thing I don't quite get is how the hypervisor controls the hardware by using dom0's kernel modules.<br>
<br><div class="gmail_quote">2009/5/8 Bruce Richardson <span dir="ltr"><<a href="mailto:itsbruce@workshy.org">itsbruce@workshy.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Fri, May 08, 2009 at 10:41:42AM +0100, Nahuel wrote:<br>
><br>
> I was wondering what's the difference in performance between linux running<br>
> in dom0 and no VMs (domUs) running compared to native linux.<br>
> Obviously if you use something like virtualbox when there are no VMs running<br>
> you just have linux running natively so you have no performance penalties.<br>
> Is it the same if you're running Xen with no hosts?<br>
<br>
</div>No. Virtualbox, like User-mode-Linux, is a process that is run by the<br>
Linux kernel; stop the process and virtualition goes away. The host<br>
Linux kernel is running at the most privileged level and grants<br>
privileges to the virtualbox guests. With Xen, it's the Xen hypervisor<br>
that runs first and it then runs (and grants privileges to) the Linux<br>
Dom0.<br>
<br>
Another way of saying this is that on a normal Linux system, the kernel<br>
runs at Ring 0 and has complete control of the PC's archtecture, whereas<br>
under Xen the hypervisor is at Ring 0 and the guest domains are at ring<br>
1 or 3 and are presented with a partial view of the computer's resources<br>
that is controlled by the hypervisor.<br>
<br>
The Xen hypervisor uses the Dom0's kernel modules to control the PC<br>
hardware, but it's the hypervisor that is in charge. The Dom0 is *not*<br>
the same as a regular Linux kernel; it has to be specially compiled with<br>
Xen as a target.<br>
<div class="im"><br>
><br>
> Does it affect the way linux runs in any way?<br>
<br>
</div>It's a complex subject. Here are some potentially useful links:<br>
<br>
<a href="http://en.wikipedia.org/wiki/Ring_%28computer_security%29" target="_blank">http://en.wikipedia.org/wiki/Ring_(computer_security)</a><br>
<a href="http://en.wikipedia.org/wiki/Xen" target="_blank">http://en.wikipedia.org/wiki/Xen</a><br>
<a href="http://www.dell.com/downloads/global/power/ps3q05-20050191-Abels.pdf" target="_blank">http://www.dell.com/downloads/global/power/ps3q05-20050191-Abels.pdf</a><br>
<font color="#888888"><br>
--<br>
Bruce<br>
<br>
Explota!: miles de lemmings no pueden estar equivocados.<br>
</font><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
<br>
iEYEARECAAYFAkoEmXEACgkQtkVqYTMBSwHSkgCffwLGKMvSl7YqD1NiSeCXzy9y<br>
440An2pqGf71KyzsAhE8gvhVqfPG4iWG<br>
=RIdL<br>
-----END PGP SIGNATURE-----<br>
<br>--<br>
Gllug mailing list - <a href="mailto:Gllug@gllug.org.uk">Gllug@gllug.org.uk</a><br>
<a href="http://lists.gllug.org.uk/mailman/listinfo/gllug" target="_blank">http://lists.gllug.org.uk/mailman/listinfo/gllug</a><br>
<br></blockquote></div><br>