[<<][pool][>>][..]
Sun Nov 21 14:12:02 EST 2010

Patching vmware kernel modules for 2.6.33.7-rt21

Untar the vmnet.tar vsock.tar and vmci.tar files in
/usr/lib/vmware/modules/source/ then apply the patch below to the
following files (they are the same) and re-tar the archives.

/usr/lib/vmware/modules/source/vmnet-only/compat_semaphore.h
/usr/lib/vmware/modules/source/vsock-only/shared/compat_semaphore.h
/usr/lib/vmware/modules/source/vmci-only/include/compat_semaphore.h


--- a/shared/compat_semaphore.h
+++ b/shared/compat_semaphore.h
@@ -38,10 +38,12 @@
     * The -rt patchset added the rename between 2.6.29-rt and 2.6.31-rt.
     */
    #ifndef DECLARE_MUTEX
-      #define DECLARE_MUTEX(_m)  DEFINE_SEMAPHORE(_m)
+      #define DECLARE_MUTEX(_m)  DEFINE_SEMAPHORE(_m, 1)
    #endif
    #ifndef init_MUTEX
-      #define init_MUTEX(_m) semaphore_init(_m)
+      #define init_MUTEX(_m) sema_init(_m, 1)
    #endif
 #endif


Then recompile the modules using:

# vmware-modconfig --console --install-all




[Reply][About]
[<<][pool][>>][..]