qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 0/3] dataplane: virtio-blk live migration with x-


From: Stefan Hajnoczi
Subject: [Qemu-devel] [PATCH v2 0/3] dataplane: virtio-blk live migration with x-data-plane=on
Date: Tue, 23 Jul 2013 15:26:41 +0200

v2:
 * Rebase onto qemu.git/master
 * Split bdrv_in_use() into separate patch, it's a bug fix [bonzini]

These patches add live migration support to -device 
virtio-blk-pci,x-data-plane=on.

Patches 1 & 2 implement a switch from dataplane mode back to regular virtio-blk
mode when migration starts.  This way live migration works.

Patch 3 is a bug fix: we need to check the device is not in use when creating
the dataplane thread.  It applies to live migration but it turns out the same
problem can be hit without migration too, see the commit description.

If migration is cancelled or the guest accesses the virtio-blk device after
completion, dataplane starts again.

Since this approach is so small, it's more palatable for QEMU 1.6 than trying
to make vring.c log dirty memory.  It makes dataplane usable in situations
where live migration is a requirement.

Stefan Hajnoczi (3):
  migration: notify migration state before starting thread
  dataplane: enable virtio-blk x-data-plane=on live migration
  dataplane: refuse to start if device is already in use

 hw/block/dataplane/virtio-blk.c | 17 ++++++++---------
 hw/block/virtio-blk.c           | 32 ++++++++++++++++++++++++++++++++
 include/hw/virtio/virtio-blk.h  |  1 +
 migration.c                     |  4 +++-
 4 files changed, 44 insertions(+), 10 deletions(-)

-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]