From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqOm2-0005Mj-0o for qemu-devel@nongnu.org; Wed, 23 Sep 2009 06:08:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqOlw-0005Ly-4a for qemu-devel@nongnu.org; Wed, 23 Sep 2009 06:08:32 -0400 Received: from [199.232.76.173] (port=38137 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqOlv-0005Ls-Rh for qemu-devel@nongnu.org; Wed, 23 Sep 2009 06:08:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43504) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqOlv-00074z-Bd for qemu-devel@nongnu.org; Wed, 23 Sep 2009 06:08:27 -0400 Date: Wed, 23 Sep 2009 11:08:22 +0100 From: "Daniel P. Berrange" Subject: Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree Message-ID: <20090923100822.GF29269@redhat.com> References: <20090921224430.610da97b@doriath> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20090921224430.610da97b@doriath> Content-Transfer-Encoding: quoted-printable Reply-To: "Daniel P. Berrange" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, avi@redhat.com On Mon, Sep 21, 2009 at 10:44:30PM -0300, Luiz Capitulino wrote: >=20 > Hi there, >=20 > While I was converting command handlers to the QObject style I realized= that > it would be very interesting to have the protocol working up front, so = that > converted handlers could be tested to assure that their data types have= been > chosen correctly. >=20 > More importantly, some protocol design decisions can affect handlers si= gnatures, > so having at least an idea of how the protocol will look like will help= us to > stay on the right track during mass conversion. >=20 > So, I have implemented a rudimentary version of the QEMU Monitor Protoc= ol (QMP) > it has a command-line switch to enable the protocol. >=20 > You will find it at: >=20 > http://repo.or.cz/w/qemu/qmp-unstable.git >=20 > The QMP directory of that tree has some documents plus a Python script = which > communicates with QEMU by using the protocol and emulates a shell, alth= ough > only few commands are working.. It doesn't compile on i386 $ make CC i386-softmmu/monitor.o cc1: warnings being treated as errors /home/berrange/src/external/qmp-unstable/monitor.c: In function =E2=80=98= monitor_json_emitter=E2=80=99: /home/berrange/src/external/qmp-unstable/monitor.c:277: error: format =E2= =80=98%li=E2=80=99 expects type =E2=80=98long int=E2=80=99, but argument = 3 has type =E2=80=98int64_t=E2=80=99 /home/berrange/src/external/qmp-unstable/monitor.c: In function =E2=80=98= monitor_print_qobject=E2=80=99: /home/berrange/src/external/qmp-unstable/monitor.c:398: error: format =E2= =80=98%lu=E2=80=99 expects type =E2=80=98long unsigned int=E2=80=99, but = argument 3 has type =E2=80=98int64_t=E2=80=99 make[1]: *** [monitor.o] Error 1 Having -Werror by default really is painful :-( Daniel --=20 |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange= / :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.or= g :| |: http://autobuild.org -o- http://search.cpan.org/~danberr= / :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 950= 5 :|