All of lore.kernel.org
 help / color / mirror / Atom feed
* Xen as a kernel module
@ 2005-01-26  1:24 Jacob Gorm Hansen
  2005-01-26  1:32 ` Kip Macy
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Jacob Gorm Hansen @ 2005-01-26  1:24 UTC (permalink / raw)
  To: Xen-devel

hi,

with Xen increasingly depending on Linux for bootstrap, drivers, packet 
filtering etc., would it make sense to have the option of compiling Xen 
as a Linux kernel module, like in VMWare or coLinux?

It seems this would give similar performance to Xen 1.2, while retaining 
most of the benefits of the NGIO model (i.e. not having to port 
drivers). The only downside would be the lack of driver isolation, but 
most people would be willing to live with that is my guess (plus as long 
as there is no IO-MMU a bad driver is still able to take down the 
complete system anyhow).

I imagine this could be done in a way that would also work under other 
host-OSes, like *BSD or Windows.

Any comments?

Jacob


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 21+ messages in thread
* RE: Xen as a kernel module
@ 2005-01-26  2:34 Neugebauer, Rolf
  2005-01-26  3:12 ` Jacob Gorm Hansen
  2005-01-26  3:57 ` Ronald G. Minnich
  0 siblings, 2 replies; 21+ messages in thread
From: Neugebauer, Rolf @ 2005-01-26  2:34 UTC (permalink / raw)
  To: Jacob Gorm Hansen, Kip Macy; +Cc: Xen-devel



> -----Original Message-----
> From: xen-devel-admin@lists.sourceforge.net [mailto:xen-devel-
> admin@lists.sourceforge.net] On Behalf Of Jacob Gorm Hansen
> Sent: 26 January 2005 02:00
> To: Kip Macy
> Cc: Xen-devel@lists.sourceforge.net
> Subject: Re: [Xen-devel] Xen as a kernel module
> 
> Kip Macy wrote:
> > I'm obviously partisan, but I think that would largely defeat the
> > privilege de-coupling that they're trying to achieve. Not to mention
> > nullifying the notion of a driver domain.
> 
> Is anyone actually using driver domains, other than dom0? It would be
> really cool if hardware vendors started shipping drivers in Xen-VM
> format, but until that happens I do not see much motivation for having
> multiple full Linuxes around just to achieve a limited amount of
> isolation.

I don't think many people currently use separate driver domains and most
people run all their device drivers in dom0 and export them from there.

However, I think it would be foolish to remove the ability to run
separate driver domains from Xen as it doesn't seem to add significant
overhead (over running them in Dom0) and it has the potential of being
extremely useful. You already mentioned the shipping of device drivers,
there might also some interesting security applications. We can
currently already provide some degree of isolation against device driver
bugs and for the DMA issue there are a number of known and existing
solutions (see eg the L4 OSDI device driver paper). The grant-table
design (unfortunately not fully implemented yet) with some form of
IO-MMU should provide the rest of the isolation.

The interfaces exported by Xen (for PCI config space, IO register
access, and interrupts) should be generic enough to support other OSes
as driver domains and the virtual device interfaces should be easily
implementable in other OSes too. Again, I think it would be foolish to
limit ourselves to Linux in this regard as your original post seems to
suggest. I think it would be great to see other OSes being used as
driver domains.

> It is no secret that I much preferred the old and simpler model, but I
> understand that noone likes having to port drivers, and I guess this
is
> one reason for the current state of things. With Xen inside the host
OS
> kernel, you would get the performance of the old model, and the ease
of
> development of the new model, plus potentially the option of running
Xen
> on millions of Windows-desktops (I am sure the Silicon Valley VCs
would
> love to hear that ;-)).
> 
> With all the OSes currently ported to Xen, the Xen hypercall interface
> could become a de-facto standard for paravirtualized OSes, especially
if
> Xen were able to run on top of Windows as well as on top of Linux.

I think it would be harder to come up with OS agnostic/generic
interfaces for Xen to be used inside a host OS (essentially sliding Xen
underneath a OS) than with generic abstractions which a OS can
use...plus there is the privilege decoupling issue Kip already raised. 

The current plan to move some of the platform init code out of Xen into
a VM will certainly make this slightly more complicated (eg having the
IOAPIC initialized by a VM and then handing control back to Xen) but I
hope we will come up with a generic interface for Xen to deal with
possibly different OSes to perform this task. At least that's something
I am advocating.

Rolf



> Jacob
> 
> 
> -------------------------------------------------------
> 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
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 21+ messages in thread
* RE: Xen as a kernel module
@ 2005-01-26 11:41 Ian Pratt
  0 siblings, 0 replies; 21+ messages in thread
From: Ian Pratt @ 2005-01-26 11:41 UTC (permalink / raw)
  To: Jacob Gorm Hansen, Neugebauer, Rolf; +Cc: Kip Macy, Xen-devel

 
> Secondly, there have been repeated reports on this list of 
> people having 
> problems with lower performance in domU than in dom0, perhaps due to 
> cheap hardware, perhaps just due to misconfiguration, 

I think most of these problems were down to debugging accidently getting
enabled in the stable build. We seem to be back to normal performance
now.

I think there are still some issues with particular ioapic's, but this
code is about to get rewritten and moved into dom0 anyhow. 

> and the 
> figures on 
> the Xen website have not been updated to reflect what the actual 
> situation is, so I guess nobody knows what the overhead will 
> look like 
> for a specific type of application. 

The performance figures for SPECCPU, OSDB/PostgreSQl, SPECWeb99/Apache,
Postmark etc are pretty much identical between 2.0 and 1.2 --- see the
"Safe Hardware Access with the Xen Virtual Machine Monitor" paper. The
new IO model tends to burn more CPU for a given IO rate, but under high
load things pipeline reasonably nicely and the privilege transitions are
amortized. Latency does suffer, but it was never that great under 1.2
anyhow. Smarter NICs will help this a lot (e.g. see the Arsenic paper by
myself and Keir).

Ian


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2005-01-29  2:15 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-26  1:24 Xen as a kernel module Jacob Gorm Hansen
2005-01-26  1:32 ` Kip Macy
2005-01-26  1:59   ` Jacob Gorm Hansen
2005-01-26  4:30 ` Ronald G. Minnich
2005-01-26  8:41 ` Steven Hand
2005-01-26 23:19   ` Jacob Gorm Hansen
2005-01-27 15:05     ` Tobias Hunger
2005-01-28 18:32       ` Mark Williamson
2005-01-28 20:09       ` Jacob Gorm Hansen
2005-01-27 13:30   ` Mark Williamson
  -- strict thread matches above, loose matches on Subject: below --
2005-01-26  2:34 Neugebauer, Rolf
2005-01-26  3:12 ` Jacob Gorm Hansen
2005-01-26  7:55   ` Keir Fraser
2005-01-27 13:24   ` Mark Williamson
2005-01-28 20:59     ` Ronald G. Minnich
2005-01-28 23:16       ` Jacob Gorm Hansen
2005-01-28 23:26         ` Ronald G. Minnich
2005-01-28 23:29           ` Jacob Gorm Hansen
2005-01-29  2:15           ` Adam Sulmicki
2005-01-26  3:57 ` Ronald G. Minnich
2005-01-26 11:41 Ian Pratt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.