Received: from eggs.gnu.org ([140.186.70.92]:35206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyP0P-00025Y-0J for qemu-devel@nongnu.org; Tue, 30 Aug 2011 10:09:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QyP0N-0005NT-N1 for qemu-devel@nongnu.org; Tue, 30 Aug 2011 10:09:32 -0400 Received: from 68-115-116-17.dhcp.roch.mn.charter.com ([68.115.116.17]:48245 helo=aglitke) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyP0N-0005NN-GY for qemu-devel@nongnu.org; Tue, 30 Aug 2011 10:09:31 -0400 Date: Tue, 30 Aug 2011 08:32:23 -0500 From: Adam Litke Message-ID: <20110830133223.GA29130@aglitke.rchland.ibm.com> References: <1314104305-20523-1-git-send-email-stefanha@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 0/4] Image Streaming API List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Zhi Yong Wu , Anthony Liguori , Stefan Hajnoczi , qemu-devel@nongnu.org On Tue, Aug 30, 2011 at 10:28:09AM +0100, Stefan Hajnoczi wrote: > On Tue, Aug 30, 2011 at 4:19 AM, Zhi Yong Wu wro= te: > > On Tue, Aug 23, 2011 at 8:58 PM, Stefan Hajnoczi > > wrote: > >> These patches put in place the image streaming QMP/HMP commands and > >> documentation. =A0Image streaming itself is not implemented by this = patch series > >> but the HMP/QMP commands that libvirt uses are implemented to return > >> NotSupported. > >> > >> The Image Streaming API can be used to copy the contents of a backin= g file into > >> the image file while the guest is running. =A0The API is described o= n the wiki: > >> http://wiki.qemu.org/Features/LiveBlockMigration/ImageStreamingAPI > > > > If query-block-jobs returns one percent value, it will be more > > readable and convenient for users. >=20 > QMP is not a human interface. Although a percentage value is good for > progress bars, the absolute value is also interesting in terms of how > much work is being done. By providing an end value and a current > value the management tool can display either or both. I agree. In QMP, we should report the best, most granular information we= have and allow management tools to present it as they see fit. For example, a management tool may wish to present streaming progress as a spinner (rath= er than a progress bar). In that case you would want to see the numbers updated whenever progress has been made.