xen-users
[Xen-users] Re: Merge Xen (the hypervisor) into Linux
To: |
Joel Becker <Joel.Becker@xxxxxxxxxx> |
Subject: |
[Xen-users] Re: Merge Xen (the hypervisor) into Linux |
From: |
Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> |
Date: |
Wed, 3 Jun 2009 08:59:05 +0100 |
Cc: |
"jeremy@xxxxxxxx" <jeremy@xxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>, "jens.axboe@xxxxxxxxxx" <jens.axboe@xxxxxxxxxx>, "npiggin@xxxxxxx" <npiggin@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "kurt.hackel@xxxxxxxxxx" <kurt.hackel@xxxxxxxxxx>, "x86@xxxxxxxxxx" <x86@xxxxxxxxxx>, Stephen Spector <stephen.spector@xxxxxxxxxx>, "avi@xxxxxxxxxx" <avi@xxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxx>, Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "wimcoekaerts@xxxxxxxxxxxx" <wimcoekaerts@xxxxxxxxxxxx>, Steven Rostedt <rostedt@xxxxxxxxxxx>, Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, ksrinivasan <ksrinivasan@xxxxxxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxxxxx>, "gregkh@xxxxxxx" <gregkh@xxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, "EAnderson@xxxxxxxxxx" <EAnderson@xxxxxxxxxx>, "torvalds@xxxxxxxxxxxxxxxxxxxx" <torvalds@xxxxxxxxxxxxxxxxxxxx>, David Miller <davem@xxxxxxxxxxxxx> |
Delivery-date: |
Thu, 04 Jun 2009 01:51:39 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<20090603010000.GE31976@xxxxxxxxxxxxxxx> |
List-help: |
<mailto:xen-users-request@lists.xensource.com?subject=help> |
List-id: |
Xen user discussion <xen-users.lists.xensource.com> |
List-post: |
<mailto:xen-users@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe> |
References: |
<162f4c90-6431-4a2a-b337-6d7451d7b11e@default> <20090528001350.GD26820@xxxxxxx> <4A1F302E.8030501@xxxxxxxx> <20090528.210559.137121893.davem@xxxxxxxxxxxxx> <4A1FCE8E.2060604@xxxxxxxxxxxxx> <20090602224051.GB32428@xxxxxxxxxxx> <20090602232843.GA6577@xxxxxxx> <20090603010000.GE31976@xxxxxxxxxxxxxxx> |
Sender: |
xen-users-bounces@xxxxxxxxxxxxxxxxxxx |
> The biggest reason I personally want Xen to be in mainline is
> PVM. Dropping PVM is, to me, pretty much saying "let's merge Xen
> without taking the useful parts."
PVM is and has been for a long time a messaging parallel machine. Can you
not misuse the abbreviation in confusing ways (especially in email I read
in the morning ;))
Merging just hardware assisted vm support initially might be a perfectly
sensible path.
> Like Chris said, if we have technical hurdles for Xen to cross,
> let's get them out in the open and fixed. If previous Xen developer
> interaction has left a bad taste in people's mouths, then the current
> crew has to make it up to us. But we have to be willing to notice
> they're doing so.
Start by changing the mentality. Right now much of the patched code looks
like "We made a decision years ago when creating Xen. Now we need to
force that code we wrote into Linux somehow".
Stuff gets merged a lot better if the thinking is "how do we make the
minimal changes to the existing kernel, cleanly and with minimal
inter-relationships". Only after that do you worry about whether
the existing in kernel interfaces are right.
There is a simple reason for this: Changing an interface in the kernel is
a consensus finding process around all visible users of the interface.
It's much easier to do that as a follow up. That way you can bench
alternatives, test if it harms any of the users and merge change sets
that span all the various users of the interface in one go.
It's also frequently the case that when you have a simple clean interface
that doesn't fit some in tree users it becomes blindly obvious what it
should look like.
So I would suggest the path is
- Use existing interfaces
- Merge chunks of the Xen code without worrying too much about performance
in Xen but worry in detail about bare metal performance
- Don't worry about "hard" problems initially - eg with PAE just use the
paravirt CPUID hook and deny having PAE to begin with
- Where there isn't a clean simple interface try as hard as possible to
build some glue code using existing interfaces in the kernel
When it works, doesn't harm bare metal performance and is merged then go
back and worry about the harder stuff, optimisation and fine tuning. It
doesn't even need to be able to run all guests or all configurations
initially.
Also please can folks get out of the "how do we merge Xen" mentality into
the "How do we create dom0 functionality for Xen in Linux" - don't
pre-suppose the existing implementation is right.
Alan
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-users] Re: Xen is a feature, (continued)
- [Xen-users] Re: Merge Xen (the hypervisor) into Linux, Joel Becker
- [Xen-users] Re: Merge Xen (the hypervisor) into Linux, david
- [Xen-users] Re: Merge Xen (the hypervisor) into Linux,
Alan Cox <=
- Message not available
- [Xen-users] Re: Merge Xen (the hypervisor) into Linux, Theodore Tso
- [Xen-users] Re: Merge Xen (the hypervisor) into Linux, Steven Rostedt
- Message not available
- [Xen-devel] Re: Merge Xen (the hypervisor) into Linux, David Miller
- [Xen-users] Re: Merge Xen (the hypervisor) into Linux, Steven Rostedt
- [Xen-users] Re: Merge Xen (the hypervisor) into Linux, Gerd Hoffmann
- [Xen-users] Re: Merge Xen (the hypervisor) into Linux, Alan Cox
- [Xen-users] Re: Merge Xen (the hypervisor) into Linux, Gerd Hoffmann
- [Xen-users] Re: Merge Xen (the hypervisor) into Linux, Keir Fraser
- [Xen-users] Re: Merge Xen (the hypervisor) into Linux, Theodore Tso
- [Xen-users] Re: Merge Xen (the hypervisor) into Linux, Keir Fraser
|
|
|