From: Alexander Graf <agraf@suse.de>
To: Ingo Molnar <mingo@elte.hu>
Cc: Pekka Enberg <penberg@kernel.org>, Jan Kiszka <jan.kiszka@web.de>,
torvalds@linux-foundation.org, avi@redhat.com,
akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
kvm@vger.kernel.org, gorcunov@gmail.com, levinsasha928@gmail.com,
asias.hejun@gmail.com, prasadjoshi124@gmail.com
Subject: Re: [GIT PULL] Native Linux KVM tool for 3.1
Date: Mon, 25 Jul 2011 11:03:32 +0200 [thread overview]
Message-ID: <C80CB058-38B3-4EA4-996F-4585F521415C@suse.de> (raw)
In-Reply-To: <20110725085426.GA28787@elte.hu>
On 25.07.2011, at 10:54, Ingo Molnar wrote:
>
> * Alexander Graf <agraf@suse.de> wrote:
>
>> On 25.07.2011, at 09:53, Ingo Molnar wrote:
>>
>>>
>>> * Pekka Enberg <penberg@kernel.org> wrote:
>>>
>>>> On Mon, Jul 25, 2011 at 2:12 AM, Jan Kiszka <jan.kiszka@web.de> wrote:
>>>>>
>>>>> That said, I definitely appreciate the bug fixes as well as
>>>>> code and documentation improvements for KVM that originate from
>>>>> this effort! I'm just not convinced that writing a new userland
>>>>> and merging it into the kernel is the most efficient way to
>>>>> achieve that.
>>>>
>>>> Just to make this crystal clear for everyone: if it weren't for
>>>> tools/kvm, I wouldn't be hacking on KVM at all. I've looked at
>>>> Qemu in the past (and a lot recently!) and I simply don't see
>>>> myself contributing to it, sorry. So 'most efficient' or not, I
>>>> think tools/kvm is a net win for Linux and KVM in general.
>>>
>>> Same here - in fact i first asked Qemu to be put into tools/qemu/
>>> so that it all becomes more hackable and more usable - that
>>> suggestion was rebuked very strongly.
>>
>> So instead of thinking a bit and trying to realize that there might
>> be a reason people don't want all their user space in the kernel
>> tree you go ahead and start your own crusade of creating a new user
>> space. Great. That's how I always hoped Linux would be :(.
>
> Not "all their user space" but the ones that are tightly integrated
> with the kernel to begin with. How hard is that concept to
> understand?
It's very hard to understand. It's similar to religion - I could easily apply your point to every reasonably low-level user space project out there. X for example. X needs to interact with KMS and DRI and whatdoiknow. So it'd be a perfect fit to pull into tools/, no?
> Virtualization is very tightly bound to the kernel, like it or not.
I don't see why. The whole point of virtualization is to model simple, with KVM preferably even very-close-to-real-hardware interfaces that allow you to keep things separate.
> So is profiling, power management and a few other things.
I'm also failing to see the reasoning here TBH.
> And when you do 'ls tools/' you'll see exactly those topics
> populated:
>
> earth5:~/tip> ls tools/
> firewire kvm perf power slub testing usb virtio
>
> [ In fact tools/virtio/ was merged upstream yesterday and putting
> that code there was a good call IMO. ]
>
> So just as there are good reasons to keep some user-space projects
> out of the kernel tree (while i'd love to see a usable mail client
> for Linux i dont think it belongs into tools/) there are similarly
> good reasons to keep some of them in the kernel tree.
>
> tools/kvm/ is an excellent example for that, just look at the code -
> it shares code with the kernel, uses the kernel coding style, is in
> significant part developed by kernel developers and it is being used
> by kernel developers.
Then make a separate tree, add the kernel as git submodule and simply pull in your library/header dependencies from there. Shouldn't be too hard, no?
> I wish there was a hackable tools/qemu/ base but there isnt and won't
> be any. The thing i *can* do is to help create a hackable
> virtualization tool.
What's the problem with a code base that's hackable, but not in tools/?
>
>>> So i wanted to have a lightweight tool that allows me to test KVM
>>> and tools/kvm/ does that very nicely: i type './kvm run' and i
>>> can test a native bzImage (which has some virtualization options
>>> enabled as well) on the _host_ distro i am running, booting to a
>>> text shell prompt.
>>
>> I do that all the time.
>>
>> $ qemu-kvm -nographic -kernel arch/x86/boot/bzImage -append console=ttyS0
>>
>> does the exact same thing. If that's too much typing for you, make
>> it a bash alias.
>
> This only boots the bzImage itself and panics when it would like to
> hit user-space.
Well, sure.
>
>>> I can do that without downloading any (inevitably outdated)
>>> virtualization images or maintaining my own ones. Maintaining
>>> host userspace is more than enough for me.
>>
>> Who would need images? I usually only run -kernel and -initrd
>> directly to test out things. Or if I really want to boot into a
>> real system I do -snapshot /dev/sda.
>
> that too panics here, while with tools/kvm/ i get to a prompt:
>
> [root@aldebaran ~]# uptime
> 08:42:13 up 0 min, 0 users, load average: 0.00, 0.00, 0.00
>
> But i agree with you that obviously Qemu (or my usage of parameters,
> whichever is the problem) could be fixed to do this correctly.
Well, you need to make sure to pass the right partition into -append. No idea what ./kvm run does, but it's certainly something easily scriptable with any other virtualization user land.
>
>>> So, since we already have the lguest tool in the kernel tree, why
>>> cannot we have the much more capable tools/kvm/ in the tree?
>>
>> Lguest is in Documentation/ for a reason. It's not meant as a user
>> space tool that you take as-is and use. It's meant for documenting
>> how lguest works in general. I admit though, that that's also the
>> reason people don't use it :).
>
> There's an obvious contrast with the request to merge tools/kvm/ to
> lguest (not brought up by me) and your description of lguest only
> being for documentation purposes, not to be used really, etc.
>
> I wanted to highlight this contrast, so if you thought we disagree
> much about lguest i don't think we do.
I don't think we disagree about lguest :).
>
>>> So while it is the Qemu folks' right to oppose tools/qemu/, i
>>> don't see why they are opposing tools/kvm/ ...
>>
>> In your logic, you would put all of the GNU utils into tools/. This
>> is just plain insane. There's a reason we have the split between
>> kernel and user space. What does putting them into the same tree
>> bring you? Fame? Glorious stats on kernel commits? Seriously, it's
>> a separate project. It's not the kernel.
>
> Where did i claim that *all* user-space projects need to move into
> the kernel tree? It's all case by case. Before you argue against a
> position and ridicule it you need to understand it.
I'm slightly exaggerating, but that's the trend I'm seeing.
Alex
next prev parent reply other threads:[~2011-07-25 9:03 UTC|newest]
Thread overview: 70+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-24 20:37 Pekka Enberg
2011-07-24 23:12 ` Jan Kiszka
2011-07-25 7:37 ` Pekka Enberg
2011-07-25 7:53 ` Ingo Molnar
2011-07-25 8:14 ` Alexander Graf
2011-07-25 8:23 ` Pekka Enberg
2011-07-25 8:31 ` Alexander Graf
2011-07-25 8:35 ` Avi Kivity
2011-07-25 13:10 ` Joerg Roedel
2011-07-25 15:05 ` Avi Kivity
2011-07-25 8:37 ` Pekka Enberg
2011-07-25 8:44 ` Alexander Graf
2011-07-25 8:51 ` Pekka Enberg
2011-07-25 8:55 ` Alexander Graf
2011-07-25 9:16 ` Ingo Molnar
2011-07-25 9:14 ` Ingo Molnar
2011-07-25 8:30 ` Pekka Enberg
2011-07-25 8:37 ` Alexander Graf
2011-07-25 8:47 ` Pekka Enberg
2011-07-25 9:06 ` Alexander Graf
2011-07-25 12:45 ` Pekka Enberg
2011-07-25 12:47 ` Avi Kivity
2011-07-25 12:51 ` Sasha Levin
2011-07-25 12:54 ` Alexander Graf
2011-07-25 13:14 ` Sasha Levin
2011-07-25 12:51 ` Alexander Graf
2011-07-25 13:09 ` Pekka Enberg
2011-07-25 13:29 ` Alexander Graf
2011-07-25 9:26 ` Ingo Molnar
2011-07-25 9:42 ` Alexander Graf
2011-07-25 10:16 ` Ingo Molnar
2011-07-25 10:21 ` Alexander Graf
2011-07-25 10:35 ` Ingo Molnar
2011-07-25 10:47 ` Ingo Molnar
2011-07-25 12:24 ` Kevin Wolf
2011-07-25 12:41 ` Pekka Enberg
2011-07-25 12:46 ` Avi Kivity
2011-07-25 8:54 ` Ingo Molnar
2011-07-25 8:59 ` Ingo Molnar
2011-07-25 9:03 ` Alexander Graf [this message]
2011-07-25 9:41 ` Ingo Molnar
2011-07-25 9:46 ` Alexander Graf
2011-07-25 10:28 ` Ingo Molnar
2011-07-25 9:48 ` Avi Kivity
2011-07-25 10:03 ` Ingo Molnar
2011-07-25 10:17 ` Avi Kivity
2011-07-25 10:29 ` Ingo Molnar
2011-07-25 11:26 ` Olivier Galibert
2011-07-25 10:38 ` Christoph Hellwig
2011-07-25 11:08 ` Ingo Molnar
2011-07-25 11:24 ` Christoph Hellwig
2011-07-25 11:32 ` Ingo Molnar
2011-07-25 11:34 ` Olivier Galibert
2011-07-25 11:41 ` Christoph Hellwig
2011-07-25 12:09 ` Ingo Molnar
2011-07-25 12:36 ` Pekka Enberg
2011-07-25 19:21 ` david
2011-07-25 18:24 ` Jan Kiszka
2011-07-25 19:43 ` Pekka Enberg
2011-07-25 7:50 ` Sasha Levin
2011-07-25 8:34 ` Alexander Graf
2011-07-25 12:59 ` Paolo Bonzini
2011-07-25 13:16 ` Anthony Liguori
2011-07-25 1:19 ` Anthony Liguori
2011-07-25 7:27 ` Pekka Enberg
2011-07-25 7:36 ` Avi Kivity
2011-07-25 7:39 ` Pekka Enberg
2011-07-25 7:55 ` Sasha Levin
[not found] ` <CAFO3S428qqUAu19QjPxDDAVv+eJSX0MEfYp5y03znNi6XbEtTg@mail.gmail.com>
2011-07-25 8:11 ` Ingo Molnar
2011-07-25 8:17 ` Pekka Enberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C80CB058-38B3-4EA4-996F-4585F521415C@suse.de \
--to=agraf@suse.de \
--cc=akpm@linux-foundation.org \
--cc=asias.hejun@gmail.com \
--cc=avi@redhat.com \
--cc=gorcunov@gmail.com \
--cc=jan.kiszka@web.de \
--cc=kvm@vger.kernel.org \
--cc=levinsasha928@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=penberg@kernel.org \
--cc=prasadjoshi124@gmail.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®