From: shawn du Subject: Re: Running kvm/use/kvmctl just segfault Date: Wed, 16 Sep 2009 17:10:42 +0800 Message-ID: <958448fc0909160210y2229a83cn46e7fe14ac07bba5@mail.gmail.com> References: <958448fc0909130138mc51025el82baeaed545f18c8@mail.gmail.com> <958448fc0909131838m7b6a2ab9heba226feb08c1cd4@mail.gmail.com> <4AADD0D0.3090403@redhat.com> <958448fc0909140012o4edfd4c5p4ecb0f9d0a580e8a@mail.gmail.com> <4AADEE48.4070908@redhat.com> <20090914120743.GA3888@amt.cnet> <958448fc0909140838x4a6109c6g503e98eaac9c4302@mail.gmail.com> <4AAE664F.1060108@redhat.com> <958448fc0909141933w7b78cc38i5dff9166e6bd3115@mail.gmail.com> <4AAF5936.5030303@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Marcelo Tosatti , kvm To: Avi Kivity Return-path: Received: from mail-bw0-f219.google.com ([209.85.218.219]:60493 "EHLO mail-bw0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758118AbZIPJKk convert rfc822-to-8bit (ORCPT ); Wed, 16 Sep 2009 05:10:40 -0400 Received: by bwz19 with SMTP id 19so3344130bwz.37 for ; Wed, 16 Sep 2009 02:10:42 -0700 (PDT) In-Reply-To: <4AAF5936.5030303@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: After debugging with gdb, I find out the mistake is me. It turns out that there should be three configures to do: in qemu-kvm root, in kvm, and in kvm/user, sadly, I missed the one in the middle. So, the consequence is that the definition of the type struct kvm_callbacks is different between kvm/user/main.c and kvm/libkvm/libkvm.c, and the consequence is that the kvm->callbacks->pre_kvm_run is a wild pointer. Still, I don't know it is me or not, the configure in kvm infinitely loops, and says "./configure: line 135: cd: qemu: No such file or directory". Clearly, there misses a qemu directory in kvm. Regards, Shawn On Tue, Sep 15, 2009 at 5:07 PM, Avi Kivity wrote: > On 09/15/2009 05:33 AM, shawn du wrote: >> >> Yes, I am running the latest qemu-kvm.git against the not so latest >> 2.6.27.18 kernel in Ubuntu 8.10. Normal VMs just run smoothly. Is >> there a problem? >> > > It should work. =A0If it doesn't, well, debug it with gdb. > > -- > error compiling committee.c: too many arguments to function > >