diff options
author | QingFeng Hao <haoqf@linux.vnet.ibm.com> | 2017-03-10 05:44:02 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2017-03-16 08:59:52 +0100 |
commit | e1e686c1fad6f4c4f7c98565c130526f64e7f02c (patch) | |
tree | 71574c034a6e4fd5d958cea02894c3ed4bb40f3c /migration/block.c | |
parent | 1cf6aa74b32f18f9b5faf525a93b0c1f609acb1f (diff) |
vmstate: fix failed iotests case 68 and 91
This problem affects s390x only if we are running without KVM.
Basically, S390CPU.irqstate is unused if we do not use KVM,
and thus no buffer is allocated.
This causes size=0, first_elem=NULL and n_elems=1 in
vmstate_load_state and vmstate_save_state. And the assert fails.
With this fix we can go back to the old behavior and support
VMS_VBUFFER with size 0 and nullptr.
Signed-off-by: QingFeng Hao <haoqf@linux.vnet.ibm.com>
Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/block.c')
0 files changed, 0 insertions, 0 deletions