]> git.ipfire.org Git - thirdparty/open-vm-tools.git/log
thirdparty/open-vm-tools.git
16 years agoInternal branch sync. Included in this change:
VMware, Inc [Thu, 15 Oct 2009 21:29:54 +0000 (14:29 -0700)] 
Internal branch sync. Included in this change:

. Refactoring of functions from lib/user to lib/misc.

. lib/file: Directory tree deletion. Don't follow a symlink... Delete the
  contents of the tree (itself).

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoInternal branch sync. Included in this change:
VMware, Inc [Thu, 15 Oct 2009 21:20:57 +0000 (14:20 -0700)] 
Internal branch sync. Included in this change:

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

. Don't linearize vmxnet3-shm tx packets. We don't need/want to linearize
  shm packets, and the re-estimate of the number of TX descriptors needed was
  too low. This led to next2fill skipping over next2comp and corruption of the
  TX ring. This corruption caused device resets, which uncovered a race between
  tq_xmit and reset_work. Finally, remove some suspicious code duplication and
  replace with a call to vmxnet3_dev_kfree_skb.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoMove the CPUID-related functions out of vm_basic_asm.h into a new
VMware, Inc [Thu, 15 Oct 2009 21:14:17 +0000 (14:14 -0700)] 
Move the CPUID-related functions out of vm_basic_asm.h into a new
file, x86cpuid_asm.h.

This allows us to remove the dependency between vm_basic_asm.h and
x86cpuid.h.  This is desirable because many of the files that include
vm_basic_asm.h don't care about the CPUID functions.  This is a win,
because x86cpuid.h is both heavily modified and included in a
very large number of files.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoHandle capabilities in VMwareUser on Vista/Win7. We can't set the guest
VMware, Inc [Thu, 15 Oct 2009 21:12:51 +0000 (14:12 -0700)] 
Handle capabilities in VMwareUser on Vista/Win7. We can't set the guest
resolution without a user session attached to the console in Vista/Win7
because of session 0 isolation.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoAdd checking errors returned by CPName_GetComponent.
VMware, Inc [Thu, 15 Oct 2009 21:09:34 +0000 (14:09 -0700)] 
Add checking errors returned by CPName_GetComponent.

CPName_GetComponent returns either length of the name or -1
in case of errors. Need to check for -1 everywhere before using
the result of this function. Need to make sure that returned value is
assigned to a signed variable otherwise error condition is lost.

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

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoOriginal Description:
VMware, Inc [Thu, 15 Oct 2009 21:06:00 +0000 (14:06 -0700)] 
Original Description:
Fix linux driver build warnings

Our users gripe.  I spent 15 minutes and solved gripe.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoRun programs in a user environment without Tools' settings.
VMware, Inc [Thu, 15 Oct 2009 21:05:19 +0000 (14:05 -0700)] 
Run programs in a user environment without Tools' settings.

vmware-user on Linux uses the app-loader tool to set up its
environment so it can use various bundled libraries. However,
this cause these environment variables to be set that when
VIX runs programs or scripts from vmware-user, these processes
fail due to library conflicts. For example, gedit on RHEL 4 was
compiled with a version of libpango that conflicts with the
version of this library that ships with the Tools.

The solution is to store the original, pre-app-loader
environment with the VIX tools module. Some of the
infrastructure was already in place to fix a similar issue when
launching a web browser to view the Help from toolbox. However,
this needed to be plumbed through VIX, and added to lib/procMgr.

Also, one further wrinkle is that VIX allows clients to
programatically change the environment. So, we keep track of the
environment using a hash table, update it when processing
WriteVariable commands, then serial the hashtable into a environ
block when RunProgram or RunScript are called.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoPvscsi driver accepts 16 byte CDBs, emulation rejects OUT_OF_BAND_CDB flag
VMware, Inc [Thu, 15 Oct 2009 21:04:31 +0000 (14:04 -0700)] 
Pvscsi driver accepts 16 byte CDBs, emulation rejects OUT_OF_BAND_CDB flag

