]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes in shared code that don't affect open-vm-tools functionality.
authorVMware, Inc <>
Wed, 20 Jan 2010 21:47:39 +0000 (13:47 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Wed, 20 Jan 2010 21:47:39 +0000 (13:47 -0800)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/modules/linux/pvscsi/scsi_defs.h

index 1f35bfa649372cd2622a955dfa5b341ec4e648a1..eebb6b08b738f63cbe33d3877c001ac3d8253e69 100644 (file)
@@ -1896,6 +1896,7 @@ struct {
 #define SCSI_FEAT_CODE_REMOVABLEMEDIUM 0x3
 #define SCSI_FEAT_CODE_RANDOMREADABLE  0x10
 #define SCSI_FEAT_CODE_DVDREAD         0x1F
+#define SCSI_FEAT_CODE_VMWARE_LAST     0xFF80
    uint16 code;
    uint8  featureCurrent:1,
           persistent:1,
@@ -2002,6 +2003,23 @@ struct {
 SCSIRandomReadableFeatureDescriptor;
 
 
+/*
+ * VMware Last Descriptor format. This is a VMware-specific feature descriptor
+ * designed to work around a Windows XP SP3 bug where the last eight bytes of
+ * a GET CONFIGURATION response are ignored by the guest driver. It does so by,
+ * well, occupying the last eight bytes of our emulation's response to a
+ * GET CONFIGURATION request.
+ */
+typedef
+#include "vmware_pack_begin.h"
+struct {
+   SCSIFeatureDescriptor feature;
+   uint8 garbage[4];
+}
+#include "vmware_pack_end.h"
+SCSIVMwareLastFeatureDescriptor;
+
+
 /*
  * Host and device status definitions.
  *