public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: AP <apxeng@gmail.com>
Cc: Avi Kivity <avi@redhat.com>, kvm@vger.kernel.org
Subject: Re: Unable to unload kvm-intel module
Date: Fri, 17 Jun 2011 09:18:56 +0200	[thread overview]
Message-ID: <4DFAFFE0.10204@web.de> (raw)
In-Reply-To: <BANLkTin9SNfQhzqvExDDZFZK8Vhb8FvLnQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2823 bytes --]

On 2011-06-17 00:10, AP wrote:
> On Tue, Jun 14, 2011 at 11:37 PM, Jan Kiszka <jan.kiszka@web.de> wrote:
>> On 2011-06-14 23:10, AP wrote:
>>> On Tue, Jun 14, 2011 at 1:05 PM, Jan Kiszka <jan.kiszka@web.de> wrote:
>>>> On 2011-06-14 20:30, AP wrote:
>>>>> On Tue, Jun 14, 2011 at 1:32 AM, Avi Kivity <avi@redhat.com> wrote:
>>>>>> On 06/13/2011 08:11 PM, AP wrote:
>>>>>>>
>>>>>>> On Sun, Jun 12, 2011 at 8:35 AM, Avi Kivity<avi@redhat.com>  wrote:
>>>>>>>>  On 06/11/2011 03:02 AM, AP wrote:
>>>>>>>>>
>>>>>>>>>  I am building kvm as an external module against 2.6.38-8 (Ubuntu 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 servers.
>>>>>>
>>>>>>> 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 issue.
>>>>
>>>> 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=/lib/modules/2.6.38-8-generic/build
>>> make sync
>>> make
>>>
>>> I am at:
>>> commit bed5dfdeb11cf3a749396e4c353018bae5aff66f
>>> Author: Jan Kiszka <jan.kiszka@siemens.com>
>>> Date:   Wed Jun 1 09:08:49 2011 +0200
>>>
>>>     Update source link
>>>
>>>     Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>>
>>> 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 setup
>> further, maybe following the suspect you had regarding CONFIG_MODULE_UNLOAD?
> 
> 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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

  reply	other threads:[~2011-06-17  7:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BANLkTikYgrQ0Ge-RgXOQcNv6Osr1Xs1k9Q@mail.gmail.com>
2011-06-11  0:02 ` Unable to unload kvm-intel module AP
2011-06-12 15:35   ` Avi Kivity
2011-06-13 17:11     ` AP
2011-06-14  6:25       ` Jan Kiszka
2011-06-14  8:32       ` Avi Kivity
2011-06-14 18:30         ` AP
2011-06-14 20:05           ` Jan Kiszka
2011-06-14 21:10             ` AP
2011-06-15  6:37               ` Jan Kiszka
2011-06-16 22:10                 ` AP
2011-06-17  7:18                   ` Jan Kiszka [this message]
2011-06-17 18:04                     ` AP
2011-06-19  9:06                       ` Jan Kiszka
2011-06-20 21:13                         ` AP

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=4DFAFFE0.10204@web.de \
    --to=jan.kiszka@web.de \
    --cc=apxeng@gmail.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.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