OSDN Git Service

ipmi: Use proper struct reference for BT vmstate
authorCorey Minyard <cminyard@mvista.com>
Mon, 20 Aug 2018 20:57:24 +0000 (15:57 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Aug 2018 16:46:25 +0000 (18:46 +0200)
commitefbb649da0d4b13a036211fbc79d514b7c2efd43
tree6ba5ba4f39832a20eb3396ba4b21a740f4ee51c2
parentf287fdd94e545d23d9fbd55fb58e346160e2d19f
ipmi: Use proper struct reference for BT vmstate

The vmstate for isa_ipmi_bt was referencing into the bt structure,
instead create a bt structure separate and use that.

The version 1 of the BT transfer was fairly broken, if a migration
occured during an IPMI operation, it is likely the migration would
be corrupted because I misunderstood the VMSTATE_VBUFFER_UINT32()
handling, I thought it handled transferring the length field,
too.  So I just remove support for that.  I doubt anyone is using
it at this point.

This also removes the transfer of use_irq, since that should come
from configuration.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <1534798644-13587-1-git-send-email-minyard@acm.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/ipmi/isa_ipmi_bt.c