]> git.proxmox.com Git - qemu.git/commit
target-ppc: Convert ppc cpu savevm to VMStateDescription
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 18 Jul 2013 19:32:54 +0000 (14:32 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 29 Jul 2013 15:37:04 +0000 (10:37 -0500)
commita90db1584a00dc1d1439dc7729d99674b666b85e
tree6141d78c5b7ed1f21a98ccad141ecf083d6e3218
parentfdc43322c978d78e79e692872dcec7b4f6a447f1
target-ppc: Convert ppc cpu savevm to VMStateDescription

The savevm code for the powerpc cpu emulation is currently based around
the old register_savevm() rather than register_vmstate() method.  It's also
rather broken, missing some important state on some CPU models.

This patch completely rewrites the savevm for target-ppc, using the new
VMStateDescription approach.  Exactly what needs to be saved in what
configurations has been more carefully examined, too.  This introduces a
new version (5) of the cpu save format.  The old load function is retained
to support version 4 images.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Message-id: 1374175984-8930-2-git-send-email-aliguori@us.ibm.com
[aik: ppc cpu savevm convertion fixed to use PowerPCCPU instead of CPUPPCState]
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-ppc/cpu-qom.h
target-ppc/cpu.h
target-ppc/machine.c
target-ppc/translate_init.c