From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV0IX-0006pK-Kc for qemu-devel@nongnu.org; Sun, 14 Feb 2016 12:17:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aV0IS-00033s-Kr for qemu-devel@nongnu.org; Sun, 14 Feb 2016 12:17:25 -0500 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:34151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV0IS-00033m-Dy for qemu-devel@nongnu.org; Sun, 14 Feb 2016 12:17:20 -0500 Received: by mail-wm0-x243.google.com with SMTP id b205so4557983wmb.1 for ; Sun, 14 Feb 2016 09:17:20 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Sun, 14 Feb 2016 18:17:03 +0100 Message-Id: <1455470231-5223-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/8] virtio: allow migration with dataplane List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, mst@redhat.com Currently, dataplane threads are shut down during migration because vring.c is not able to track dirty memory. However, all the relevant parts of QEMU have been made thread-safe now, so we can drop vring.c completely. With these patches, virtio-dataplane is now simply "virtio with ioeventfd in a different AioContext". Paolo Bonzini (8): block-migration: acquire AioContext as necessary vring: make vring_enable_notification return void virtio: add AioContext-specific function for host notifiers virtio: export vring_notify as virtio_should_notify virtio-blk: fix "disabled data plane" mode virtio-blk: do not use vring in dataplane virtio-scsi: do not use vring in dataplane vring: remove hw/block/dataplane/virtio-blk.c | 130 +----- hw/block/dataplane/virtio-blk.h | 1 + hw/block/virtio-blk.c | 51 +-- hw/scsi/virtio-scsi-dataplane.c | 196 ++------- hw/scsi/virtio-scsi.c | 52 +-- hw/virtio/Makefile.objs | 1 - hw/virtio/dataplane/Makefile.objs | 1 - hw/virtio/dataplane/vring.c | 549 -------------------------- hw/virtio/virtio.c | 20 +- include/hw/virtio/dataplane/vring-accessors.h | 75 ---- include/hw/virtio/dataplane/vring.h | 51 --- include/hw/virtio/virtio-blk.h | 4 +- include/hw/virtio/virtio-scsi.h | 21 +- include/hw/virtio/virtio.h | 3 + migration/block.c | 61 ++- trace-events | 3 - 16 files changed, 134 insertions(+), 1085 deletions(-) delete mode 100644 hw/virtio/dataplane/Makefile.objs delete mode 100644 hw/virtio/dataplane/vring.c delete mode 100644 include/hw/virtio/dataplane/vring-accessors.h delete mode 100644 include/hw/virtio/dataplane/vring.h -- 1.8.3.1