qemu-patch-raspberry4/include/hw/virtio
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
..
dataplane virtio dataplane: adapt dataplane for virtio Version 1 2015-10-12 11:16:45 +01:00
vhost-backend.h vhost user: add rarp sending after live migration for legacy guest 2015-10-22 14:34:49 +03:00
vhost-scsi.h vhost-scsi: include linux/vhost.h 2015-09-25 12:04:41 +02:00
vhost.h vhost: use a function for each call 2015-10-22 14:34:49 +03:00
virtio-9p.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-access.h virtio: avoid leading underscores for helpers 2015-09-10 11:06:05 +03:00
virtio-balloon.h balloon: add a feature bit to let Guest OS deflate balloon on oom 2015-06-23 17:08:21 +02:00
virtio-blk.h virtio-blk: correctly dirty guest memory 2015-04-08 10:39:18 +01:00
virtio-bus.h virtio-pci: fix 1.0 virtqueue migration 2015-11-12 15:49:32 +02:00
virtio-gpu.h virtio-gpu: add 3d mode and virgl rendering support. 2015-10-08 10:31:35 +02:00
virtio-input.h virtio-input: add input routing support 2015-07-03 12:21:11 +02:00
virtio-net.h virtio-net: remove useless codes 2015-08-13 14:08:29 +03:00
virtio-rng.h virtio-rng: trigger timer only when guest requests for entropy 2015-07-17 19:05:16 +05:30
virtio-scsi.h virtio-scsi: move qdev properties into virtio-scsi.c 2015-06-10 18:15:34 +02:00
virtio-serial.h virtio-serial-bus: move qdev properties into virtio-serial-bus.c 2015-06-10 18:15:34 +02:00
virtio.h virtio: drop virtqueue_map_sg 2015-10-29 11:05:24 +02:00