]> git.proxmox.com Git - qemu.git/commit
New VMstate save/load infrastructure
authorJuan Quintela <quintela@redhat.com>
Thu, 20 Aug 2009 17:42:25 +0000 (19:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 28 Aug 2009 01:30:21 +0000 (20:30 -0500)
commit9ed7d6ae0fe7abb444c65caaadb5ef307df82c60
treeaa930f11967a61c95619a3fd2cb6ba5356e5dd16
parent4082be4df4cf1ad53e15a1f0876cd2f04d6d2593
New VMstate save/load infrastructure

This patch introduces VMState infrastructure, to convert the save/load
functions of devices to a table approach.  This new approach has the
following advantages:
- it is type-safe
- you can't have load/save functions out of sync
- will allows us to have new interesting commands, like dump <device>, that
  shows all its internal state.
- Just now, the only added type is arrays, but we can add structures.
- Uses old load_state() function for loading old state.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/hw.h
savevm.c