summaryrefslogtreecommitdiffstats
path: root/linux-headers/linux
diff options
context:
space:
mode:
authorJason Wang2015-11-06 09:02:44 +0100
committerMichael S. Tsirkin2015-11-12 14:49:32 +0100
commita6df8adf3edbb3062f087e425564df35077e8410 (patch)
tree0191739bbefc5a714016f9a9aadcf48a0ad67320 /linux-headers/linux
parentMerge remote-tracking branch 'remotes/mdroth/tags/qga-pull-2015-11-11-tag' in... (diff)
downloadqemu-a6df8adf3edbb3062f087e425564df35077e8410.tar.gz
qemu-a6df8adf3edbb3062f087e425564df35077e8410.tar.xz
qemu-a6df8adf3edbb3062f087e425564df35077e8410.zip
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>
Diffstat (limited to 'linux-headers/linux')
0 files changed, 0 insertions, 0 deletions