From patchwork Fri Jul 17 23:59:01 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 36141 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6HNxcNE018719 for ; Fri, 17 Jul 2009 23:59:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751257AbZGQX7c (ORCPT ); Fri, 17 Jul 2009 19:59:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751932AbZGQX7c (ORCPT ); Fri, 17 Jul 2009 19:59:32 -0400 Received: from mx2.redhat.com ([66.187.237.31]:42880 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750958AbZGQX7b (ORCPT ); Fri, 17 Jul 2009 19:59:31 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6HNxV0P020375; Fri, 17 Jul 2009 19:59:31 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n6HNxSEn028375; Fri, 17 Jul 2009 19:59:28 -0400 Received: from amt.cnet (vpn-51-27.sfbay.redhat.com [10.14.51.27]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n6HNxMt9029240; Fri, 17 Jul 2009 19:59:26 -0400 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 57D8D680152; Fri, 17 Jul 2009 20:59:07 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id n6HNx1xY011618; Fri, 17 Jul 2009 20:59:01 -0300 Date: Fri, 17 Jul 2009 20:59:01 -0300 From: Marcelo Tosatti To: John Wong Cc: KVM list Subject: Re: [ANNOUNCE] kvm-88 release (CAN NOT install modules on debian/amd64/2.6.30) Message-ID: <20090717235901.GA10712@amt.cnet> References: <4A59E599.4080802@redhat.com> <4A5A08D5.8050901@wonghome.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4A5A08D5.8050901@wonghome.net> User-Agent: Mutt/1.5.19 (2009-01-05) X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Mon, Jul 13, 2009 at 12:01:25AM +0800, John Wong wrote: > [/ramdisk/kvm-88/kvm/kernel/x86/kvm.ko] undefined! > WARNING: "__tracepoint_kvm_mmu_pagetable_walk" > [/ramdisk/kvm-88/kvm/kernel/x86/kvm.ko] undefined! > WARNING: "__tracepoint_kvm_msi_set_irq" > [/ramdisk/kvm-88/kvm/kernel/x86/kvm.ko] undefined! > > when i depmod -a after install, i see some warning message like this: > /sbin/depmod -a > WARNING: Module /lib/modules/2.6.30-1-amd64/extra/kvm-intel.ko ignored, > due to loop > WARNING: Module /lib/modules/2.6.30-1-amd64/extra/kvm-amd.ko ignored, > due to loop > WARNING: Loop detected: /lib/modules/2.6.30-1-amd64/extra/kvm.ko which > needs kvm.ko again! > WARNING: Module /lib/modules/2.6.30-1-amd64/extra/kvm.ko ignored, due to > loop > > when i insmod ./kvm.ko, i see the error message like this: > sudo insmod ./kvm.ko > insmod: error inserting './kvm.ko': -1 Unknown symbol in module > and i can not load the modules on my debian/amd64 kernel-2.6.30 > > qemu-system-x86_64(kvm-88.tar.gz) is work on my debian with > kvm-kmod-2.6.30.1-rc2.tar.gz > > Please help, thank you. John, The attached patch should fix this. diff -Nur kvm-88.orig/kvm/kernel/external-module-compat-comm.h kvm-88/kvm/kernel/external-module-compat-comm.h --- kvm-88.orig/kvm/kernel/external-module-compat-comm.h 2009-07-17 20:47:08.000000000 -0300 +++ kvm-88/kvm/kernel/external-module-compat-comm.h 2009-07-17 20:55:21.000000000 -0300 @@ -845,7 +845,7 @@ #include -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31) struct tracepoint;