As pointed out in bug 472258, our linux driver doesn't set
host->max_cmd_len, so the guest kernel uses the default of 12.  That
means 16-byte long commands won't make it through to our emulation at
all.  Since disklib doesn't support 2TB disks yet, its not that bad, but
we would like to support >2TB disks connected as s/g devices for klnext.
That requires READ16 and WRITE16.  One line driver fix.

The other bug here is that we advertise a flag for sending OUT_OF_BAND_CDBs,
a method for sending > 16 bytes of CDB.  We don't implement it and silently
ignore it.  Thats bad -- we'd like to at least reject these commands
so future revs of the driver could use this flag for something interesting
without worrying about silent failures.

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

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoClean up usage of vm_app.h in bora-vmsoft.
VMware, Inc [Thu, 15 Oct 2009 21:02:41 +0000 (14:02 -0700)] 
Clean up usage of vm_app.h in bora-vmsoft.

That header has been "deprecated" and replaced by more app-specific ones in
the new guestABI component. This change focuses mostly on files that are part
of open-vm-tools (so we can at least remove the deprecated header there).

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoMove guestCaps.h to its new location.
VMware, Inc [Thu, 15 Oct 2009 21:02:12 +0000 (14:02 -0700)] 
Move guestCaps.h to its new location.

Another change towards the goal of isolating host/guest interfaces.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoAn __FUNCTION__ change
VMware, Inc [Thu, 15 Oct 2009 21:01:29 +0000 (14:01 -0700)] 
An __FUNCTION__ change

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoSave the native environment in vmtoolsd.
VMware, Inc [Thu, 15 Oct 2009 21:01:14 +0000 (14:01 -0700)] 
Save the native environment in vmtoolsd.

Save the native environment so that applications that need to execute
sub-processes using it are able to retrieve it. For that, make it
available in the application context structure.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoMake LINUX_ONLY generally available
VMware, Inc [Thu, 15 Oct 2009 21:00:43 +0000 (14:00 -0700)] 
Make LINUX_ONLY generally available

A LINUX_ONLY macro has been part of the fileTrack facility for some
time. Let's make it generally available to compliment similar macros.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoFix illegal symbols.
VMware, Inc [Thu, 15 Oct 2009 21:00:10 +0000 (14:00 -0700)] 
Fix illegal symbols.

