Received: from eggs.gnu.org ([2001:4830:134:3::10]:49784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fn3BD-00010F-Qx for qemu-devel@nongnu.org; Tue, 07 Aug 2018 10:41:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fn3BD-0007Wr-2Z for qemu-devel@nongnu.org; Tue, 07 Aug 2018 10:41:47 -0400 From: Juan Quintela In-Reply-To: <20180806123445.1459-5-peter.maydell@linaro.org> (Peter Maydell's message of "Mon, 6 Aug 2018 13:34:44 +0100") References: <20180806123445.1459-1-peter.maydell@linaro.org> <20180806123445.1459-5-peter.maydell@linaro.org> Reply-To: quintela@redhat.com Date: Tue, 07 Aug 2018 16:41:39 +0200 Message-ID: <871sba2q8s.fsf@trasno.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH for-3.0 v2 4/5] hw/intc/arm_gicv3_common: Move post_load hooks to top-level VMSD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, patches@linaro.org, "Dr . David Alan Gilbert" , Shannon Zhao , Shannon Zhao Peter Maydell wrote: > 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 Reviewed-by: Juan Quintela