[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4EB6E798.3060000@redhat.com>
Date: Sun, 06 Nov 2011 21:01:28 +0100
From: Paolo Bonzini <pbonzini@...hat.com>
To: Pekka Enberg <penberg@...nel.org>
CC: Alexander Graf <agraf@...e.de>,
"kvm@...r.kernel.org list" <kvm@...r.kernel.org>,
qemu-devel Developers <qemu-devel@...gnu.org>,
"linux-kernel@...r.kernel.org List" <linux-kernel@...r.kernel.org>,
Blue Swirl <blauwirbel@...il.com>, Avi Kivity <avi@...hat.com>,
Américo Wang <xiyou.wangcong@...il.com>,
Ingo Molnar <mingo@...e.hu>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH] KVM: Add wrapper script around QEMU to test kernels
On 11/06/2011 08:17 PM, Pekka Enberg wrote:
>> > But I'm pretty certain that, when testing 3.2 with KVM tool in a couple of
>> > years, I want all the shining new features you added in this time; I don't
>> > want the old end-2011 code. Same if I'm bisecting kernels, I don't want to
>> > build KVM tool once per bisection cycle, do I?
>
> If you're bisecting breakage that can be in the guest kernel or the
> KVM tool, you'd want to build both.
No. I want to try new tool/old kernel and old tool/new kernel (kernel
can be either guest or host, depending on the nature of the bug), and
then bisect just one. (*) And that's the exceptional case, and only KVM
tool developers really should have the need to do that.
(*) Not coincidentially, that's what git bisect does when HEAD is
a merge of two unrelated histories.
> What would prevent you from using a newer KVM tool with an older kernel?
Nothing, but I'm just giving you *strong* hints that a submodule or a
merged tool is the wrong solution, and the histories of kernel and tool
should be kept separate.
More clearly: for its supposedly intended usage, namely testing
development kernels in a *guest*, KVM tool will generally not run on the
exact *host* kernel that is in the tree it lives with. Almost never, in
fact. Unlike perf, if you want to test multiple guest kernels you
should never need to rebuild KVM tool!
This is the main argument as to whether or not to merge the tool. Would
the integration of the *build* make sense or not? Assume you adapt the
ktest script to make both the KVM tool and the kernel, and test the
latter using the former. Your host kernel never changes, and yet you
introduce a new variable in your testing. That complicates things, it
doesn't simplify them.
Paolo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists