Received: from eggs.gnu.org ([208.118.235.92]:52083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ6St-0001N4-Ez for qemu-devel@nongnu.org; Fri, 22 Mar 2013 14:13:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJ6Sk-0004ci-CN for qemu-devel@nongnu.org; Fri, 22 Mar 2013 14:13:19 -0400 Received: from 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:1d0::1]:33095 helo=mnementh.archaic.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ6Sk-0004bb-3E for qemu-devel@nongnu.org; Fri, 22 Mar 2013 14:13:10 -0400 From: Peter Maydell Date: Fri, 22 Mar 2013 18:02:52 +0000 Message-Id: <1363975375-3166-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v3 0/3] arm_gic: convert to vmstate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mitsyanko , Gerd Hoffmann , =?UTF-8?q?Andreas=20F=C3=A4rber?= , patches@linaro.org Convert the arm_gic save/load support from hand-coded save/load functions to use VMState. This seems like a good thing to do before we get to the point with KVM/ARM that we need to start supporting between-version migration... Changes v2->v3: * implement 2D array support in vmstate.h so we don't need to abuse VMSTATE_BUFFER_UNSAFE in a way that probably won't work for 16 bit values when source and destination have different endianness Changes v1->v2: * fix true/false mixup that stopped armv7m from booting Peter Maydell (3): vmstate: Add support for two dimensional arrays arm_gic: Fix sizes of state fields in preparation for vmstate support hw/arm_gic_common: Use vmstate struct rather than save/load functions hw/arm_gic_common.c | 112 +++++++++++++++++-------------------------- hw/arm_gic_internal.h | 42 ++++++++-------- hw/armv7m_nvic.c | 4 +- include/migration/vmstate.h | 27 +++++++++++ 4 files changed, 93 insertions(+), 92 deletions(-) -- 1.7.9.5