]> git.ipfire.org Git - thirdparty/open-vm-tools.git/log
thirdparty/open-vm-tools.git
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 21 Nov 2011 22:49:49 +0000 (14:49 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 21 Nov 2011 22:49:33 +0000 (14:49 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoAvoid passing NULL channel to message library.
VMware, Inc [Mon, 21 Nov 2011 22:48:42 +0000 (14:48 -0800)] 
Avoid passing NULL channel to message library.

I've looked at this code countless times, and can't come up with
an explanation for why the bug happens without resorting to
time drifts, quantum physics and possible questionable behavior
of the glib main loop implementation. So just avoid the issue
by having an explicit check.

I've never been able to hit it myself either, to get a good
debug session going on, and the cores I've seen have been
less than helpful.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: trivial reduction of a line
VMware, Inc [Mon, 21 Nov 2011 22:48:14 +0000 (14:48 -0800)] 
lib/lock: trivial reduction of a line

No need to have 3 lines when one will do.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: nasty races and memory leaks
VMware, Inc [Mon, 21 Nov 2011 22:48:00 +0000 (14:48 -0800)] 
lib/lock: nasty races and memory leaks

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoFix stats builds
VMware, Inc [Mon, 21 Nov 2011 22:47:15 +0000 (14:47 -0800)] 
Fix stats builds

The MXUser internal singleton lock routine is used by stats and
debug; it needs to be there for both types of builds.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: some cleanups
VMware, Inc [Mon, 21 Nov 2011 22:46:54 +0000 (14:46 -0800)] 
lib/lock: some cleanups

A few trivial cleanups - fix comments, no need for ifdefs

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: trivial code move
VMware, Inc [Mon, 21 Nov 2011 22:46:37 +0000 (14:46 -0800)] 
lib/lock: trivial code move

Move a function - no forward reference.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: no bag on the side reference counting
VMware, Inc [Mon, 21 Nov 2011 22:46:17 +0000 (14:46 -0800)] 
lib/lock: no bag on the side reference counting

Use true reference counting on MXUser recursive locks. The destroy
function remains to maintain compatibility with the existing code
base.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoUpdating open-vm-tools version for release 2011.10.26-514583. 2011.10.26-514583
VMware, Inc [Thu, 27 Oct 2011 18:57:10 +0000 (11:57 -0700)] 
Updating open-vm-tools version for release 2011.10.26-514583.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agomake POSIX version of ProcMgr_ImpersonateUserStart i18n friendly.
VMware, Inc [Thu, 27 Oct 2011 18:52:03 +0000 (11:52 -0700)] 
make POSIX version of ProcMgr_ImpersonateUserStart i18n friendly.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:51:24 +0000 (11:51 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:50:43 +0000 (11:50 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:50:04 +0000 (11:50 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: pretty up a message
VMware, Inc [Thu, 27 Oct 2011 18:49:45 +0000 (11:49 -0700)] 
lib/lock: pretty up a message

Make consistant with other messages.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:49:31 +0000 (11:49 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: exclusive locks should dump their owner(s)
VMware, Inc [Thu, 27 Oct 2011 18:49:11 +0000 (11:49 -0700)] 
lib/lock: exclusive locks should dump their owner(s)

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:48:50 +0000 (11:48 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoFix ternary operator usage in assert macros
VMware, Inc [Thu, 27 Oct 2011 18:48:33 +0000 (11:48 -0700)] 
Fix ternary operator usage in assert macros

A couple of our ASSERT macros use the ternary operator without casting
both operands to the same type.  This is required for C++.  bora does
not have any usage of these macros in C++ code, but it breaks the build
on sysimg branch.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoopen-vm-tools: fix non-Linux build.
VMware, Inc [Thu, 27 Oct 2011 18:48:17 +0000 (11:48 -0700)] 
open-vm-tools: fix non-Linux build.

Need a new stub file.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:48:01 +0000 (11:48 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agovmtoolslib: use the new generic glib logging functions.
VMware, Inc [Thu, 27 Oct 2011 18:47:27 +0000 (11:47 -0700)] 
vmtoolslib: use the new generic glib logging functions.

This change replaces the vmtoolslib logger implementation with the
"glib utils" library that was recently added. I also simplified a
little the re-configuration code, both because the new loggers don't
have the old "copy" function and because the old code was kinda
confusing.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:46:16 +0000 (11:46 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:45:43 +0000 (11:45 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/file: improve function header
VMware, Inc [Thu, 27 Oct 2011 18:45:14 +0000 (11:45 -0700)] 
lib/file: improve function header

Fill in the list of failure modes

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:44:27 +0000 (11:44 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoLeak tls key 0
VMware, Inc [Thu, 27 Oct 2011 18:44:00 +0000 (11:44 -0700)] 
Leak tls key 0

We have a couple of bugs that show system libraries on linux have a
nasty habit of destroying the first TLS key, even if they don't own it.
This is due to using uninitialized global variables (which default to
zero).  Rather than expose ourselves to the blame for such bugs,
let's just leak the key.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:43:36 +0000 (11:43 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agomsgList.h pretty up
VMware, Inc [Thu, 27 Oct 2011 18:42:49 +0000 (11:42 -0700)] 
msgList.h pretty up

Line up the structure fields

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:42:37 +0000 (11:42 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:41:43 +0000 (11:41 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:41:24 +0000 (11:41 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agovmbackup: couple of fixes to Linux freeze ioctl support.
VMware, Inc [Thu, 27 Oct 2011 18:40:36 +0000 (11:40 -0700)] 
vmbackup: couple of fixes to Linux freeze ioctl support.

. The sync driver code may get EIO and EACCES when trying to freeze
filesystems. The first happens on our HGFS mount, if HGFS is not
enabled on the host. The second, if a user has some filesystem
mounted with "700" permissions, so our code can't access it.
Just ignore those cases and keep going, freezing what we can.

. The error handler wasn't properly unfreezing frozen filesystems,
resulting in potentially unusable VMs if something went wrong.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoFix Windows VMCI/vSockets build.
VMware, Inc [Thu, 27 Oct 2011 18:39:22 +0000 (11:39 -0700)] 
Fix Windows VMCI/vSockets build.

The recent non-blocking change left out the extra "canBlock"
parameter from the Windows-specific code.  It was also missing
the declaration for TryAcquire() and the definition of EAGAIN.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoopen-vm-tools: fix build without ICU.
VMware, Inc [Thu, 27 Oct 2011 18:37:39 +0000 (11:37 -0700)] 
open-vm-tools: fix build without ICU.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:37:25 +0000 (11:37 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:37:10 +0000 (11:37 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/misc: allow disabling ICU at compile time.
VMware, Inc [Thu, 27 Oct 2011 18:36:48 +0000 (11:36 -0700)] 
lib/misc: allow disabling ICU at compile time.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:36:14 +0000 (11:36 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: destroy reference count for bound locks
VMware, Inc [Thu, 27 Oct 2011 18:35:40 +0000 (11:35 -0700)] 
lib/lock: destroy reference count for bound locks

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoInternal branch sync. Included in this change:
VMware, Inc [Thu, 27 Oct 2011 18:35:24 +0000 (11:35 -0700)] 
Internal branch sync. Included in this change:

. Adapt VMCI to support truly non-blocking enqueue/dequeue.

. changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:32:44 +0000 (11:32 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:32:20 +0000 (11:32 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: Recursive lock destroy reference counting
VMware, Inc [Thu, 27 Oct 2011 18:31:53 +0000 (11:31 -0700)] 
lib/lock: Recursive lock destroy reference counting

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:31:36 +0000 (11:31 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoImplementation of Util_Memcpy, routine using movsq and movsd to accelerate aligned...
VMware, Inc [Thu, 27 Oct 2011 18:31:00 +0000 (11:31 -0700)] 
Implementation of Util_Memcpy, routine using movsq and movsd to accelerate aligned copies.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:27:38 +0000 (11:27 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoFix crash in vmbackup's abort timer.
VMware, Inc [Thu, 27 Oct 2011 18:27:19 +0000 (11:27 -0700)] 
Fix crash in vmbackup's abort timer.

VmBackupDoAbort cleans up the global backup state, so we shouldn't access
its fields after calling that function.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoLower (process, i/o) priority when wiping disks on Win32.
VMware, Inc [Thu, 27 Oct 2011 18:27:02 +0000 (11:27 -0700)] 
Lower (process, i/o) priority when wiping disks on Win32.

An attempt to avoid warnings popping up about applications that become
unresponsive because we're hogging resources by writing lots of stuff
to the disk.

Also be less chatty with the backdoor, and fix a bug where we were passing
the wrong parameters to the RPCI call making the VMX respond with a
failure.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoUpdate network manager calls in suspend / resume scripts.
VMware, Inc [Thu, 27 Oct 2011 18:26:39 +0000 (11:26 -0700)] 
Update network manager calls in suspend / resume scripts.

Another NetworkManager release, another API breakage... sigh. NM 0.8
added a new method ("Enable") but still had the "Sleep" one according
to the docs; 0.9 (used in Ubuntu 11.10) doesn't respond to "Sleep".
So add a call to the new method. Also try the new methods first.

On top of that, Ubuntu 11.10 freaks out if you call "/etc/init.d/networking
stop", and to make it worse "/etc/init.d/networking start" doesn't work at
all. So, when the NetworkManager call works, just don't do anything else.
This is "best effort" anyway, applications should be resilient to network
fluctuations (and we all live in a perfect world where pink unicorns roam
free).

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:25:39 +0000 (11:25 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:25:17 +0000 (11:25 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:24:56 +0000 (11:24 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:24:28 +0000 (11:24 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:22:57 +0000 (11:22 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoopen-vm-tools: minor adjustments for uClibc.
VMware, Inc [Thu, 27 Oct 2011 18:22:23 +0000 (11:22 -0700)] 
open-vm-tools: minor adjustments for uClibc.

Mostly based on patch submitted by Wallace Wadge (SF Bug 3371547). Also
added some autoconf trickery to disable our printf wrappers; now they're
only compiled for Linux systems that have "ecvt()" (uClibc doesn't have
that). This prevents compiling the wrappers on Solaris and FreeBSD (which
was useless), and makes the code compile on uClibc (also fixing SF Bug
3026491).

uClibc seems tricky, though; depending on how the library is compiled
it won't work. I tried Alpine Linux, and it doesn't ship with uClibc
locale support, so codesetOld.c fails to compile. I added a hack to
work around the issue (not included here) and everything else compiled,
and vmtoolsd seemed to run happily.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:21:37 +0000 (11:21 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoAllow changing vmxnet2's MAC address while the interface is up
VMware, Inc [Thu, 27 Oct 2011 18:20:15 +0000 (11:20 -0700)] 
Allow changing vmxnet2's MAC address while the interface is up

There is nothing in the device backend which prohibits us from
changing the MAC address of the vmxnet2 vNIC while the interface
is up and running. This patch allows the same from guest driver.
Thus vmxnet2 is comparable to vmxnet3 and e1000 behavior in this
regard.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoFix QPair wakeup on suspend
VMware, Inc [Thu, 27 Oct 2011 18:19:45 +0000 (11:19 -0700)] 
Fix QPair wakeup on suspend

On vmkernel, we do not unregister the guest memory, when a VM
is quiesced, so the queue pairs stay in a *_MEM state, if
already there. When detaching from a queue pair, we were only
waking up blocked kernel endpoints, if the queue pair was in
the *_NO_MEM state, since that would indicate that the QP is
quiesced. However, what we need to determine is whether the
queue pair headers are still mapped, since that is the common
operation for hosted and vmkernel on quiesce/unquiesce.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoListProcessesInGuest Cleanup for ALL OS-es.
VMware, Inc [Thu, 27 Oct 2011 18:17:53 +0000 (11:17 -0700)] 
ListProcessesInGuest Cleanup for ALL OS-es.

Cleaning up memory leaks in error conditions.
Re-structuring Process List to be an array of *new* Process Info
structures, one per process. Affects ALL OS-es.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 27 Oct 2011 18:16:58 +0000 (11:16 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoImplement HgfsGetRootDentry() to get the root dentry.
VMware, Inc [Thu, 27 Oct 2011 17:57:19 +0000 (10:57 -0700)] 
Implement HgfsGetRootDentry() to get the root dentry.

When the user loads vmhgfs modules and mounts a shared folder, kernel
crashes. During the intial hgfs mount process, we need a root dentry. We
can get the reference to the root dentry by calling d_alloc_root(). But
we cannot call d_alloc_root in HgfsReadSuper() since it requires a valid
inode which we don't have at that point of time. We implemented a
workaround for this issue. The workaround is done in two phases as
specified below:
- Create a dummy root dentry by calling d_alloc_name().
- Send a getAttr request to the hgfs server and get the root inode.
- Populate the content of the dummy root entry with the root inode.

This workaround works perfectly fine. But, with the latest kernel version,
the semantics of d_alloc_name() is changed. We can no longer pass NULL to
the d_alloc_name (which we have been doing till now). Fixed this by
implementing a new function HgfsGetRootDentry() that first gets the root
inode, fills the properties of the root inode and then uses d_alloc_root()
to generate the root dentry.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoFix double-free in Linux sync driver code.
VMware, Inc [Thu, 27 Oct 2011 17:56:19 +0000 (10:56 -0700)] 
Fix double-free in Linux sync driver code.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoAccount for the space we're skipping when de-serializing input data.
VMware, Inc [Thu, 27 Oct 2011 17:55:00 +0000 (10:55 -0700)] 
Account for the space we're skipping when de-serializing input data.

This wouldn't cause a buffer overflow since the message layer
always adds a trailing null to the incoming data, but it could cause
invalid data to be parsed if the planets aligned correctly.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoUpdating open-vm-tools version for release 2011.09.23-491607. 2011.09.23-491607
VMware, Inc [Mon, 26 Sep 2011 20:16:29 +0000 (13:16 -0700)] 
Updating open-vm-tools version for release 2011.09.23-491607.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 26 Sep 2011 20:07:25 +0000 (13:07 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agohgfsmounter: store result of parsing dmasks correctly.
VMware, Inc [Mon, 26 Sep 2011 20:04:24 +0000 (13:04 -0700)] 
hgfsmounter: store result of parsing dmasks correctly.

Reported on SourceForge tracker (#3409598)

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agohashTable: pretty up include
VMware, Inc [Mon, 26 Sep 2011 20:03:47 +0000 (13:03 -0700)] 
hashTable: pretty up include

Make the style consistent

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 26 Sep 2011 20:03:32 +0000 (13:03 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoCapture output of "ps" in linux vm-support.
VMware, Inc [Mon, 26 Sep 2011 20:03:15 +0000 (13:03 -0700)] 
Capture output of "ps" in linux vm-support.

Somehow this got lost.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRemove stale comment about lib/nothread
VMware, Inc [Mon, 26 Sep 2011 20:02:43 +0000 (13:02 -0700)] 
Remove stale comment about lib/nothread

lib/nothread fell out of use a year or so ago,
lib/misc/vthreadBase.c can now tolerate all
threading models.

Thus, this comment is now stale and can be removed.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoMinGW-w64 portability fixes to vm_basic_types.h.
VMware, Inc [Mon, 26 Sep 2011 20:02:27 +0000 (13:02 -0700)] 
MinGW-w64 portability fixes to vm_basic_types.h.

MinGW-w64 uses different defines to protect size_t and ssize_t.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 26 Sep 2011 20:02:08 +0000 (13:02 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoMake QP Broker locking local to vmciQueuePair.c
VMware, Inc [Mon, 26 Sep 2011 20:00:34 +0000 (13:00 -0700)] 
Make QP Broker locking local to vmciQueuePair.c

The locking for the VMCI queue pair broker was distributed
across the VMCI driver for the sole reason of being able to
handle a failed copy to user on Linux for queue pair
alloc. After this change, a failed copy to user will still
detach from an allocated queue pair, but a peer may have
attached to the queue pair between the alloc and detach. Since
the copy to user won't fail with a correctly working VMX, this
simplification is justified.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoImport dlpam_sterror symbol.
VMware, Inc [Mon, 26 Sep 2011 19:59:51 +0000 (12:59 -0700)] 
Import dlpam_sterror symbol.

When the user executes any guest operation with invalid login
credentials, vmtoolsd process crashes [Signal 11, Segmentation fault].
Got the stack trace and found out that the crash happens in
Auth_AuthenticateUser() function. dlpam_strerror symbol is not loaded
from the PAM library but is referenced. This causes the crash.

Modified the code to import the dlpam_sterror symbol.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 26 Sep 2011 19:59:03 +0000 (12:59 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/misc: centralize validating a PID
VMware, Inc [Mon, 26 Sep 2011 19:58:02 +0000 (12:58 -0700)] 
lib/misc: centralize validating a PID

Code to determine is a PID is valid is tricky; we shouldn't have
multiple codes to do this. We happened to have a good, working code
for this in the file locking code. Move the code to lib/misc, adapt
it, slightly, to its new environment and then fix up the call sites.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agovmblock-fuse: add os_atomic_read() definition
VMware, Inc [Mon, 26 Sep 2011 19:55:48 +0000 (12:55 -0700)] 
vmblock-fuse: add os_atomic_read() definition

This is needed for tools OBJ build.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agovmblock: fix OBJ build
VMware, Inc [Mon, 26 Sep 2011 19:55:20 +0000 (12:55 -0700)] 
vmblock: fix OBJ build

All my local/sandbox builds were done as betas so I missed
thsi breakage.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agovmblock: consolidate refcounting and freeing of block objects
VMware, Inc [Mon, 26 Sep 2011 19:55:04 +0000 (12:55 -0700)] 
vmblock: consolidate refcounting and freeing of block objects

Combine refcounting and memory management by providing
BlockGrabReferenec() and BlockDropReference() and have
BlockDropReference() free the block object once last reference
is dropped instead of callers explicitly checking refount
and freeing the object manually.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/misc: clean up hostinfo.h
VMware, Inc [Mon, 26 Sep 2011 19:53:59 +0000 (12:53 -0700)] 
lib/misc: clean up hostinfo.h

Got a change coming. Let's do some trivial but pretty clean up.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 26 Sep 2011 19:53:20 +0000 (12:53 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoMake VMCI doorbell notification return VMCI_ERROR_NOT_FOUND
VMware, Inc [Mon, 26 Sep 2011 19:52:38 +0000 (12:52 -0700)] 
Make VMCI doorbell notification return VMCI_ERROR_NOT_FOUND

If a doorbell handle isn't found, we currently return
VMCI_ERROR_INVALID_ARGS. A more informative error code would
be VMCI_ERROR_NOT_FOUND, so let us do that instead.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoFix dangling pointer in DynBufRealloc().
VMware, Inc [Mon, 26 Sep 2011 19:51:47 +0000 (12:51 -0700)] 
Fix dangling pointer in DynBufRealloc().

Coverity complains a lot about using a pointer
after it has been freed.

Indeed, for certain conditions, the buffer
is being freed, but a pointer to it is not being
set to NULL.

And since this function is actually trying to duplicate
the functionality of realloc(), simplify it a bit and
get rid of the offending piece of code.

From realloc() documentation:

"
In case that ptr is NULL, the function behaves exactly
as malloc, assigning a new block of size bytes
and returning a pointer to the beginning of it.

In case that the size is 0, the memory previously
allocated in ptr is deallocated as if a call to free
was made, and a NULL pointer is returned.
"

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 26 Sep 2011 19:51:16 +0000 (12:51 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 26 Sep 2011 19:50:24 +0000 (12:50 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRemove VM to VM communication from VMCI
VMware, Inc [Mon, 26 Sep 2011 19:48:38 +0000 (12:48 -0700)] 
Remove VM to VM communication from VMCI

This change makes the host code enforce that two VMs cannot
communicate via VMCI. Since the guest driver may be used on
older versions of our products, where VM to VM communication
is still allowed, we do not attempt to filter out VM to VM
communication in the guest.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoFix VMCIQueuePair_Alloc error on non-local peer for local QPs
VMware, Inc [Mon, 26 Sep 2011 19:48:01 +0000 (12:48 -0700)] 
Fix VMCIQueuePair_Alloc error on non-local peer for local QPs

VMCIQueuePair_Alloc will allow a local queue pair to be
allocated with a non-local peer ID. Instead, it should return
VMCI_ERROR_NO_ACCESS. This change fixes that.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 26 Sep 2011 19:43:47 +0000 (12:43 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoUse bora formatting functions in log wrappers.
VMware, Inc [Mon, 26 Sep 2011 19:41:36 +0000 (12:41 -0700)] 
Use bora formatting functions in log wrappers.

glib and bora disagree about format strings, so don't mix them.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 26 Sep 2011 19:40:11 +0000 (12:40 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 26 Sep 2011 18:58:06 +0000 (11:58 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 26 Sep 2011 18:57:29 +0000 (11:57 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 26 Sep 2011 18:56:53 +0000 (11:56 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoVixTools: List Processes - Fix for potential core and couple of optimizations.
VMware, Inc [Mon, 26 Sep 2011 18:56:37 +0000 (11:56 -0700)] 
VixTools: List Processes - Fix for potential core and couple of optimizations.

Change 1: Once we have found and printed the input pid we are looking for,
we can "break" the loop and move to the next input pid.

Change 2: The ignore for exited pid belongs to the outer "for" loop.

Change 3: Incorrect indexing into procList prints wrong process info. Also
may cause a core if "i >= procList->procCount".

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 26 Sep 2011 18:56:06 +0000 (11:56 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 26 Sep 2011 18:55:42 +0000 (11:55 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRemoving shadow option from pam_unix2.so
VMware, Inc [Mon, 26 Sep 2011 18:54:52 +0000 (11:54 -0700)] 
Removing shadow option from pam_unix2.so

Checked earlier verion of pam_unix2 (pam_unix2 1.30, and pam_modules-9 on sles 9),
as well the changelog, pam_unix2 never mentioned about shadow option support.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: Fix a comment.
VMware, Inc [Mon, 26 Sep 2011 18:54:26 +0000 (11:54 -0700)] 
lib/lock: Fix a comment.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: off by one.
VMware, Inc [Mon, 26 Sep 2011 18:54:04 +0000 (11:54 -0700)] 
lib/lock: off by one.

The lock count needs to be tested after an increment.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>