public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dtor@vmware.com>
To: Chetan Loke <chetanloke@gmail.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	"pv-drivers@vmware.com" <pv-drivers@vmware.com>,
	"akpm@linux-foundation.org" <akpm@linux-foundation.org>
Subject: Re: [PATCH] VMware Balloon: rename module
Date: Thu, 16 Sep 2010 17:31:15 -0700	[thread overview]
Message-ID: <201009161731.16913.dtor@vmware.com> (raw)
In-Reply-To: <AANLkTinokTUuShVEokYyJApj26CBD-q+xma_55rgdZEM@mail.gmail.com>

On Thursday, September 16, 2010 05:13:32 pm Chetan Loke wrote:
> On Thu, Sep 16, 2010 at 7:23 PM, Dmitry Torokhov <dtor@vmware.com> wrote:
> > Hi Chetan,
> 
> Hi
> 
> >> > In an effort to minimize customer confusion we want to unify naming
> >> > convention for VMware-provided kernel modules. This change renames
> >> > the balloon driver from vmware_ballon to vmw_balloon.
> >> 
> >> What will vmtools name its vmware_balloon driver to? vmw_balloon,
> >> correct?
> > 
> > That is the plan.
> 
> I will have to change my scripts/iso's if there's a mismatch. If
> there's a mismatch then will we end up w/ 2 drivers?
> Or will vmtools cleanup the past residue?

Tools should clean up residue - the "upgrade" is actually "ininstall
everything keeping certain configs and install afresh".

> We prep'd a 2.6.35 iso. Now while updating I will have to wrap a
> special case to account for balloon-renaming.
> The case that I'm worried about is this:
> 1) 2.6.35 - vmware_balloon
> 2) upgrade kernel - now vmw_balloon
> 3) install vmtools  - a new vmware_balloon(?) if this version of
> vmtools didn't pick up the change?

The newer tools should pick up the driver regardless of the name as we
are keying off module alias data (which is PCI_IDs for PCI drivers
such as vmxnet3 and vmw_pvscsi and "magic strings" like "vmware_vmmemctl"
for non-PCI drivers).

> Is there a workaround?
> 
> Sorry, not being a pain but we have had some tough time with
> vmtool-upgrades+udev+vmxnet and vnic addition/deletion recently.
> 
> >> > +   vmballoon_wq = create_freezeable_workqueue("vmmemctl");
> >> 
> >> minor change - vmware_vmmemctl?
> > 
> > I do not think this needs to be changed; it does not have to match
> > the module name, plus, given Tejun's changes, it will all be generic
> > [worker/u:X] soon anyway.
> 
> ok.
> 
> >> side note - is it possible to extend the balloon driver to get a
> >> notification on other events? like CPUs, NICs? Just an event is what
> >> I'm looking for. No action need to be taken in the guest.
> > 
> > No, balloon driver should be limited to ballooning. I think the data
> > you are looking for can be retrieved via GuestSDK (and I believe we
> > are adding balloon_target to the available data).
> 
> No. I think the guestSDK provides the guest, it's personal view of the
> world, no?
> http://www.vmware.com/support/developer/guest-sdk/

Right since guest is supposed to be isolated.

There is vSphere SDK that shoudl allow you to connect to the hostd and
get more information about the host/VC:

http://www.vmware.com/support/developer/viperltoolkit/


> 
> ballooning is an indirect hint that an external event has happened
> within the hypervisor. I'm looking for similar external events.
> guestSDK gives nothing. Because right now there is now way for a
> vmware-guest to cooperate or be a good citizen if it
> doesn't know what's happening in the esx-hypervisor. Now whether to
> add these events in the balloon driver is another thing.
> A separate driver is ok too.

I spoke with resource management team regarding this idea of a VM
"helping" ESX and they felt that this task is better left to the
ESX's memory scheduler. The VM in question will not know all the
data needed (it might be confined to a separate resource pool, etc)
to make good decision.

Still you could use Guest SDK - if you see balloon target rising you
may start unlocking memory you grabbed.

-- 
Dmitry

  reply	other threads:[~2010-09-17  0:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-16 23:05 [PATCH] VMware Balloon: rename module Chetan Loke
2010-09-16 23:23 ` Dmitry Torokhov
2010-09-17  0:13   ` Chetan Loke
2010-09-17  0:31     ` Dmitry Torokhov [this message]
2013-03-01  2:19       ` jbian
  -- strict thread matches above, loose matches on Subject: below --
2010-09-16 22:00 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=201009161731.16913.dtor@vmware.com \
    --to=dtor@vmware.com \
    --cc=akpm@linux-foundation.org \
    --cc=chetanloke@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pv-drivers@vmware.com \
    /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