From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzH7X-0002ZP-Sc for qemu-devel@nongnu.org; Tue, 16 Jul 2013 22:05:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzH7V-0006o7-Ia for qemu-devel@nongnu.org; Tue, 16 Jul 2013 22:05:35 -0400 Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:49366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzH7U-0006nU-Kc for qemu-devel@nongnu.org; Tue, 16 Jul 2013 22:05:33 -0400 Received: by mail-we0-f178.google.com with SMTP id u53so1254541wes.37 for ; Tue, 16 Jul 2013 19:05:32 -0700 (PDT) Date: Wed, 17 Jul 2013 10:05:23 +0800 From: Stefan Hajnoczi Message-ID: <20130717020523.GB26311@stefanha-thinkpad.redhat.com> References: <1372678157-4932-1-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1372678157-4932-1-git-send-email-stefanha@redhat.com> Subject: Re: [Qemu-devel] [PATCH] dataplane: sync virtio.c and vring.c virtqueue state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Anthony Liguori , Ping Fan Liu , qemu-devel@nongnu.org On Mon, Jul 01, 2013 at 01:29:17PM +0200, Stefan Hajnoczi wrote: > 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 > --- > hw/block/dataplane/virtio-blk.c | 2 +- > hw/virtio/dataplane/vring.c | 8 +++++--- > include/hw/virtio/dataplane/vring.h | 2 +- > 3 files changed, 7 insertions(+), 5 deletions(-) Applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan