Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755328Ab0GAWTI (ORCPT ); Thu, 1 Jul 2010 18:19:08 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:36057 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933516Ab0GAWS5 (ORCPT ); Thu, 1 Jul 2010 18:18:57 -0400 Date: Thu, 1 Jul 2010 15:18:35 -0700 From: Andrew Morton To: Dmitry Torokhov Cc: Bruno =?ISO-8859-1?Q?Pr=E9mont?= , Alexander Clouter , linux-kernel@vger.kernel.org Subject: Re: [PATCH] VMware balloon: force compiling as a module Message-Id: <20100701151835.33874101.akpm@linux-foundation.org> In-Reply-To: <201006290940.38821.dtor@vmware.com> References: <20100628230035.GA18971@dtor-ws.eng.vmware.com> <20100629182859.5acd5be7@neptune.home> <201006290940.38821.dtor@vmware.com> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1952 Lines: 50 On Tue, 29 Jun 2010 09:40:38 -0700 Dmitry Torokhov wrote: > On Tuesday, June 29, 2010 09:28:59 am Bruno Pr__mont wrote: > > On Tue, 29 June 2010 Alexander Clouter wrote: > > > Dmitry Torokhov wrote: > > > > VMware Tools installer requires the upstream driver to be compiled > > > > as a module in order to detect its presence and avoid installing > > > > our own version on top of it. To avoid surprises with 2 versions > > > > of the driver being installed and fighting with each other, let's > > > > force the driver to be compiled as a module unless user selects > > > > CONFIG_EMBEDDED. > > > > > > *barf* > > > > > > This surely is a problem in the installer and not the kernel? Can you > > > not nosey around in /sys/class/misc or where-ever your driver appears? > > > If it does not, then I would probably suggest a patch to your balloon > > > driver that dumps some details in there, including module version > > > information. > > > > > > Eugh. > > > > In addition, the installer may check under /sys/module/ for it (as for > > any/most code that can be built as a module), even for built-in code. > > (if balloon driver does not show up there when built-in it would be > > better to get it to show up there) > > > > When driver is built-in the only thing exported in /sys/module/XXX are > module parameters. > > We also need to handle scenario when module is not loaded into the > kernel. > - check for the /sys/module directory. - if that failed, modprobe the driver - if that failed, error out The patch really is pretty icky. Adding restrictions to kernel configuration to work around problems in some installer program? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/