]> git.ipfire.org Git - thirdparty/qemu.git/commit
ipmi: Use proper struct reference for KCS vmstate
authorCorey Minyard <cminyard@mvista.com>
Wed, 25 Apr 2018 15:27:31 +0000 (10:27 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Jun 2018 13:13:46 +0000 (15:13 +0200)
commit7e57b82ec3f1a87f623e4baef9ef1ba2b157935c
tree627c59fb4e60c934d82ccf0fedfd20e70194b6d8
parent2dc6660bd8db0bfab0be91135cb0f6d83940d190
ipmi: Use proper struct reference for KCS vmstate

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

There were also some issues in the state transfer.  The inlen field
was not being transferred, so if a transaction was in process during
the transfer it would be messed up.  And the use_irq field was
transferred, but that should come from the configuration.

To fix this, the new VMS_VSTRUCT macros are used so the exact
version of the structure can be specified, depending on what
version was being received.  So an upgrade should work for KCS.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <1524670052-28373-3-git-send-email-minyard@acm.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/ipmi/isa_ipmi_kcs.c