From: VMware, Inc <> Date: Thu, 15 Oct 2009 21:08:26 +0000 (-0700) Subject: Changes in shared code that don't affect open-vm-tools functionality. X-Git-Tag: 2009.10.15-201664~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3773b671f08aecb920ff83ae8e80618e9f8d261;p=thirdparty%2Fopen-vm-tools.git Changes in shared code that don't affect open-vm-tools functionality. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/include/backdoor_def.h b/open-vm-tools/lib/include/backdoor_def.h index 739fe4ed5..e83e0f59c 100644 --- a/open-vm-tools/lib/include/backdoor_def.h +++ b/open-vm-tools/lib/include/backdoor_def.h @@ -93,7 +93,7 @@ #define BDOOR_CMD_GETUUID 19 #define BDOOR_CMD_GETMEMSIZE 20 #define BDOOR_CMD_HOSTCOPY 21 /* Devel only */ -#define BDOOR_CMD_SERVICE_VM 22 /* prototype only */ +#define BDOOR_CMD_SERVICE_VM 22 /* Unused, never shipped, prototype only */ #define BDOOR_CMD_GETTIME 23 /* Deprecated. Use GETTIMEFULL. */ #define BDOOR_CMD_STOPCATCHUP 24 #define BDOOR_CMD_PUTCHR 25 /* Devel only */ diff --git a/open-vm-tools/lib/include/vm_basic_defs.h b/open-vm-tools/lib/include/vm_basic_defs.h index 00921dbf5..640dd38e2 100644 --- a/open-vm-tools/lib/include/vm_basic_defs.h +++ b/open-vm-tools/lib/include/vm_basic_defs.h @@ -87,10 +87,11 @@ #if defined _WIN32 && defined USERLEVEL #include /* - * We re-define offsetof macro from stddef, make - * sure that its already defined before we do it + * We redefine offsetof macro from stddef; make + * sure that it's already defined before we do that. */ #include // for Sleep() and LOWORD() etc. + #undef GetFreeSpace // Unpollute preprocessor namespace. #endif diff --git a/open-vm-tools/lib/include/vm_version.h b/open-vm-tools/lib/include/vm_version.h index 742caea08..de7c2dfa5 100644 --- a/open-vm-tools/lib/include/vm_version.h +++ b/open-vm-tools/lib/include/vm_version.h @@ -221,7 +221,7 @@ #define VMLS_VERSION "e.x.p" #define VLICENSE_VERSION "1.1.2" #define DDK_VERSION "e.x.p" -#define VIM_API_VERSION "4.0" +#define VIM_API_VERSION "4.5" #define VIPERL_VERSION "1.1.0" #define RCLI_VERSION "4.5.0" #define VDM_VERSION "e.x.p" diff --git a/open-vm-tools/modules/linux/pvscsi/scsi_defs.h b/open-vm-tools/modules/linux/pvscsi/scsi_defs.h index 217acebba..290b3d1f8 100644 --- a/open-vm-tools/modules/linux/pvscsi/scsi_defs.h +++ b/open-vm-tools/modules/linux/pvscsi/scsi_defs.h @@ -786,6 +786,43 @@ typedef struct { wp :1; // write protected } SCSIBlockModeSenseDeviceParameter; +/* + * Structure for Mode Caching Page. + */ +typedef +#include "vmware_pack_begin.h" +struct { + uint8 pageCode:6, + reserved1:1, + ps:1; + uint8 pageLength; + uint8 rcd:1, + mf:1, + wce:1, // set if device has a write cache and it is enabled + size:1, + disc:1, + cap:1, + abpf:1, + ic:1; + uint8 writePriority:4, + readPriority:4; + uint16 disablePrefetchTransferLength; + uint16 minPrefetch; + uint16 maxPrefetch; + uint16 maxPrefetchCeiling; + uint8 reserved2:3, + vs:2, + dra:1, + lbcss:1, + fsw:1; + uint8 numCacheSegments; + uint16 cacheSegmentSize; + uint8 reserved3; + uint8 nonCacheSegmentSize[3]; +} +#include "vmware_pack_end.h" +SCSIModeSenseCachePage; + /* * Command structure for a SCSI Reserve command. */ @@ -1202,6 +1239,43 @@ struct { #include "vmware_pack_end.h" SCSIReadCapacity16Response; +/* + * Format of SYNCHRONIZE CACHE (10) and (16) request and response blocks. + */ +typedef +#include "vmware_pack_begin.h" +struct { + uint8 opcode; // 0x35 + uint8 :5, + sync_nv :1, + immed :1, // if set return without waiting for sync to complete + :1; + uint32 lbn; // number of blocks to sync, 0 for full disk + uint8 :4, + grp_num :4; + uint8 lbc; // blk to begin sync, 0 for full disk + uint8 control; // control byte +} +#include "vmware_pack_end.h" +SCSISyncCache10Cmd; + +typedef +#include "vmware_pack_begin.h" +struct { + uint8 opcode; // 0x91 + uint8 :5, + sync_nv :1, + immed :1, // if set return, wihout waiting for sync to complete + :1; + uint64 lbn; // number of blocks to sync, 0 for full disk + uint8 :4, + grp_num :4; + uint32 lbc; // block number to begin sync, 0 for full disk + uint8 control; // control byte +} +#include "vmware_pack_end.h" +SCSISyncCache16Cmd; + /* * Format of READ/WRITE (6), (10), (12) and (16) * request. These are defined here because multiple SCSI diff --git a/open-vm-tools/modules/linux/vmxnet3/vmxnet3_drv.c b/open-vm-tools/modules/linux/vmxnet3/vmxnet3_drv.c index e227f38e8..e7ed33b5d 100644 --- a/open-vm-tools/modules/linux/vmxnet3/vmxnet3_drv.c +++ b/open-vm-tools/modules/linux/vmxnet3/vmxnet3_drv.c @@ -156,7 +156,7 @@ static int enable_shm[VMXNET3_SHM_MAX_DEVICES + 1] = { [0 ... VMXNET3_SHM_MAX_DEVICES] = -1 }; static char *shm_disclaimer = NULL; static int correct_shm_disclaimer; -#define VMXNET3_SHM_DISCLAIMER "IReallyWantThisModeIAmAVMSafePartner" +#define VMXNET3_SHM_DISCLAIMER "IReallyWantThisModeIAmAVMwarePartner" /* *----------------------------------------------------------------------------