summaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2014-03-06 16:26:02 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2014-03-14 10:06:55 +0100
commit2e323f03bfa323636552b386c982412944ff86ae (patch)
tree15b053442320d9bdab701b8616f238b891c49f25 /include/hw
parent22956a3755749b9cf6375ad024d58c1d277100bf (diff)
downloadqemu-2e323f03bfa323636552b386c982412944ff86ae.tar.gz
scsi: Fix migration of scsi sense data
c5f52875 changed the size of sense array in vmstate_scsi_device by mistake. This patch restores the old size, and add a subsection for the remaining part of the buffer size. So that migration is not broken. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/scsi/scsi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/scsi/scsi.h b/include/hw/scsi/scsi.h
index e5fc39d504..1adb54906e 100644
--- a/include/hw/scsi/scsi.h
+++ b/include/hw/scsi/scsi.h
@@ -31,6 +31,7 @@ typedef struct SCSISense {
uint8_t ascq;
} SCSISense;
+#define SCSI_SENSE_BUF_SIZE_OLD 96
#define SCSI_SENSE_BUF_SIZE 252
struct SCSICommand {