From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXUrp-0002xZ-Sa for qemu-devel@nongnu.org; Fri, 17 Jun 2011 04:57:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXUrn-0007BU-LT for qemu-devel@nongnu.org; Fri, 17 Jun 2011 04:57:29 -0400 Received: from mail-gy0-f173.google.com ([209.85.160.173]:50819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXUrn-0007BN-1Q for qemu-devel@nongnu.org; Fri, 17 Jun 2011 04:57:27 -0400 Received: by gyg4 with SMTP id 4so994838gyg.4 for ; Fri, 17 Jun 2011 01:57:26 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4DFB1205.9040408@redhat.com> References: <1308075511-4745-1-git-send-email-stefanha@linux.vnet.ibm.com> <4DF9F899.5050301@redhat.com> <4DF9FBE4.9080300@redhat.com> <4DFA004E.9010001@redhat.com> <20110616145243.GB12173@amt.cnet> <4DFB1205.9040408@redhat.com> Date: Fri, 17 Jun 2011 09:57:25 +0100 Message-ID: From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] Image streaming and live block copy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Anthony Liguori , Dor Laor , Stefan Hajnoczi , jes sorensen , Marcelo Tosatti , qemu-devel@nongnu.org, Avi Kivity , Adam Litke On Fri, Jun 17, 2011 at 9:36 AM, Kevin Wolf wrote: > By the way, we'll get problems with the colon syntax. Without -blockdev > we'll have to invent a new syntax, maybe with brackets: > > blkstream:[nbd:localhost]:out.qcow2 Embedding block driver options in filenames is getting worse as time goes on. I recently tried to refactor and eliminate QEMUOptionParameter so that we only use QemuOpts instead of two different option APIs. Part of that involves keeping separate per-block driver (i.e. -blockdev) options lists, which would allow us to pass proper options to block drivers instead of embedding them in the filename. I got stuck because today the protocol and format QEMUOptionParameters get concatenated in some cases. Concatenation is not really supported by QemuOpts :). Anyway, here's the current state if anyone is interested: http://repo.or.cz/w/qemu/stefanha.git/commitdiff/b49babb2c8b476a36357cfd7276ca45a11039ca5 Stefan