Jason Wang a6df8adf3e virtio-pci: fix 1.0 virtqueue migration
We don't migrate the followings fields for virtio-pci:

uint32_t dfselect;
uint32_t gfselect;
uint32_t guest_features[2];
struct {
    uint16_t num;
    bool enabled;
    uint32_t desc[2];
    uint32_t avail[2];
    uint32_t used[2];
} vqs[VIRTIO_QUEUE_MAX];

This will confuse driver if migrating during initialization. Solves
this issue by:

- introduce transport specific callbacks to load and store extra
  virtqueue states.
- add a new subsection for virtio to migrate transport specific modern
  device state.
- implement pci specific callbacks.
- add a new property for virtio-pci for whether or not to migrate
  extra state.
- compat the migration for 2.4 and elder machine types

Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2015-11-12 15:49:32 +02:00
..
2013-06-07 14:55:33 +02:00
2015-10-02 16:22:02 -03:00
2014-02-03 14:04:00 +00:00
2015-09-14 14:39:49 +01:00
2015-09-07 10:39:30 +01:00
2015-09-09 15:34:53 +02:00
2013-04-08 18:13:10 +02:00
2013-04-08 18:13:10 +02:00
2015-06-11 10:13:30 +01:00
2015-09-07 10:39:30 +01:00
2015-10-19 15:26:53 +02:00
2015-10-29 11:17:53 +02:00
2015-09-07 10:39:28 +01:00
2015-09-25 14:56:05 +02:00
2013-04-08 18:13:10 +02:00
2015-09-10 18:25:52 +01:00
2015-09-25 12:04:43 +02:00
2013-04-08 18:13:10 +02:00
2015-01-15 10:44:13 +03:00
2014-10-23 16:41:25 +02:00
2014-10-24 12:19:11 +01:00
2015-11-11 17:21:39 +01:00
2015-07-13 14:42:24 +03:00
2013-04-08 18:13:10 +02:00
2014-05-28 17:36:21 +02:00
2013-05-01 20:55:21 +04:00
2015-07-06 12:15:14 -06:00
2015-04-30 16:05:48 +03:00