hw/intc/arm_gicv3_common: Move post_load hooks to top-level VMSD
commit326049cc8e6079d1ea49dc4b415b8112f0c995bd
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Aug 2018 12:34:44 +0000 (6 13:34 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Aug 2018 15:19:33 +0000 (6 16:19 +0100)
tree8306c9fd2971773f46f34d525d73fd2d1c61c5ef
parent7b69454a12510dc84b71c292214c364e499609e7
hw/intc/arm_gicv3_common: Move post_load hooks to top-level VMSD

Contrary to the the impression given in docs/devel/migration.rst,
the migration code does not run the pre_load hook for a
subsection unless the subsection appears on the wire, and so
this is not a place where you can set the default value for
state for the "subsection not present" case. Instead this needs
to be done in a pre_load hook for whatever is the parent VMSD
of the subsection.

We got this wrong in two of the subsection definitions in
the GICv3 migration structs; fix this.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-id: 20180806123445.1459-5-peter.maydell@linaro.org
hw/intc/arm_gicv3_common.c