From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: Unable to unload kvm-intel module Date: Fri, 17 Jun 2011 09:18:56 +0200 Message-ID: <4DFAFFE0.10204@web.de> References: <4DF4DCBC.609@redhat.com> <4DF71C95.7080406@redhat.com> <4DF7BF21.1050500@web.de> <4DF85345.5000907@web.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC7D51645AF18BF74754FB8A2" Cc: Avi Kivity , kvm@vger.kernel.org To: AP Return-path: Received: from fmmailgate02.web.de ([217.72.192.227]:36654 "EHLO fmmailgate02.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757001Ab1FQHTA (ORCPT ); Fri, 17 Jun 2011 03:19:00 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC7D51645AF18BF74754FB8A2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2011-06-17 00:10, AP wrote: > On Tue, Jun 14, 2011 at 11:37 PM, Jan Kiszka wrote:= >> On 2011-06-14 23:10, AP wrote: >>> On Tue, Jun 14, 2011 at 1:05 PM, Jan Kiszka wrote= : >>>> On 2011-06-14 20:30, AP wrote: >>>>> On Tue, Jun 14, 2011 at 1:32 AM, Avi Kivity wrote:= >>>>>> On 06/13/2011 08:11 PM, AP wrote: >>>>>>> >>>>>>> On Sun, Jun 12, 2011 at 8:35 AM, Avi Kivity wrot= e: >>>>>>>> On 06/11/2011 03:02 AM, AP wrote: >>>>>>>>> >>>>>>>>> I am building kvm as an external module against 2.6.38-8 (Ubun= tu 11.04 >>>>>>>>> kernel). >>>>>>>> >>>>>>>> Why? >>>>>>> >>>>>>> I did not want move to the new kernel from kvm.git. >>>>>> >>>>>> I generally find that it works well, though I only run it on serve= rs. >>>>>> >>>>>>> I just wanted to >>>>>>> upgrade to the latest kvm module for some development. Is there a= way >>>>>>> to use the kvm.git tree and only build and load kvm? >>>>>> >>>>>> kvm-kmod. >>>>> >>>>> That is what I am using and running in to the permanent module issu= e. >>>> >>>> What version of kvm-kmod? What are your steps to reproduce? >>>> >>>> I've just checked the kvm-kmod-2.6.39 release in an Ubuntu 11.4 VM, = and >>>> it's loading&unloading fine. >>> >>> I am following the instruction that I found here under "building an >>> external module with older kernels": >>> http://www.linux-kvm.org/page/Code >>> >>> I ran: >>> git clone git://git.kernel.org/pub/scm/virt/kvm/kvm-kmod.git >>> cd kvm-kmod >>> git submodule update --init >>> ./configure --kerneldir=3D/lib/modules/2.6.38-8-generic/build >>> make sync >>> make >>> >>> I am at: >>> commit bed5dfdeb11cf3a749396e4c353018bae5aff66f >>> Author: Jan Kiszka >>> Date: Wed Jun 1 09:08:49 2011 +0200 >>> >>> Update source link >>> >>> Signed-off-by: Jan Kiszka >>> >>> The kvm source comes from the kernel tree that is part of kvm-kmod i.= e >>> in the linux-2.6 directory. >>> >>> Thanks, >>> AP >> >> Still unreproducible here - and unexplainable. Can you debug your setu= p >> further, maybe following the suspect you had regarding CONFIG_MODULE_U= NLOAD? >=20 > I am not able to figure out how kvm.mod.c and kvm-intel.mod.c get > created at compile time. Could you please give me a pointer to where > that happens? That's embedded in the standard build process of the kernel. If Ubuntu didn't break it, the config should remain stable between primary source files (as provided by kvm-kmod) and the generated ones (like *.mod.c). So let's first check if the config used is consistent by adding #ifndef CONFIG_MODULE_UNLOAD #warning CONFIG_MODULE_UNLOAD missing! #endif to the end of x86/vmx.c (do not re-run 'make sync' afterward). Jan --------------enigC7D51645AF18BF74754FB8A2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk36/+AACgkQitSsb3rl5xTaZwCfTaWWvsNj1fQR9YwMx94Q9BRv oQ4AniZdvs1JNy1iY/Mapa9tIETVvgGI =ZXvt -----END PGP SIGNATURE----- --------------enigC7D51645AF18BF74754FB8A2--