From: VMware, Inc <> Date: Wed, 26 Dec 2012 21:21:57 +0000 (-0800) Subject: Internal branch sync. Included in this change: X-Git-Tag: 2012.12.26-958366~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=071c9ca91332cfd0da580247f69c5bc216f284d4;p=thirdparty%2Fopen-vm-tools.git Internal branch sync. Included in this change: . VSOCK: strip SOCK_SEQPACKET from the VMX/installer . changes in shared code that don't affect open-vm-tools functionality Signed-off-by: Dmitry Torokhov --- diff --git a/open-vm-tools/lib/include/mutexRank.h b/open-vm-tools/lib/include/mutexRank.h index 4942af6bb..b7e265559 100644 --- a/open-vm-tools/lib/include/mutexRank.h +++ b/open-vm-tools/lib/include/mutexRank.h @@ -32,6 +32,8 @@ /* * Core rank defines. + * + * ANY RANK USAGE ABOVE RANK_LEAF IS RESERVED BY THE PI GROUP. */ #define RANK_UNRANKED 0 @@ -52,7 +54,18 @@ * logging code cannot call anything else which requires a lock, but * everyone else can safely Log() while holding a leaf lock. */ -#define RANK_logLock (RANK_LEAF + 1) +#define RANK_logLock (RANK_LEAF + 2) + +/* + * overheadMem lock rank. + * + * Very special case. Don't change it. One must be able to enter + * the overheadMem Facility at any rank (RANK_LEAF or lower) and + * still be able to acquire a lock in overheadMem *AND* be able + * to Log(). + */ + +#define RANK_overheadMem (RANK_LEAF + 1) /* * bora/lib/allocTrack rank (not really). diff --git a/open-vm-tools/modules/linux/vsock/linux/vsockCommon.h b/open-vm-tools/modules/linux/vsock/linux/vsockCommon.h index 57a1f9a94..ee76076df 100644 --- a/open-vm-tools/modules/linux/vsock/linux/vsockCommon.h +++ b/open-vm-tools/modules/linux/vsock/linux/vsockCommon.h @@ -204,31 +204,6 @@ __declspec(selectany) extern const WSAPROTOCOL_INFOW vsockProtocolInfos[] = { 0, /* None. */ L"VMCI sockets STREAM" /* Protocol name. */ }, - { - /* XXX, should this also be XP1_MESSAGE_ORIENTED? */ - (XP1_GUARANTEED_DELIVERY | /* Guaranteed delivery. */ - XP1_GUARANTEED_ORDER | /* Guaranteed order. */ - XP1_GRACEFUL_CLOSE), /* Graceful close. */ - 0, /* Reserved. */ - 0, /* Reserved. */ - 0, /* Reserved. */ - PFL_MATCHES_PROTOCOL_ZERO, /* Always protocol 0. */ - { 0 }, /* None. */ - 0, /* Assigned by Winsock. */ - { 1, 0 }, /* Base provider. */ - 0, /* Version 0. */ - VMCI_SOCKETS_AF_VALUE, /* VMCI sockets protocol. */ - 16, /* Maximum address length in bytes. */ - 16, /* Minimum address length in bytes. */ - SOCK_SEQPACKET, /* SEQPACKET. */ - 0, /* Protocol. */ - 0, /* Protocol max offset. */ - BIGENDIAN, /* Network byte order. */ - SECURITY_PROTOCOL_NONE, /* No security. */ - 0, /* Message size unimportant. */ - 0, /* None. */ - L"VMCI sockets SEQPACKET" /* Protocol name. */ - }, }; __declspec(selectany) extern const