qemu-patch-raspberry4/hw/virtio
Alexander Graf 8118f0950f migration: Append JSON description of migration stream
One of the annoyances of the current migration format is the fact that
it's not self-describing. In fact, it's not properly describing at all.
Some code randomly scattered throughout QEMU elaborates roughly how to
read and write a stream of bytes.

We discussed an idea during KVM Forum 2013 to add a JSON description of
the migration protocol itself to the migration stream. This patch
adds a section after the VM_END migration end marker that contains
description data on what the device sections of the stream are composed of.

This approach is backwards compatible with any QEMU version reading the
stream, because QEMU just stops reading after the VM_END marker and ignores
any data following it.

With an additional external program this allows us to decipher the
contents of any migration stream and hopefully make migration bugs easier
to track down.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2015-02-05 17:16:14 +01:00
..
dataplane virtio: fix feature bit checks 2015-01-27 14:46:17 +02:00
Makefile.objs block: Always compile virtio-blk dataplane 2014-09-22 11:39:51 +01:00
vhost-backend.c virtio: Move extern declaration to header file 2014-08-09 00:06:32 +04:00
vhost-user.c vhost-user: fix mmap offset calculation 2014-11-03 18:32:48 +02:00
vhost.c vhost: Fix vhostfd leak in error branch 2014-12-01 12:29:35 +00:00
virtio-balloon.c virtio-balloon: Tweak recent fix for integer overflow 2014-10-23 09:01:29 -04:00
virtio-bus.c virtio-bus: avoid breaking build when open DEBUG switch 2014-12-10 11:18:52 +03:00
virtio-mmio.c virtio-mmio: Drop useless bus->allow_hotplug = 0 2014-10-15 05:03:13 +02:00
virtio-pci.c virtio-pci: fix migration for pci bus master 2014-11-02 12:03:03 +02:00
virtio-pci.h virtio-pci: fix migration for pci bus master 2014-11-02 12:03:03 +02:00
virtio-rng.c virtio-rng: fix check for period_ms validity 2015-01-05 14:02:47 +05:30
virtio.c migration: Append JSON description of migration stream 2015-02-05 17:16:14 +01:00