From: Cao jin Date: Tue, 26 Jul 2016 09:03:23 +0000 (+0800) Subject: mptsas: Fix a migration compatible issue X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f077f889121c89612eaf0f21e94b97aa110a6910;p=qemu.git mptsas: Fix a migration compatible issue My previous commit 2e2aa316 removed internal flag msi_in_use, which exists in vmstate, use VMSTATE_UNUSED for migration compatibility. Reported-by: Amit Shah Suggested-by: Amit Shah Cc: Markus Armbruster Cc: Marcel Apfelbaum Cc: Paolo Bonzini Cc: Michael S. Tsirkin Cc: Amit Shah Signed-off-by: Cao jin Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Amit Shah --- diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c index 1ae32fb7d3..bebe5130fe 100644 --- a/hw/scsi/mptsas.c +++ b/hw/scsi/mptsas.c @@ -1370,7 +1370,7 @@ static const VMStateDescription vmstate_mptsas = { .post_load = mptsas_post_load, .fields = (VMStateField[]) { VMSTATE_PCI_DEVICE(dev, MPTSASState), - + VMSTATE_UNUSED(sizeof(bool)), /* Was msi_in_use */ VMSTATE_UINT32(state, MPTSASState), VMSTATE_UINT8(who_init, MPTSASState), VMSTATE_UINT8(doorbell_state, MPTSASState),