]> git.ipfire.org Git - thirdparty/qemu.git/commit
dataplane: sync virtio.c and vring.c virtqueue state
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 1 Jul 2013 11:29:17 +0000 (13:29 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 13 Aug 2013 15:03:19 +0000 (10:03 -0500)
commit6bf6fcd181efdcbbb136ce622e1b2e1cbc677b60
treee6f9f16dd4fa220c5d6666946df3c7b77d2fb53b
parentccf279824cf78faa3e33450f715f1d7792b46bd0
dataplane: sync virtio.c and vring.c virtqueue state

Load the virtio.c state into vring.c when we start dataplane mode and
vice versa when stopping dataplane mode.  This patch makes it possible
to start and stop dataplane any time while the guest is running.

This will eventually allow us to go back to QEMU main loop for
bdrv_drain_all() and live migration.  In the meantime, this patch makes
the dataplane lifecycle more robust but should make no visible
difference.  It may be useful in the virtio-net dataplane effort.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 9154b02c53bb6685797c973fcdbec51c4714777d)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/block/dataplane/virtio-blk.c
hw/virtio/dataplane/vring.c
include/hw/virtio/dataplane/vring.h