[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree |
Date: |
Wed, 23 Sep 2009 11:08:22 +0100 |
User-agent: |
Mutt/1.4.1i |
On Mon, Sep 21, 2009 at 10:44:30PM -0300, Luiz Capitulino wrote:
>
> Hi there,
>
> 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.
>
> More importantly, some protocol design decisions can affect handlers
> signatures,
> 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.
>
> So, I have implemented a rudimentary version of the QEMU Monitor Protocol
> (QMP)
> it has a command-line switch to enable the protocol.
>
> You will find it at:
>
> http://repo.or.cz/w/qemu/qmp-unstable.git
>
> 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, although
> 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
âmonitor_json_emitterâ:
/home/berrange/src/external/qmp-unstable/monitor.c:277: error: format â%liâ
expects type âlong intâ, but argument 3 has type âint64_tâ
/home/berrange/src/external/qmp-unstable/monitor.c: In function
âmonitor_print_qobjectâ:
/home/berrange/src/external/qmp-unstable/monitor.c:398: error: format â%luâ
expects type âlong unsigned intâ, but argument 3 has type âint64_tâ
make[1]: *** [monitor.o] Error 1
Having -Werror by default really is painful :-(
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
- Re: [Qemu-devel] Re: ANN: QEMU Monitor Protocol git tree, (continued)
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Markus Armbruster, 2009/09/23
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Luiz Capitulino, 2009/09/23
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Jamie Lokier, 2009/09/23
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Anthony Liguori, 2009/09/23
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Daniel P. Berrange, 2009/09/23
- Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Luiz Capitulino, 2009/09/23
Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Luiz Capitulino, 2009/09/23
Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree,
Daniel P. Berrange <=
Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Markus Armbruster, 2009/09/23
Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Markus Armbruster, 2009/09/24
Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree, Luiz Capitulino, 2009/09/24