From: Tobias Hunger Subject: Re: Xen as a kernel module Date: Thu, 27 Jan 2005 16:05:15 +0100 Message-ID: <200501271605.19343.tobias@aquazul.com> References: <41F8257E.608@diku.dk> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1226001.8Ksts2dXm0"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <41F8257E.608@diku.dk> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org --nextPart1226001.8Ksts2dXm0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 27 January 2005 00:19, Jacob Gorm Hansen wrote: > Sorry if this came out sounding as a bit of a troll, anyway, my > suggested setup would look like this: > > [ VM1 ] [ VM2 ] .... [ VMN ] > > [ Xen + linux kernel ] > > [ hardware ] I am interested in fast VMs. Assuming that you want dom0 to be '[ Xen + lin= ux=20 kernel ]' I fail to see how your proposed architecture helps there. > Right now Xen is mapped somewhere in top of memory, I am not sure how > domains are kept out of there, but I suppose it has to do with segments. As I understand this xen runs in ring0 and pushes the guests kernels one ri= ng=20 up into ring1 and then uses traps to allow the guest OSes to trap into the= =20 hypervisor as necessary. > The good thing about that is that hypercalls are cheap, and in Xen1.x > I/O was cheap as well. Cheap where? In dom0 or the VMs? > My suggestion/question was a) why don't we just put a full Linux up > there, including drivers, and b) can we provide the Xen hypercall > interface on top of other OSes as well? a) Because that impacts security and robustness a lot. Security and=20 robustness are the two attributes I want in software, especially a kernel.= =20 This is even more true for a hypervisor. b) I don't understand what you are going at in b).=20 > > What aspects of performance under Xen are you finding unacceptable? > > I generally find performance acceptable, but as I said there are cases > where there appears to be some friction against the goals of Xen (driver > isolation) and the goals of the application (throughput, low latency). Hmmm.... adding a layer of abstraction rarely improves throughput/latency. = You=20 do it anyway to gain flexibility. I do not like you proposal as it sacrific= es=20 flexibility I want for throughput/latency in a place I don't care about. > > Well isolation (both security and performance) are two explicit > > design goals of Xen. If you want to have the illusion of multiple > > kernels without these properties, you can use linux vservers or > > BSD jail. Please keep those goals! > I would argue that you could get the same level of isolation (except > from driver isolation) if you merge the two, while achieving the same IO > performance as the monolithic model, and still be able to reuse existing > driver code. I fail to see where monolithic kernel comes into this... I assume you are=20 referring to kernel running on a real machine instead of a virtual one. Your proposal would force me to have all network traffic pass through dom0,= =20 the system able to halt all VMs on the machine! I'd feel extremely nervous= =20 with such a setup (OK, I am paranoid;-). You do that to improve IO performance in dom0, which is the one virtual=20 machine that I do not need IO performance: dom0 is meant on my systems to b= e=20 able to setup VMs and nothing more (currently I use 16MiB of RAM for that=20 domain). All work is done in other domains. Those can no longer access=20 hardware directly with your proposal, thus it would even hurt IO performanc= e=20 for me. > It would still be interesting to reuse existing Xen guestOS ports on top > of different hypervisor implementations. The critical part of the hypervisor (from the perspective of a guest OS) is= =20 the interface. That seems well defined and wouldn't need to change with you= r=20 proposal. So you should not need to modify domU OSes. Your needs seem to be to have a fast dom0 and only spin of small sessions=20 occasionally, doing most of the work in dom0. Mine is to have several serve= rs=20 sharing a piece of hardware. Dom0 is mostly idling while the other domains = do=20 the heavy lifting. My hope is that I will see more proposals about reducing= =20 the coupling of xen and dom0 (like being able to reboot dom0 without=20 effecting the other domains). I have no relation with the xen project apart= =20 from using it, so I may only give my feelings. =2D-=20 Gruss, Tobias =2D----------------------------------------------------------- Tobias Hunger The box said: 'Windows 95 or better' tobias@aquazul.com So I installed Linux. =2D----------------------------------------------------------- --nextPart1226001.8Ksts2dXm0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBB+QMvv0FZW3NyoqURAhrmAJ4t9dhgpQpuryyXNkdVGjCnSgoYhgCeIp6B qZot8j1LpNukcls5bvGgM8k= =XmN3 -----END PGP SIGNATURE----- --nextPart1226001.8Ksts2dXm0-- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl