]> git.ipfire.org Git - thirdparty/open-vm-tools.git/log
thirdparty/open-vm-tools.git
14 years agoDestory the sessions if they are inactive for a long amount of time.
VMware, Inc [Thu, 22 Dec 2011 00:12:36 +0000 (16:12 -0800)] 
Destory the sessions if they are inactive for a long amount of time.

This changeset is an extension to my earlier changeset #1592340. In
the changeset #1592340, I have implemented the 'InvalidateInactiveSessions'
function in the HGFS server. When this new function is called, it
checks for the inactivity of each session and invalidates the session
if it is inactive for a long amount of time. Also, we should ideally
implement another feature that destroys the session if the session is
inactive for a very long amount of time. Modified the code to destroy
the sessions besides just invalidating the sessions.

Also, implemented the code to limit the number of sessions that can be
created in one transport. HGFS server returns an error if the maximum
number of sessions are already created.

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, 22 Dec 2011 00:12:06 +0000 (16:12 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: cleanly differentiate native from mapped threadID values
VMware, Inc [Thu, 22 Dec 2011 00:10:38 +0000 (16:10 -0800)] 
lib/lock: cleanly differentiate native from mapped threadID values

Make it very clear which type of threadID is being used.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: access violation
VMware, Inc [Thu, 22 Dec 2011 00:10:12 +0000 (16:10 -0800)] 
lib/lock: access violation

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: Add formal fallback code
VMware, Inc [Thu, 22 Dec 2011 00:07:28 +0000 (16:07 -0800)] 
lib/lock: Add formal fallback code

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agovmcf provider: doc updates.
VMware, Inc [Thu, 22 Dec 2011 00:06:47 +0000 (16:06 -0800)] 
vmcf provider: doc updates.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoReverting previous checkin.
VMware, Inc [Thu, 22 Dec 2011 00:06:22 +0000 (16:06 -0800)] 
Reverting previous checkin.

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, 22 Dec 2011 00:05:13 +0000 (16:05 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/misc: Don't use log in essential service
VMware, Inc [Thu, 22 Dec 2011 00:04:50 +0000 (16:04 -0800)] 
lib/misc: Don't use log in essential service

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, 22 Dec 2011 00:04:04 +0000 (16:04 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoImplement 'InvalidateInactiveSessions' in hgfsServer.
VMware, Inc [Thu, 22 Dec 2011 00:03:22 +0000 (16:03 -0800)] 
Implement 'InvalidateInactiveSessions' in hgfsServer.

This is the third part of the fix to make the HGFS server more robust.
Please check the wiki: https://wiki.eng.vmware.com/PGI/RobustVIXFileCopy for
more details.

Implmented a new function i.e. HgfsServerSessionInvalidateInactiveSessions
in HgfsServer. When this function is called, it checks all the available
HGFS server sessions and invalidate the inactive sessions. Everytime a
request is processed, session is tagged with timestamp when the request
is processed. If no request has been processed in the last 2 minutes, then
the session will be tagged as inactive and will be invalidated.

Callers can make use of this function invalidate the inactive session.
Implemented a watchdog in vixTools module which periodically sends this
request to the HGFS server.

Note: In this changeset, I have implemented the watchdog only in the
vixTools plugin. Not sure, if we require the same watchdog in another
modules.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoInternal branch sync. Included in this change:
VMware, Inc [Thu, 22 Dec 2011 00:02:56 +0000 (16:02 -0800)] 
Internal branch sync. Included in this change:

. Fix VMCI Socket MSG_WAITALL handling

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

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: another missing piece is restored
VMware, Inc [Wed, 21 Dec 2011 23:59:55 +0000 (15:59 -0800)] 
lib/lock: another missing piece is restored

This one disappeared too. Put it back.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: bring message uniformity
VMware, Inc [Wed, 21 Dec 2011 23:59:41 +0000 (15:59 -0800)] 
lib/lock: bring message uniformity

Make the location of a native object message uniform.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: put back the last piece
VMware, Inc [Wed, 21 Dec 2011 23:59:26 +0000 (15:59 -0800)] 
lib/lock: put back the last piece

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: enable syndrome bit production
VMware, Inc [Wed, 21 Dec 2011 23:59:01 +0000 (15:59 -0800)] 
lib/lock: enable syndrome bit production

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: restore lost fix
VMware, Inc [Wed, 21 Dec 2011 23:58:31 +0000 (15:58 -0800)] 
lib/lock: restore lost fix

An earlier fix was lost. Put it back.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoUpdating open-vm-tools version for release 2011.11.20-535097. 2011.11.20-535097
VMware, Inc [Tue, 22 Nov 2011 00:12:25 +0000 (16:12 -0800)] 
Updating open-vm-tools version for release 2011.11.20-535097.

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

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoHGFS: make compile on kernels 3.1-rc1 and above
VMware, Inc [Tue, 22 Nov 2011 00:00:32 +0000 (16:00 -0800)] 
HGFS: make compile on kernels 3.1-rc1 and above

Commit 02c24a82187d5a628c68edfe71ae60dc135cd178 chnages signature
of fsync() method; we need to adjust appropriately.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: more lack of "0x" before "%p"
VMware, Inc [Tue, 22 Nov 2011 00:00:16 +0000 (16:00 -0800)] 
lib/lock: more lack of "0x" before "%p"

Clean up some more.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: "0x" before "%p"
VMware, Inc [Tue, 22 Nov 2011 00:00:05 +0000 (16:00 -0800)] 
lib/lock: "0x" before "%p"

The codes were inconsistent about this. Fix it.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: fix the build
VMware, Inc [Mon, 21 Nov 2011 23:59:51 +0000 (15:59 -0800)] 
lib/lock: fix the build

Running into time.h

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: missed a "safetime.h"
VMware, Inc [Mon, 21 Nov 2011 23:59:38 +0000 (15:59 -0800)] 
lib/lock: missed a "safetime.h"

Fix the time.h problem.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: syndrome bits don't work on ESX
VMware, Inc [Mon, 21 Nov 2011 23:59:21 +0000 (15:59 -0800)] 
lib/lock: syndrome bits don't work on ESX

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoAdd StrUtil API for parsing unsigned 64-bit integers.
VMware, Inc [Mon, 21 Nov 2011 23:58:17 +0000 (15:58 -0800)] 
Add StrUtil API for parsing unsigned 64-bit integers.

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 23:57:50 +0000 (15:57 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/misc: pick up a few review comments
VMware, Inc [Mon, 21 Nov 2011 23:57:20 +0000 (15:57 -0800)] 
lib/misc: pick up a few review comments

Pick up a few review comments on random.c

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/misc: clean up random.c
VMware, Inc [Mon, 21 Nov 2011 23:56:39 +0000 (15:56 -0800)] 
lib/misc: clean up random.c

Make things cleaner.

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 23:56:24 +0000 (15:56 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: group all non debug function in ul.c together
VMware, Inc [Mon, 21 Nov 2011 23:55:46 +0000 (15:55 -0800)] 
lib/lock: group all non debug function in ul.c together

This makes it easier to avoid build mistakes...

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoOVT: Build lib/xdg with GLib flags.
VMware, Inc [Mon, 21 Nov 2011 23:55:30 +0000 (15:55 -0800)] 
OVT: Build lib/xdg with GLib flags.

Didn't realize this library, as built for OVT, wasn't implicitly built
w/ GLib headers in the include path, so adding a call to g_debug broke
things.  Whoops.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: no need to comment out define
VMware, Inc [Mon, 21 Nov 2011 23:55:09 +0000 (15:55 -0800)] 
lib/lock: no need to comment out define

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 23:54:30 +0000 (15:54 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoUnity/X11: Tweaks to support Ubuntu 11.10.
VMware, Inc [Mon, 21 Nov 2011 23:53:56 +0000 (15:53 -0800)] 
Unity/X11: Tweaks to support Ubuntu 11.10.

• Refresh the logic in xdg-detect-de based on xdg-utils Git commit 5010c394.
We now grok LXDE and Unity.
• xdg-find-menus now uses (vmware-)xdg-detect-de instead of duplicating its
own desktop environment detection.
• Changed Xdg_GetDesktopEnv semantics slightly.  It now returns a case-
insensitive alphanumeric string on success and "" (as opposed to NULL) on
failure.

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 23:52:39 +0000 (15:52 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoReduce heap allocations when listing processes in the guest.
VMware, Inc [Mon, 21 Nov 2011 23:51:38 +0000 (15:51 -0800)] 
Reduce heap allocations when listing processes in the guest.

Friday clean-up. We can just put the integer key in the data
structure that stores the state of the operation, and then pass the
address of that field to the hash table.
This does mean we need to use g_hash_table_replace() instead of
insert(), since we must update the key if we update the value.

Also, when passing the key along to timeout/clean-up function, just
stuff it into the pointer, since pointers are always large enough to
hold an int. This means more casts, but one fewer call to malloc().

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: fix off-by-one indent
VMware, Inc [Mon, 21 Nov 2011 23:51:16 +0000 (15:51 -0800)] 
lib/lock: fix off-by-one indent

One line needs a fix.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: things go back
VMware, Inc [Mon, 21 Nov 2011 23:51:00 +0000 (15:51 -0800)] 
lib/lock: things go back

The entire new lib/lock structure is back in... except that
there is an ifdef for working the new way. By default it will
run compatible with the old way.

I've discovered that there are as many as 5 copies of lib/lock in
some of our products (i.e. Linux UI). Things would be fine if the
copies were used in a self contained fashion. When lib/lock runs
in the new way, random syndrome bits per library caused crashes
and hangs proving we're leaking locks across a boundary (something
unexpected).

Two copies of lib/lock passing around locks could be fatal if the
two copies are different versions of lib/lock.

Unfortunately logs and core dumps haven't been easy to find. I'm going
to begin a detailed search for the root cause via the ifdef; others
should not be affected.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: put more back...
VMware, Inc [Mon, 21 Nov 2011 23:50:07 +0000 (15:50 -0800)] 
lib/lock: put more back...

I'm going to get this down to the absoluate basics. Then we're
finally going to catch the library problems.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRevert a previous change.
VMware, Inc [Mon, 21 Nov 2011 23:41:11 +0000 (15:41 -0800)] 
Revert a previous change.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRevert a previous change.
VMware, Inc [Mon, 21 Nov 2011 23:40:59 +0000 (15:40 -0800)] 
Revert a previous change.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRevert a previous change.
VMware, Inc [Mon, 21 Nov 2011 23:40:30 +0000 (15:40 -0800)] 
Revert a previous change.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRevert a previous change.
VMware, Inc [Mon, 21 Nov 2011 23:40:10 +0000 (15:40 -0800)] 
Revert a previous change.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: finally put back the fix
VMware, Inc [Mon, 21 Nov 2011 23:37:41 +0000 (15:37 -0800)] 
lib/lock: finally put back the fix

This heavily reviewed change goes back in with one exception -
the part of the change that altered the size of structures isn't
included. The altering of structure sizes is causing hangs and
crashes. Hopefully the run-time checking, already in, will catch
the problems and we can clean those up. Once cleaned up we will
be free to alter structure sizes.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: A nice improvement
VMware, Inc [Mon, 21 Nov 2011 23:37:09 +0000 (15:37 -0800)] 
lib/lock: A nice improvement

. Don't use a bunch of defines.
. Add checking for potential serial number roll overs.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/log: fix typo
VMware, Inc [Mon, 21 Nov 2011 23:36:47 +0000 (15:36 -0800)] 
lib/log: fix typo

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: if you can't beat'em, join'em
VMware, Inc [Mon, 21 Nov 2011 23:36:24 +0000 (15:36 -0800)] 
lib/lock: if you can't beat'em, join'em

Every time I change lib/lock to help find a bug it causes
problem if and only if I alter the size of a structure. This
indicates that there are multiple copies of lib/lock floating
around (known; as many as 5 copies have been observed), some that
may be incompatible with each other.

This change adds a real time signature and identification analysis
to lib/lock. It does this without changing any structure sizes. It
will help us catch the culprits and come up with a build plan to
handle this.

The run-time checking is done by having lib/lock always use a
unique signature, regardless of what type of build it is in. Any
lock that comes from a different copy of lib/lock will have a
different signature.

Previously, the signatures were static and also provided debugging
help to the type of lock.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: more juggling
VMware, Inc [Mon, 21 Nov 2011 23:35:22 +0000 (15:35 -0800)] 
lib/lock: more juggling

Trivial moves to get a bit change to be easy to review

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: back out a bit more
VMware, Inc [Mon, 21 Nov 2011 23:30:44 +0000 (15:30 -0800)] 
lib/lock: back out a bit more

Not quite what I need; back out a bit more.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: the last piece
VMware, Inc [Mon, 21 Nov 2011 23:29:39 +0000 (15:29 -0800)] 
lib/lock: the last piece

This will put lib/lock such that the real-time checking
can be done while not changing the size of any structure.

This backs out changes to the point that we can go forward.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: continue to backout changes and adapt
VMware, Inc [Mon, 21 Nov 2011 23:29:15 +0000 (15:29 -0800)] 
lib/lock: continue to backout changes and adapt

Almost there, almost there...

I'm taking things back to a point that the run-time checking
can be done and not create the hanging/crashing problems.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoDnD: fix vmblock-fuse detection on newer Linuxes
VMware, Inc [Mon, 21 Nov 2011 23:26:59 +0000 (15:26 -0800)] 
DnD: fix vmblock-fuse detection on newer Linuxes

Newer Linuxes, such as Fedora 15 and Ubuntu 11.10, have
/var/run symlinked to /run so when we read existing mount
points in search of fuse.vmware-vmblock our matching on
/var/run/vmblock-fuse does not work anymore.

Try to resolve supplied mount point before comparing with
mount data.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: missed a change in the backout
VMware, Inc [Mon, 21 Nov 2011 23:24:46 +0000 (15:24 -0800)] 
lib/lock: missed a change in the backout

I'm backing things out and putting things in to get lib/lock to
a known good place. Missed one change.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: continue putting code back
VMware, Inc [Mon, 21 Nov 2011 23:24:31 +0000 (15:24 -0800)] 
lib/lock: continue putting code back

I'm working my way towards reintegrating the run-time
checking version which was code-read.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: begin putting back changes
VMware, Inc [Mon, 21 Nov 2011 23:24:07 +0000 (15:24 -0800)] 
lib/lock: begin putting back changes

An earlier change, once again, blew up various products and so
was backed out. Put back in what we can, things that don't cause
the problem to occur. This will minimize later changes.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRevert a previous change.
VMware, Inc [Mon, 21 Nov 2011 23:23:47 +0000 (15:23 -0800)] 
Revert a previous change.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRevert a previous change.
VMware, Inc [Mon, 21 Nov 2011 23:23:27 +0000 (15:23 -0800)] 
Revert a previous change.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRevert a previous change.
VMware, Inc [Mon, 21 Nov 2011 23:23:11 +0000 (15:23 -0800)] 
Revert a previous change.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRevert a previous change.
VMware, Inc [Mon, 21 Nov 2011 23:22:49 +0000 (15:22 -0800)] 
Revert a previous change.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRevert previous change.
VMware, Inc [Mon, 21 Nov 2011 23:22:18 +0000 (15:22 -0800)] 
Revert previous change.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRevert previous change.
VMware, Inc [Mon, 21 Nov 2011 23:21:50 +0000 (15:21 -0800)] 
Revert previous change.

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 23:20:56 +0000 (15:20 -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 23:20:10 +0000 (15:20 -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 23:19:42 +0000 (15:19 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoglib logger: don't try to log to an invalid fd.
VMware, Inc [Mon, 21 Nov 2011 23:19:26 +0000 (15:19 -0800)] 
glib logger: don't try to log to an invalid fd.

See nasty details in the comment for FileLoggerIsValid(). Long story short,
glib will cause log recursion and because it abort(3)s the process when
that happens instead of letting us handle the recursion, things don't work.

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 23:18:05 +0000 (15:18 -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 23:17:41 +0000 (15:17 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoglib logger: GIOChannel is not thread safe.
VMware, Inc [Mon, 21 Nov 2011 23:17:19 +0000 (15:17 -0800)] 
glib logger: GIOChannel is not thread safe.

And the medicine for all thread-safety issues is...

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: fix indenting
VMware, Inc [Mon, 21 Nov 2011 23:16:50 +0000 (15:16 -0800)] 
lib/lock: fix indenting

it was hard to catch but some of the code was indented a bit off.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRemove hypervisor signature check from vmcheck.
VMware, Inc [Mon, 21 Nov 2011 23:15:56 +0000 (15:15 -0800)] 
Remove hypervisor signature check from vmcheck.

It seems the data returned has been changed, so it's better to just rely
on the other methods to detect hypervisor features instead.

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 23:13:53 +0000 (15:13 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoBump tools version to "next unstable".
VMware, Inc [Mon, 21 Nov 2011 23:04:52 +0000 (15:04 -0800)] 
Bump tools version to "next unstable".

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoglib logger: use a GIOChannel instead of a FILE pointer
VMware, Inc [Mon, 21 Nov 2011 23:04:36 +0000 (15:04 -0800)] 
glib logger: use a GIOChannel instead of a FILE pointer

That code can be linked to a different version of the
MS CRT than the glib library we're using, and when that happens it's not
safe to use the FILE pointer returned by glib with CRT functions.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: a little clean up of condVar
VMware, Inc [Mon, 21 Nov 2011 23:03:35 +0000 (15:03 -0800)] 
lib/lock: a little clean up of condVar

Trivial but nice clean up of a few things.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: fix function comments
VMware, Inc [Mon, 21 Nov 2011 23:03:17 +0000 (15:03 -0800)] 
lib/lock: fix function comments

The grammar needs some help...

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: put the syndrome bits back
VMware, Inc [Mon, 21 Nov 2011 23:02:49 +0000 (15:02 -0800)] 
lib/lock: put the syndrome bits back

Took them out because the old way of doing things broke the
tools build. This way works just as well, is simpler and easier
to understand.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: tools build problems
VMware, Inc [Mon, 21 Nov 2011 23:02:28 +0000 (15:02 -0800)] 
lib/lock: tools build problems

Looks like lib/lock calling Hostinfo is causing havoc in the
tools build. Remove it for now; I'll come up with something
different soon.

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 23:02:04 +0000 (15:02 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoCall vmwarectrl to set host GUI topology even if we use RandR12
VMware, Inc [Mon, 21 Nov 2011 23:01:43 +0000 (15:01 -0800)] 
Call vmwarectrl to set host GUI topology even if we use RandR12

The new vmwgfx driver needs to be separately informed about the host GUI topology since with screen objects we differentiate between that and Guest FB layout, which is set using RandR12.

We could in theory set the host gui layout using direct kernel calls to the modesetting system of the kernel, but we won't do that until we've sorted out the security implications.

To be paranoid, we grab the X server around the host GUI information update and the guest FB layout update, taking care to really flush the
XUngrabServer call.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoAdapt to new output names of the vmwgfx driver
VMware, Inc [Mon, 21 Nov 2011 23:01:21 +0000 (15:01 -0800)] 
Adapt to new output names of the vmwgfx driver

The kernel- and Xorg vmwgfx drivers are about to change the output
/ connector names from LVDSx to Virtualx reflecting that we're not
setting up LVDS monitors but virtual monitors.

Fix up libresolutionset accordingly.

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

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 23:00:28 +0000 (15:00 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoFix invalid memory read.
VMware, Inc [Mon, 21 Nov 2011 22:59:57 +0000 (14:59 -0800)] 
Fix invalid memory read.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoAdd the vm_basic_types.h header to dndGuest.h.
VMware, Inc [Mon, 21 Nov 2011 22:59:40 +0000 (14:59 -0800)] 
Add the vm_basic_types.h header to dndGuest.h.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: Remove racey run time check
VMware, Inc [Mon, 21 Nov 2011 22:58:49 +0000 (14:58 -0800)] 
lib/lock: Remove racey run time check

In the lock release code the count was being checked for
validity. This is a mistake as another thread may immediately
after the lock drops and affect the count.

Properly use the reference counting and destroy the lock on its
last access/release.

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

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: MXUser Recursive Try test failure issue
VMware, Inc [Mon, 21 Nov 2011 22:58:02 +0000 (14:58 -0800)] 
lib/lock: MXUser Recursive Try test failure issue

The MXUser Lock Facility has the ability to arbitrarily fail a
try lock for testing purposes. The lock reference count needs to
decremented if a force fail is a called for.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoImplement separate HgfsSessions for Transport layer and Sessions layer.
VMware, Inc [Mon, 21 Nov 2011 22:57:41 +0000 (14:57 -0800)] 
Implement separate HgfsSessions for Transport layer and Sessions layer.

To make the hgFileCopy more robust, we have decided to implement
separate sessions in the transport layer and the session layer. I
implemented a list of sessions in the transport layer. Moved the necessary
attributes from HgfsTransportSessionInfo to HgfsSessionInfo. Modified
all the necessary server connect|disconnect|receive|... functions to handle
the packets properly.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoACK! old code
VMware, Inc [Mon, 21 Nov 2011 22:56:47 +0000 (14:56 -0800)] 
ACK! old code

Use the right change...

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: make all instances identical
VMware, Inc [Mon, 21 Nov 2011 22:56:23 +0000 (14:56 -0800)] 
lib/lock: make all instances identical

Two places aren't using the new way.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: put back the rest of the signature setting
VMware, Inc [Mon, 21 Nov 2011 22:55:54 +0000 (14:55 -0800)] 
lib/lock: put back the rest of the signature setting

Hide the clearing of the signature.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: centralize MXUser object header signature control
VMware, Inc [Mon, 21 Nov 2011 22:55:15 +0000 (14:55 -0800)] 
lib/lock: centralize MXUser object header signature control

The setting and checking of MXUser object header signatures
is centralized. Eventually, we can make a change in one place
and have a way to detect old libraries; perhaps even multiple
libraries.

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

Split the compound assert into two; the second will be change
to a run-time check in debug builds - with analysis.

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

More pieces go back in...

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: continue to put things back
VMware, Inc [Mon, 21 Nov 2011 22:53:45 +0000 (14:53 -0800)] 
lib/lock: continue to put things back

More trivial pieces go back in...

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agolib/lock: put things back together
VMware, Inc [Mon, 21 Nov 2011 22:53:26 +0000 (14:53 -0800)] 
lib/lock: put things back together

My previous change, which had several parts, caused problems
with 64-bit systems. I backed out the change. Now I'm putting
things back, one piece at a time. This piece is the trivial,
cosmetic piece.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRevert a previous change.
VMware, Inc [Mon, 21 Nov 2011 22:53:06 +0000 (14:53 -0800)] 
Revert a previous change.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
14 years agoRevert a previous change.
VMware, Inc [Mon, 21 Nov 2011 22:52:42 +0000 (14:52 -0800)] 
Revert a previous change.

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:50:50 +0000 (14:50 -0800)] 
Changes in shared code that don't affect open-vm-tools functionality.

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