These will cause builds to fail when the symbol checker
is enabled.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Thu, 15 Oct 2009 20:59:21 +0000 (13:59 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoAdd support for a "common" plugin directory to vmtoolsd.
VMware, Inc [Thu, 15 Oct 2009 20:58:32 +0000 (13:58 -0700)] 
Add support for a "common" plugin directory to vmtoolsd.

This allows sharing the same binary for plugins that will be loaded in
different containers. This will be the case for hgfsServer / vix when
vmware-user is converted to use vmtoolsd, and is also useful for other
cases (such as plugins providing pluggable transports).

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoFix runtime glib warning.
VMware, Inc [Thu, 15 Oct 2009 20:58:02 +0000 (13:58 -0700)] 
Fix runtime glib warning.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoRetire GuestApp_ControlRecord(). p4-sync-929606
VMware, Inc [Mon, 28 Sep 2009 20:31:04 +0000 (13:31 -0700)] 
Retire GuestApp_ControlRecord().

The user-visible functionality was removed a while ago at PM's request,
time to kill the underlying code.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoUse the pthread implementation of sync mutex in open-vm-tools.
VMware, Inc [Mon, 28 Sep 2009 20:30:51 +0000 (13:30 -0700)] 
Use the pthread implementation of sync mutex in open-vm-tools.

This avoids having to deal with the eventfd library used by the
syncWaitQ code.

For some background of "issues this change avoids", see
sourceforge.net bug 2865804.

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

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoFix vmtoolsd infinitely spawning itself.
VMware, Inc [Mon, 28 Sep 2009 20:29:13 +0000 (13:29 -0700)] 
Fix vmtoolsd infinitely spawning itself.

If the pid file was provided using "--background=", the code failed to
remove that argument from the child invocation, causing an infinite loop.

Also fix behavior of running in background while providing a relative
path on the command line.

See sourceforge.net bug 2865784.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoFix linking of vmmemclt linux driver (in open-vm-tools).
VMware, Inc [Mon, 28 Sep 2009 20:28:56 +0000 (13:28 -0700)] 
Fix linking of vmmemclt linux driver (in open-vm-tools).

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoMove a few guest rpc definitions to their new guestABI location.
VMware, Inc [Mon, 28 Sep 2009 20:28:46 +0000 (13:28 -0700)] 
Move a few guest rpc definitions to their new guestABI location.

This change still keeps the old "vm_app.h" file (which just includes
the new ones) to avoid too much code churn.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoUpdate Tools version.
VMware, Inc [Mon, 28 Sep 2009 20:28:16 +0000 (13:28 -0700)] 
Update Tools version.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years ago(Trivial) Correct hgfs default path to "/Volumes/VMware Shared Folders"
VMware, Inc [Mon, 28 Sep 2009 20:27:57 +0000 (13:27 -0700)] 
(Trivial) Correct hgfs default path to "/Volumes/VMware Shared Folders"

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

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoFix resource leaks discovered by coverity run
VMware, Inc [Mon, 28 Sep 2009 20:23:04 +0000 (13:23 -0700)] 
Fix resource leaks discovered by coverity run

Strings were not released at all the exit points in some dispatch
handlers: HgfsServerSymlinkCreate, HgfsServerRename,
HgfsServerDeleteDir.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoReturn a better error when host fails the lowest version request.
VMware, Inc [Mon, 28 Sep 2009 20:22:44 +0000 (13:22 -0700)] 
Return a better error when host fails the lowest version request.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoRemove makefiles for linux 2.4 kernel modules.
VMware, Inc [Mon, 28 Sep 2009 20:22:22 +0000 (13:22 -0700)] 
Remove makefiles for linux 2.4 kernel modules.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoMove vmbackup definitions to the guestABI directory.
VMware, Inc [Mon, 28 Sep 2009 20:22:15 +0000 (13:22 -0700)] 
Move vmbackup definitions to the guestABI directory.

Another change to isolate host/guest interfaces into their own place.
Source changes just reflect the new location/name of the header file.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoOVT: Quick build fix.
VMware, Inc [Mon, 28 Sep 2009 20:22:07 +0000 (13:22 -0700)] 
OVT: Quick build fix.

A comma broke free of its leash and was found wandering the streets.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoOVT: use 1:1 threading library instead of pthreads on FreeBSD
VMware, Inc [Mon, 28 Sep 2009 20:22:00 +0000 (13:22 -0700)] 
OVT: use 1:1 threading library instead of pthreads on FreeBSD

This is a followup to the chage that switches from using pthread
library to 1:1 threading library on FreeBSD, but this time it
affects open-vm-tools build instead of our stock build.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoOriginal Description:
VMware, Inc [Mon, 28 Sep 2009 20:21:55 +0000 (13:21 -0700)] 
Original Description:
Add RPC to support enabling and disabling 3D in guest.

Add an RPC that allows the UI to reset Aero -> essentially net
stop/start uxsms. Programatically done by DCE Win32 APIs. See
http://msdn.microsoft.com/en-us/library/aa969538%28VS.85%29.aspx.
This is basically a fix for 467709 until a better solution becomes
available (one that requires methods that are not supported
right now, like PCI hotplug).

The fix is a bit ugly, we need to refactor a bit in the code that
spawns resolution set.

Furthermore, we need to broadcast this to all user sessions, not
just the active one. A loop that iterates all guest sessions will
come later.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoGuestInfo: Let users tweak poll loop behavior.
VMware, Inc [Mon, 28 Sep 2009 20:21:45 +0000 (13:21 -0700)] 
GuestInfo: Let users tweak poll loop behavior.

Requested nearly a year ago by Ken Barr, this change introduces a new
Tools config option for the GuestInfo plugin.  It is

- guestinfo.poll-interval:  an integer which defines the
GuestInfoGather poll interval in seconds.  A value of 0 disables
the poll loop.

This is the first plugin making use of the new tcs_conf_reload signal.
Changes to the Tools config file emit this signal.  In response to
receiving it, iff the poll interval has changed, the GuestInfoGather
timeout source is canceled, and a new one with the new interval is
created and attached.

A small side effect of this change is the addition of a macro,
CONFGROUPNAME_GUESTINFO, which specifies the config file group for
GuestInfo variables.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoToolsCore: Signal config file reloads.
VMware, Inc [Mon, 28 Sep 2009 20:21:33 +0000 (13:21 -0700)] 
ToolsCore: Signal config file reloads.

This change introduces a new signal, tcs_conf_reload, which is emitted
in response to a successful config file reload.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoFix typo.
VMware, Inc [Mon, 28 Sep 2009 20:21:24 +0000 (13:21 -0700)] 
Fix typo.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoInternal branch sync. Included in this change:
VMware, Inc [Mon, 28 Sep 2009 20:21:06 +0000 (13:21 -0700)] 
Internal branch sync. Included in this change:

. fix an issue with double-clicks in Unity.

. drop IO channels in favor of hybrid FD, X11 queue monitoring.

. detach DnD from Unity when unregistering capabilities.

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

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoUpdating open-vm-tools version for release 2009.09.18-193784. 2009.09.18-193784
VMware, Inc [Sat, 19 Sep 2009 01:57:50 +0000 (18:57 -0700)] 
Updating open-vm-tools version for release 2009.09.18-193784.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agorpcChannel: Add wrapper functions for start/stop.
VMware, Inc [Fri, 18 Sep 2009 21:53:43 +0000 (14:53 -0700)] 
rpcChannel: Add wrapper functions for start/stop.

Make the RpcChannel API more obvious by providing RpcChannel_Start
and RpcChannel_Stop functions instead of relying on the function
pointers in the RpcChannel struct.

Modify vmtoolsd code to use these functions.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoopen-vm-tools: remove reference to perl installer from README.
VMware, Inc [Fri, 18 Sep 2009 21:53:22 +0000 (14:53 -0700)] 
open-vm-tools: remove reference to perl installer from README.

Also link to new correct URL for getting information about packaging
(had to update the sourceforge site since they killed all our old wiki
content in some recent update).

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoMove the ASSERT to after the validity check.
VMware, Inc [Fri, 18 Sep 2009 21:52:57 +0000 (14:52 -0700)] 
Move the ASSERT to after the validity check.

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

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoInternal branch sync. Included in this change:
VMware, Inc [Fri, 18 Sep 2009 21:51:09 +0000 (14:51 -0700)] 
Internal branch sync. Included in this change:

. reduce Solaris vmxnet3 driver logspew.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoUpdate Tools version.
VMware, Inc [Fri, 18 Sep 2009 21:49:03 +0000 (14:49 -0700)] 
Update Tools version.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agovmware-user: Fix session locking.
VMware, Inc [Fri, 18 Sep 2009 21:48:34 +0000 (14:48 -0700)] 
vmware-user: Fix session locking.

Gtk innards broke our crazy session locking scheme.  (Note to self:
look into doing something sane like using D-Bus service registration.)
This only became apparent after vmware-user was apploaderized, causing
Gtk to retitle windows as "vmware-user-loader", while our scheme only
considered windows titled "vmware-user".

This change initializes Glib's "g_prgname" variable, which Gtk uses
when determining new window titles, such that all top level windows
will have a title of "vmware-user", regardless of the name of the
binary.

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

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

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoOVT: build libSlashProc only if GLIB is recent enough
VMware, Inc [Fri, 18 Sep 2009 21:47:24 +0000 (14:47 -0700)] 
OVT: build libSlashProc only if GLIB is recent enough

libSlashProc uses features only available in glib >= 2.14.0 so
don't try to build it if we detect anything older than that.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoInternal branch sync. Included in this change:
VMware, Inc [Fri, 18 Sep 2009 21:47:02 +0000 (14:47 -0700)] 
Internal branch sync. Included in this change:

. Unity: Add {un,}stick window RPC handlers.

. Complain loudly if res set or topology set is called at wrong state.

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

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

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoVMXNET,VMXNET3: fix compilation on RHEL 5.4
VMware, Inc [Fri, 18 Sep 2009 21:43:42 +0000 (14:43 -0700)] 
VMXNET,VMXNET3: fix compilation on RHEL 5.4

RedHat backported GRO patch to 2.6.18 which brought napi_sturct
definition to that kernel; it conflicts with our stub. For pre-2.6.24
kernels check if NETIF_F_GRO is defined and if it is assume that
struct napi_struct is present.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Fri, 18 Sep 2009 21:43:24 +0000 (14:43 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Fri, 18 Sep 2009 21:43:09 +0000 (14:43 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoInternal branch sync. Included in this change:
VMware, Inc [Fri, 18 Sep 2009 21:42:39 +0000 (14:42 -0700)] 
Internal branch sync. Included in this change:

. changes to guest info to account for new info gathered on Win32 guests.

. allow name other than 'work' in our compat_workqueue macro.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoInternal branch sync. Included in this change:
VMware, Inc [Fri, 18 Sep 2009 21:39:23 +0000 (14:39 -0700)] 
Internal branch sync. Included in this change:

. don't translate non-system errors in VIX handler.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoClean up a comment
VMware, Inc [Fri, 18 Sep 2009 21:37:19 +0000 (14:37 -0700)] 
Clean up a comment

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

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoCheck for SYS_eventfd instead of SYS_eventfd2.
VMware, Inc [Fri, 18 Sep 2009 21:36:42 +0000 (14:36 -0700)] 
Check for SYS_eventfd instead of SYS_eventfd2.

The former is more common (since, well, it was introduced earlier) and
eventfd.c still fails to compile if it's defined.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoToolbox: do not crash when user closes yes/no dialog window
VMware, Inc [Fri, 18 Sep 2009 21:36:28 +0000 (14:36 -0700)] 
Toolbox: do not crash when user closes yes/no dialog window

The code did not expect that user may close Yes/No dialog window
by pressing "X" instead of clicking on Yes/No button. Assume that
if user tried to close the window he did not want the changes to
be saved.

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

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoRemove pesky empty line that makes 'patch' not very happy.
VMware, Inc [Fri, 18 Sep 2009 21:35:59 +0000 (14:35 -0700)] 
Remove pesky empty line that makes 'patch' not very happy.

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

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoDe-duplicate vmmemctl files in open-vm-tools.
VMware, Inc [Fri, 18 Sep 2009 21:35:34 +0000 (14:35 -0700)] 
De-duplicate vmmemctl files in open-vm-tools.

These escaped my source clean up streak a few months ago.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoFix a few open-vm-tools compilation issues.
VMware, Inc [Fri, 18 Sep 2009 21:35:03 +0000 (14:35 -0700)] 
Fix a few open-vm-tools compilation issues.

. rpcgen wasn't finding ghiCommonDefines.h if the build directory was
not the same as the source directory, so need to copy the header file
to the build directory in that case.

. the new "eventfd.c" file should only be compiled in certain cases,
otherwise it errors out.

. VIX_DEBUG() uses symbols that are not available in open-vm-tools; instead
of going and fixing this whole VIX mess, just do not compile the
offending statement when in open vm tools.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoAdd support for rewinddir() and refresh dirent on first readdir() call.
VMware, Inc [Fri, 18 Sep 2009 21:34:28 +0000 (14:34 -0700)] 
Add support for rewinddir() and refresh dirent on first readdir() call.

rm -rf 6.10+ breaks because it does following:
1) fd = open();  // opendir() call to Hgfs
2) unlinkat();  // Remove an entry from director
3) dirp = fdopendir(fd);
4) while() readdir() // checking if entry is deleted

