]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc/spapr_caps: Add macro to generate spapr_caps migration vmstate
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Fri, 19 Jan 2018 05:00:00 +0000 (16:00 +1100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 6 Feb 2018 01:07:37 +0000 (19:07 -0600)
commit43a29f00257e8fce59bf3838b818817655f1d364
tree095822cb4baaf65f4b905ba9436ab47fc4cc2df8
parentd72e0a69eadc93c4f74b16c88ca0e507edaf17a4
target/ppc/spapr_caps: Add macro to generate spapr_caps migration vmstate

The vmstate description and the contained needed function for migration
of spapr_caps is the same for each cap, with the name of the cap
substituted. As such introduce a macro to allow for easier generation of
these.

Convert the three existing spapr_caps (htm, vsx, and dfp) to use this
macro.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
(cherry picked from commit 1f63ebaa91f73f469c8f107dbd266cabdbea3a40)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ppc/spapr_caps.c