From: "Dr. David Alan Gilbert" <dgilb...@redhat.com> Hi, This contains part of a series I previously posted as an RFC; it contains just the code to add the vmsd hook to virtio and the simple case for balloon. The networking code will have to wait until my VMSTATE_WITH_TMP macros go in and there's some other stuff I need to figure out for the other devices. However, it seems right to get the hook in for anyone else who wants to do stuff.
Since the RFC I've added an assert to ensure that you can only have either the new vmsd hook or the old ->load/save methods. Dave Dr. David Alan Gilbert (2): virtio/migration: Add VMStateDescription to VirtioDeviceClass virtio/migration: Migrate balloon to VMState hw/virtio/virtio-balloon.c | 31 +++++++++++++++---------------- hw/virtio/virtio.c | 14 ++++++++++++++ include/hw/virtio/virtio.h | 4 ++++ 3 files changed, 33 insertions(+), 16 deletions(-) -- 2.9.3