diff options
author | Fam Zheng <famz@redhat.com> | 2014-03-06 16:26:02 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-03-14 10:06:55 +0100 |
commit | 2e323f03bfa323636552b386c982412944ff86ae (patch) | |
tree | 15b053442320d9bdab701b8616f238b891c49f25 /include/migration | |
parent | 22956a3755749b9cf6375ad024d58c1d277100bf (diff) | |
download | qemu-2e323f03bfa323636552b386c982412944ff86ae.tar.gz qemu-2e323f03bfa323636552b386c982412944ff86ae.tar.bz2 qemu-2e323f03bfa323636552b386c982412944ff86ae.zip |
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/migration')
-rw-r--r-- | include/migration/vmstate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index ded8e2302f..e7e170561d 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -650,6 +650,9 @@ extern const VMStateInfo vmstate_info_bitmap; #define VMSTATE_UINT8_ARRAY(_f, _s, _n) \ VMSTATE_UINT8_ARRAY_V(_f, _s, _n, 0) +#define VMSTATE_UINT8_SUB_ARRAY(_f, _s, _start, _num) \ + VMSTATE_SUB_ARRAY(_f, _s, _start, _num, 0, vmstate_info_uint8, uint8_t) + #define VMSTATE_UINT8_2DARRAY(_f, _s, _n1, _n2) \ VMSTATE_UINT8_2DARRAY_V(_f, _s, _n1, _n2, 0) |