User: Password:
Subscribe / Log in / New account

A look at Xen

A look at Xen

Posted Jun 24, 2005 17:21 UTC (Fri) by tsinclai (guest, #11399)
Parent article: A look at Xen

I've been following this project for quite some time and am looking forward to trying it out.

As a technical instructor, this would seem to make setting up a virtual network in a classroom
much easier. Our Windows classes use Virtual PC for that purpose right now, but I prefer a
Free (as well as free) solution.

Am I right in thinking that Xen takes a different tack than VMWare?

(Log in to post comments)

A look at Xen

Posted Jun 24, 2005 23:34 UTC (Fri) by erich (guest, #7127) [Link]

Do you know the basics of OS programming? About the ring model?
They are mentioned in

Xen runs in ring-0, requiring the OS to run in the lower rings.
Usually linux itself is in ring 0; userspace apps run in ring 2 or 3.
Basically, inner rings have more privileges, and are protected from outer rings.
Xen manages the memory on a high level, and linux instead of just handling memory itself, requests memory from xen via special calls. Basically thats the same way, the linux kernel is protected from userspace applications.

If Linux would try to do it directly, it would cause a segmentation fault; but having this protection, it cannot trash xen or the other vms.

VMWare probably detects these calls in the binary and replaces that code. VMware is MUCH closer to emulating a separate PC; Xen just takes away some privileges from the OS in order to separate them, and requires the OS to "politely ask" for the resources. Thats why you need a different kernel.
But since everything accessing the hardware is handled by the linux kernel, all changes needed for Xen are within the kernel.

A look at Xen

Posted Jul 1, 2005 14:55 UTC (Fri) by tsinclai (guest, #11399) [Link]

I *am* familiar with OS programming and the ring model, but I've never used VMWare and I wasn't
clear on how the Xen memory model worked.

However, you gave a good, clear explanation and I appreciate that.

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds