From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzO91-0000Ki-2k for qemu-devel@nongnu.org; Wed, 17 Jul 2013 05:35:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzO8y-0005Kg-9o for qemu-devel@nongnu.org; Wed, 17 Jul 2013 05:35:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzO8y-0005K9-34 for qemu-devel@nongnu.org; Wed, 17 Jul 2013 05:35:32 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r6H9ZUKJ004344 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 17 Jul 2013 05:35:30 -0400 From: Stefan Hajnoczi Date: Wed, 17 Jul 2013 17:35:17 +0800 Message-Id: <1374053720-28420-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] dataplane: virtio-blk live migration with x-data-plane=on List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Paolo Bonzini , Stefan Hajnoczi , Juan Quintela These patches add live migration support to -device virtio-blk-pci,x-data-plane=on. Patch 1 has already been posted and merged into the block tree. I have included it for convenience. Patches 2 & 3 implement a switch from dataplane mode back to regular virtio-blk mode when migration starts. This way live migration works. 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): dataplane: sync virtio.c and vring.c virtqueue state migration: notify migration state before starting thread dataplane: enable virtio-blk x-data-plane=on live migration hw/block/dataplane/virtio-blk.c | 19 +++++++++---------- hw/block/virtio-blk.c | 32 ++++++++++++++++++++++++++++++++ hw/virtio/dataplane/vring.c | 8 +++++--- include/hw/virtio/dataplane/vring.h | 2 +- include/hw/virtio/virtio-blk.h | 1 + migration.c | 4 +++- 6 files changed, 51 insertions(+), 15 deletions(-) -- 1.8.1.4