From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Unable to unload kvm-intel module Date: Sun, 12 Jun 2011 18:35:24 +0300 Message-ID: <4DF4DCBC.609@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: AP Return-path: Received: from mx1.redhat.com ([209.132.183.28]:12911 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753977Ab1FLPf2 (ORCPT ); Sun, 12 Jun 2011 11:35:28 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: 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? > The kvm.ko and kvm-intel.ko build and insmod without any > issues. However I am able to unload the kvm-intel module. Here is the > lsmod listing: > > kvm_intel 135653 0 [permanent] > kvm 381130 1 kvm_intel,[permanent] > > This is the error I get when I try to unload the module: > > ERROR: Removing 'kvm_intel': Device or resource busy > > Do I need to do anything special during building for > CONFIG_MODULE_UNLOAD to take effect? > No, as far as I know it should just work, and always has for me. But it does say [permanent]. Any clue why in dmesg? > PS: I am able to rmmod the kvm module that is packages with the Ubuntu > 11.04 kernel. Does it say [permanent] with these modules? -- error compiling committee.c: too many arguments to function