OSDN Git Service

dataplane: enable virtio-blk x-data-plane=on live migration
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 29 Jul 2013 13:01:59 +0000 (15:01 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 29 Jul 2013 15:19:07 +0000 (17:19 +0200)
commit84db52d059f3296abf7783968645c4a96d21b099
tree6ef45365e259c854c55950486d3d5731ecc79340
parent02edd2e7665bceb307bedd8afe625c0f7e8d7cfa
dataplane: enable virtio-blk x-data-plane=on live migration

Although the dataplane thread does not cooperate with dirty memory
logging yet it's fairly easy to temporarily disable dataplane during
live migration.  This way virtio-blk can live migrate when
x-data-plane=on.

The dataplane thread will restart after migration is cancelled or if the
guest resuming virtio-blk operation after migration completes.

Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/dataplane/virtio-blk.c
hw/block/virtio-blk.c
include/hw/virtio/virtio-blk.h