virtio-blk: live migrate s->rq with multiqueue
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 21 Jun 2016 12:13:14 +0000 (13:13 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 28 Jun 2016 12:08:32 +0000 (13:08 +0100)
commit30d8bf6d171b02e90ac8c0b5cda868282c11d1d7
tree6fdca14eec7398ea84e97231aded4f316d5d2ff9
parentedaffd9f0baa32c9524ac8bc80370a7257aa322e
virtio-blk: live migrate s->rq with multiqueue

Add a field for the virtqueue index when migrating the s->rq request
list.  The new field is only needed when num_queues > 1.  Existing QEMUs
are unaffected by this change and therefore virtio-blk migration stays
compatible.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 1466511196-12612-6-git-send-email-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/virtio-blk.c