From: Luiz Capitulino <lcapitulino@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: Michal Privoznik <mprivozn@redhat.com>,
Wenchao Xia <xiawenc@linux.vnet.ibm.com>,
famz@redhat.com, qemu-devel@nongnu.org, pbonzini@redhat.com
Subject: Re: [Qemu-devel] [PATCH] Makefile: Install qmp-events.txt
Date: Wed, 25 Jun 2014 15:50:48 -0400 [thread overview]
Message-ID: <20140625155048.252833c1@redhat.com> (raw)
In-Reply-To: <53AAD523.3000604@redhat.com>
On Wed, 25 Jun 2014 07:56:51 -0600
Eric Blake <eblake@redhat.com> wrote:
> On 06/25/2014 03:30 AM, Michal Privoznik wrote:
> > Since fe069d9d5946 the qmp-events.txt does not exist anymore. This is
> > unhappy as users still may want to know what events they can await
> > from qemu.
>
> The .json files are a better contract of what is supported, anyways.
>
> >
> > Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
> > ---
> > Makefile | 6 +++++-
> > 1 file changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/Makefile b/Makefile
> > index 145adb6..b93aa38 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -77,7 +77,7 @@ LIBS+=-lz $(LIBS_TOOLS)
> > HELPERS-$(CONFIG_LINUX) = qemu-bridge-helper$(EXESUF)
> >
> > ifdef BUILD_DOCS
> > -DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 qmp-commands.txt
> > +DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 qmp-commands.txt qmp-events.txt
>
> Then again, qmp-commands.txt is generated from qmp-commands.hx, which
> duplicates information already in qapi-schema.json (and friends, now).
> Would it be better to just install the .json files? Is it time to
> finally bite the bullet and figure out how to get rid of duplication by
> dropping qmp-commands.hx, and instead listing example usage directly in
> the qapi-schema.json file? I'm not sure if we have a good plan in place
> for user-facing documentation, even if the move to events-as-QAPI was
> desirable.
My original plan was to generate qmp-commands.txt & qmp-evets.txt from
the schema file(s). I'm not sure if the .json files are consumable to
non-qemu/libvirt developers. If you think they are then I'd be fine with
installing them.
Wrt the examples, my only concern about having them in the schema is
that the examples are in QMP format but in the past we were also planning
on having C support via libqmp. If what we have today is what matters,
then we can just move the examples to the schema files.
>
> > ifdef CONFIG_VIRTFS
> > DOCS+=fsdev/virtfs-proxy-helper.1
> > endif
> > @@ -353,6 +353,7 @@ install-doc: $(DOCS)
> > $(INSTALL_DIR) "$(DESTDIR)$(qemu_docdir)"
> > $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(qemu_docdir)"
> > $(INSTALL_DATA) qmp-commands.txt "$(DESTDIR)$(qemu_docdir)"
> > + $(INSTALL_DATA) qmp-events.txt "$(DESTDIR)$(qemu_docdir)"
> > ifdef CONFIG_POSIX
> > $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
> > $(INSTALL_DATA) qemu.1 "$(DESTDIR)$(mandir)/man1"
> > @@ -455,6 +456,9 @@ qemu-monitor.texi: $(SRC_PATH)/hmp-commands.hx
> > qmp-commands.txt: $(SRC_PATH)/qmp-commands.hx
> > $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -q < $< > $@," GEN $@")
> >
> > +qmp-events.txt: $(SRC_PATH)/qapi-event.json
> > + $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $@")
> > +
> > qemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx
> > $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -t < $< > $@," GEN $@")
> >
> >
>
next prev parent reply other threads:[~2014-06-25 19:51 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-25 9:30 [Qemu-devel] [PATCH] Makefile: Install qmp-events.txt Michal Privoznik
2014-06-25 9:34 ` Paolo Bonzini
2014-06-25 9:37 ` Michal Privoznik
2014-06-25 13:56 ` Eric Blake
2014-06-25 17:21 ` Markus Armbruster
2014-06-25 19:50 ` Luiz Capitulino [this message]
2014-06-25 20:13 ` Eric Blake
2014-06-26 12:46 ` Luiz Capitulino
2014-06-26 13:01 ` Paolo Bonzini
2014-06-26 13:11 ` Eric Blake
2014-06-26 13:14 ` Paolo Bonzini
2014-06-26 13:17 ` Luiz Capitulino
2014-06-26 13:25 ` Paolo Bonzini
2014-06-26 13:43 ` [Qemu-devel] [PATCH] qmp: add qmp-events.txt back Luiz Capitulino
2014-06-26 13:56 ` Paolo Bonzini
2014-06-26 16:31 ` Eric Blake
2014-06-26 16:25 ` [Qemu-devel] [PATCH] Makefile: Install qmp-events.txt Eric Blake
2014-06-26 16:27 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140625155048.252833c1@redhat.com \
--to=lcapitulino@redhat.com \
--cc=eblake@redhat.com \
--cc=famz@redhat.com \
--cc=mprivozn@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=xiawenc@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).