From mboxrd@z Thu Jan 1 00:00:00 1970 From: Walther Maldonado Subject: BUG Report: "config KVM" selects PREEMPT_NOTIFIERS, but it should also select PREEMPT (Vanilla Kernel 2.6.30) Date: Mon, 29 Jun 2009 17:18:55 +0200 Message-ID: <20090629171855.2820e75a@Xellex> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit To: Return-path: Received: from columba.unine.ch ([130.125.1.53]:41590 "EHLO columba.unine.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752286AbZF2XJV (ORCPT ); Mon, 29 Jun 2009 19:09:21 -0400 Received: from [130.125.5.93] (helo=mail-10.UNINE.CH) by columba.unine.ch stage1 with esmtps with id 1MLOn2-0002Lk-CX for from ; Mon, 29 Jun 2009 23:53:28 +0200 Sender: kvm-owner@vger.kernel.org List-ID: Good day, Today when attempting to compile and install the KVM module (kernel 2.6.30), inserting the module would error with a number of unresolved symbols such as preempt_notifier_register() not found. Some code-browsing revealed that, even though the kvm KConfig setting "KVM" does select PREEMPT_NOTIFIERS, in include/linux/preempt.h, said define will not cause the expected functions to be defined unless CONFIG_PREEMPT is also selected. But I don't have CONFIG_PREEMPT (Preemptible Kernel), my kernel was configured with CONFIG_PREEMPT_VOLUNTARY (Voluntary Kernel Preemption). Since the define CONFIG_PREEMPT_NOTIFIERS is used in other files other than preempt.h, the bug might be in KVM's Kconfig file (in my case, arch/x86/kConfig) not selecting/depending on the right config parameters. Cheers, Walther PS: If there is a need to reply, please do so directly as I am not subscribed to the mailing list.