From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LN3wP-0008IK-1I for qemu-devel@nongnu.org; Wed, 14 Jan 2009 06:29:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LN3wM-0008Fc-Vg for qemu-devel@nongnu.org; Wed, 14 Jan 2009 06:29:44 -0500 Received: from [199.232.76.173] (port=40119 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LN3wM-0008FJ-KR for qemu-devel@nongnu.org; Wed, 14 Jan 2009 06:29:42 -0500 Received: from mx2.redhat.com ([66.187.237.31]:59650) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LN3wL-00009h-Bk for qemu-devel@nongnu.org; Wed, 14 Jan 2009 06:29:42 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n0EBTepi016013 for ; Wed, 14 Jan 2009 06:29:40 -0500 Date: Wed, 14 Jan 2009 11:29:38 +0000 From: "Richard W.M. Jones" Message-ID: <20090114112938.GA11242@amd.home.annexia.org> References: <20090114111005.GB31839@amit-x200.pnq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090114111005.GB31839@amit-x200.pnq.redhat.com> Subject: [Qemu-devel] Re: Machine-readable or parseable qemu output Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah Cc: chrisw@redhat.com, dlaor@redhat.com, qemu-devel@nongnu.org, avi@redhat.com On Wed, Jan 14, 2009 at 04:40:05PM +0530, Amit Shah wrote: > - Have a libqemumonitor.so that will abstract out output from qemu and > provide a machine-readble output for the consumer Why do we need a C API at all? IMHO it'd be better just to make the existing qemu monitor output more machine-friendly, meaning consistent delimiters so that programs can reliably resynchronize with the output, and consistent guarantees on error messages. [Replying to Dan's point about qemu >= 0.8] We could differentiate based on the qemu prompt. For "machine- friendly" releases of qemu, change the prompt slightly so we know. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/