From: Andrew Morton <akpm@linux-foundation.org>
To: Dmitry Torokhov <dtor@vmware.com>
Cc: "Bruno Prémont" <bonbons@linux-vserver.org>,
"Alexander Clouter" <alex@digriz.org.uk>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] VMware balloon: force compiling as a module
Date: Thu, 1 Jul 2010 15:18:35 -0700 [thread overview]
Message-ID: <20100701151835.33874101.akpm@linux-foundation.org> (raw)
In-Reply-To: <201006290940.38821.dtor@vmware.com>
On Tue, 29 Jun 2010 09:40:38 -0700
Dmitry Torokhov <dtor@vmware.com> wrote:
> On Tuesday, June 29, 2010 09:28:59 am Bruno Pr__mont wrote:
> > On Tue, 29 June 2010 Alexander Clouter <alex@digriz.org.uk> wrote:
> > > Dmitry Torokhov <dtor@vmware.com> 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?
next prev parent reply other threads:[~2010-07-01 22:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-28 23:00 [PATCH] VMware balloon: force compiling as a module Dmitry Torokhov
2010-06-29 8:27 ` Alexander Clouter
2010-06-29 16:28 ` Bruno Prémont
2010-06-29 16:40 ` Dmitry Torokhov
2010-07-01 22:18 ` Andrew Morton [this message]
2010-07-01 22:31 ` Dmitry Torokhov
2010-07-01 22:43 ` Andrew Morton
2010-07-01 22:59 ` Dmitry Torokhov
2010-07-02 8:09 ` Alexander Clouter
2010-06-29 16:39 ` Dmitry Torokhov
-- strict thread matches above, loose matches on Subject: below --
2010-06-30 18:42 Chetan Loke
2010-06-30 19:27 ` Dmitry Torokhov
2010-06-30 21:26 ` Chetan Loke
2010-06-30 21:39 ` Dmitry Torokhov
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=20100701151835.33874101.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=alex@digriz.org.uk \
--cc=bonbons@linux-vserver.org \
--cc=dtor@vmware.com \
--cc=linux-kernel@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