You may look at coreutils/src/remove.c

On 1) hgfsserver gets all the directory entries, thus changes
made by 2) are not reflected and rm -rf gets confused. Ideally,
we would like to detect 3) and alert hgfsserver that entries are
stale or reopen a directory. However, to my knowledge, we do not
get call on fdopendir().

So as a workaround, we ask the server to populate entries on
first readdir() call rather than opendir(). This effect is
achieved by closing and reopening the directory.

This change also introduces support for rewinddir(), since it suffered
from the same problem. rewinddir() semantics require that directory entries
should be refreshed. Thus an application doing following breaks:

opendir() -> rmdir() -> rewinddir() -> while() readdir() // check entry deleted.

We also get support for telldir()/seekdir() combination for free.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoAdd comments regarding barrier usage.
VMware, Inc [Fri, 18 Sep 2009 21:33:58 +0000 (14:33 -0700)] 
Add comments regarding barrier usage.

Add comments to explain why we use the naked barriers for PVSCSI
and the races that may arise without the barrier.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Fri, 18 Sep 2009 21:33:47 +0000 (14:33 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Fri, 18 Sep 2009 21:33:18 +0000 (14:33 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoInternal branch sync. Included in this change:
VMware, Inc [Fri, 18 Sep 2009 21:32:50 +0000 (14:32 -0700)] 
Internal branch sync. Included in this change:

. Use eventfd() instead of pipe() to create waitable objects
  in syncWaitQ.  Using eventfd() has couple of benefits:
  in the kernel they need just 8 bytes instead of whatever
  size kernel allocates by default (64 bytes at the cost of
  some non-trivial code when pipe wants to grow), and also
  each syncWaitQ now consumes only one file descriptor
  instead of two.

. fix null pointer dereference in vmxnet3_open.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoMisc changes for getting the driver ready for upstreaming.
VMware, Inc [Fri, 18 Sep 2009 21:26:00 +0000 (14:26 -0700)] 
Misc changes for getting the driver ready for upstreaming.

- Added parameter definition for missing msg_ring_pages.
- use the module_param_named macro for module parameters.
- drop the redundant "pvscsi_" prefix from each module parameter name.
- remove inline hints for all the function. Dmirty pointed out that
compilers are usually smart in deciding which to inline.
- use Linux defined min/max macros.
- print the revision number as a integer rather than characters.
- define the rev field in pvscsi_adapter as u8.
- formatting cleanup (tab/spaces) and some camel naming style cleanup.
- bumped the version for the driver to 1.0.0.0.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoRestructure pvscsi linux driver code.
VMware, Inc [Fri, 18 Sep 2009 21:25:42 +0000 (14:25 -0700)] 
Restructure pvscsi linux driver code.

This is all just code movement, no functional changes.
No function declarations are needed now, also moved the macro
and struct definitions to start of the file.
This is part of the cleanup/preparatory work that is being done
to get pvscsi driver ready for upstreaming.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoRestoring assert to vmballoon Solaris OS_Snprintf
VMware, Inc [Fri, 18 Sep 2009 21:25:20 +0000 (14:25 -0700)] 
Restoring assert to vmballoon Solaris OS_Snprintf

Restoring assert to vmballoon Solaris OS_Snprintf that was originally there.
Removing a small logging that is useless.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoChanging return type of OS_Init in vmballoon for unixes
VMware, Inc [Fri, 18 Sep 2009 21:25:09 +0000 (14:25 -0700)] 
Changing return type of OS_Init in vmballoon for unixes

A Bool is required because initialization could fail

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoFlush out stale file data before changing modification time
VMware, Inc [Fri, 18 Sep 2009 21:24:58 +0000 (14:24 -0700)] 
Flush out stale file data before changing modification time

This is to address bug 360310, where "cp -p" didn't preserve time and
date. See bug 360310 for details.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoCommenting of all Unixes vmballoon
VMware, Inc [Fri, 18 Sep 2009 21:24:41 +0000 (14:24 -0700)] 
Commenting of all Unixes vmballoon

Cleaning/adding missing comment so that code looks nicer

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoVMballoon Solaris : regression fix for bug 461152
VMware, Inc [Fri, 18 Sep 2009 21:24:30 +0000 (14:24 -0700)] 
VMballoon Solaris : regression fix for bug 461152

Errors in Solaris that prevent the module to be loaded

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years ago. add information about what folders changed to the launch menu RPC.
VMware, Inc [Fri, 18 Sep 2009 21:24:10 +0000 (14:24 -0700)] 
. add information about what folders changed to the launch menu RPC.

. add a black list of categories that should not be exposed in the
  host launch menu (e.g., screensavers).

. fix window stacking order in Unity.

. don't ignore minimize events on sticky windows.

. save the active NIC list so that it can be restored at resume time.
  This fixes an issue where Debian would disable certain NICs when
  suspending, causing them to not be restored when resuming the VM.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
16 years agoSync git tree with internal development branch @ 2009.08.24.
Marcelo Vanzin [Thu, 17 Sep 2009 22:35:39 +0000 (15:35 -0700)] 
Sync git tree with internal development branch @ 2009.08.24.

16 years ago2009.08.24-187411 2009.08.24-187411
Marcelo Vanzin [Mon, 24 Aug 2009 21:43:39 +0000 (14:43 -0700)] 
2009.08.24-187411

17 years ago2009.07.22-179896 2009.07.22-179896
Marcelo Vanzin [Wed, 22 Jul 2009 18:02:33 +0000 (11:02 -0700)] 
2009.07.22-179896

17 years ago2009.06.18-172495 2009.06.18-172495
Marcelo Vanzin [Thu, 18 Jun 2009 23:57:37 +0000 (16:57 -0700)] 
2009.06.18-172495

17 years ago2009.05.22-167859 2009.05.22-167859
Marcelo Vanzin [Sat, 23 May 2009 06:30:49 +0000 (23:30 -0700)] 
2009.05.22-167859

17 years ago2009.04.23-162451 2009.04.23-162451
Marcelo Vanzin [Thu, 23 Apr 2009 18:19:57 +0000 (11:19 -0700)] 
2009.04.23-162451

17 years ago2009.03.18-154848 2009.03.18-154848
Marcelo Vanzin [Wed, 18 Mar 2009 23:41:37 +0000 (16:41 -0700)] 
2009.03.18-154848

17 years ago2009.02.18-148847 2009.02.18-148847
Marcelo Vanzin [Wed, 18 Feb 2009 22:16:55 +0000 (14:16 -0800)] 
2009.02.18-148847

17 years ago2009.01.21-142982 2009.01.21-142982
Marcelo Vanzin [Wed, 21 Jan 2009 19:07:22 +0000 (11:07 -0800)] 
2009.01.21-142982

17 years agoFix the version numbers for the OVT package. 2008.12.23-137496
Marcelo Vanzin [Wed, 24 Dec 2008 19:19:17 +0000 (11:19 -0800)] 
Fix the version numbers for the OVT package.

17 years ago2008.12.23-137267
Marcelo Vanzin [Tue, 23 Dec 2008 22:53:47 +0000 (14:53 -0800)] 
2008.12.23-137267

17 years ago2008.11.18-130226 2008.11.18-130226
Marcelo Vanzin [Wed, 19 Nov 2008 01:36:49 +0000 (17:36 -0800)] 
2008.11.18-130226

17 years ago2008.11.18-130226
Marcelo Vanzin [Wed, 19 Nov 2008 01:34:10 +0000 (17:34 -0800)] 
2008.11.18-130226

17 years ago2008.10.13-123053 2008.10.10-123053
Adar Dembo [Mon, 13 Oct 2008 07:15:54 +0000 (00:15 -0700)] 
2008.10.13-123053

17 years agoFix according to Marcelo's comments Change parameter name of GuestApp_ControlRecord...
Yiwen Zhang [Wed, 24 Sep 2008 07:05:50 +0000 (15:05 +0800)] 
Fix according to Marcelo's comments Change parameter name of GuestApp_ControlRecord Remove root protection for record Fix mnemonic conflict in record tab

17 years agoMerge ssh://git-x.eng.vmware.com/git/opensource/open-vm-tools into yiwen-patches
Adar Dembo [Thu, 18 Sep 2008 01:50:03 +0000 (18:50 -0700)] 
Merge ssh://git-x.eng.vmware.com/git/opensource/open-vm-tools into yiwen-patches

17 years agoAdjust comment and message.
Yiwen Zhang [Thu, 11 Sep 2008 07:39:14 +0000 (15:39 +0800)] 
Adjust comment and message.

 Slightly modify a few comments and messages to be more presentive and compatible.

17 years agoAdd border width for toolbox record tab page
Yiwen Zhang [Wed, 10 Sep 2008 05:35:18 +0000 (13:35 +0800)] 
Add border width for toolbox record tab page

 Increase border width of record tab page so that its layout is more similar
 with existing pages.

17 years agoIncorporate new backdoor macro definition
Yiwen Zhang [Wed, 10 Sep 2008 03:36:00 +0000 (11:36 +0800)] 
Incorporate new backdoor macro definition

 Add macros for StateLogger backdoors in a new header. Magic numbers in related
 functions are also modified.