[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 10/14] docs: add master qapi texi files
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH v3 10/14] docs: add master qapi texi files |
Date: |
Mon, 7 Nov 2016 11:30:29 +0400 |
The qapi2texi scripts generates a file to be included in a texi
file. Add "QEMU QMP Reference Manual" and "QEMU Guest Agent Protocol
Reference" master texi files. Move qmp-intro.txt into qemu-qmp-ref.texi,
to widen its content on various installed target
formats (man/txt/html/pdf/info..)
Signed-off-by: Marc-André Lureau <address@hidden>
---
docs/qemu-ga-ref.texi | 65 ++++++++++++++++++
docs/qemu-qmp-ref.texi | 156 ++++++++++++++++++++++++++++++++++++++++++
docs/qmp-intro.txt | 87 -----------------------
docs/writing-qmp-commands.txt | 2 +-
4 files changed, 222 insertions(+), 88 deletions(-)
create mode 100644 docs/qemu-ga-ref.texi
create mode 100644 docs/qemu-qmp-ref.texi
delete mode 100644 docs/qmp-intro.txt
diff --git a/docs/qemu-ga-ref.texi b/docs/qemu-ga-ref.texi
new file mode 100644
index 0000000..ad90712
--- /dev/null
+++ b/docs/qemu-ga-ref.texi
@@ -0,0 +1,65 @@
+\input texinfo
address@hidden qemu-ga-ref.info
+
address@hidden 0
address@hidden 0
+
address@hidden QEMU Guest Agent Protocol Reference
+
address@hidden
+This is the QEMU Guest Agent Protocol reference manual.
+
+Copyright @copyright{} 2016 The QEMU Project developers
address@hidden copying
+
address@hidden
address@hidden QEMU
address@hidden
+* QEMU-GA-Ref: (qemu-ga-ref). QEMU Guest Agent Protocol Reference
address@hidden direntry
address@hidden ifinfo
+
address@hidden
address@hidden Guest Agent Protocol Reference Manual
address@hidden QEMU version @value{VERSION}
address@hidden
address@hidden 0pt plus 1filll
address@hidden
address@hidden titlepage
+
address@hidden
+
address@hidden
address@hidden Top
address@hidden QEMU Guest Agent protocol reference
address@hidden ifnottex
+
address@hidden
+* API Reference::
+* Commands and Events Index::
+* Data Types Index::
address@hidden menu
+
address@hidden API Reference
address@hidden API Reference
+
address@hidden for texi2pod:
address@hidden man begin DESCRIPTION
+
address@hidden qemu-ga-qapi.texi
+
address@hidden man end
+
address@hidden man begin SEEALSO
+The HTML documentation of QEMU for more information.
address@hidden man end
+
address@hidden Commands and Events Index
address@hidden Commands and Events Index
address@hidden fn
+
address@hidden Data Types Index
address@hidden Data Types Index
address@hidden tp
+
address@hidden
diff --git a/docs/qemu-qmp-ref.texi b/docs/qemu-qmp-ref.texi
new file mode 100644
index 0000000..c1740ae
--- /dev/null
+++ b/docs/qemu-qmp-ref.texi
@@ -0,0 +1,156 @@
+\input texinfo
address@hidden qemu-qmp-ref.info
+
address@hidden 0
address@hidden 0
+
address@hidden QEMU QMP Reference Manual
+
address@hidden
+This is the QEMU QMP reference manual.
+
+Copyright @copyright{} 2016 The QEMU Project developers
address@hidden copying
+
address@hidden
address@hidden QEMU
address@hidden
+* QEMU-QMP-Ref: (qemu-qmp-ref). QEMU QMP Reference Manual
address@hidden direntry
address@hidden ifinfo
+
address@hidden
address@hidden QMP Reference Manual
address@hidden QEMU version @value{VERSION}
address@hidden
address@hidden 0pt plus 1filll
address@hidden
address@hidden titlepage
+
address@hidden
+
address@hidden
address@hidden Top
address@hidden QEMU QMP reference
address@hidden ifnottex
+
address@hidden
+* Introduction::
+* API Reference::
+* Commands and Events Index::
+* Data Types Index::
address@hidden menu
+
address@hidden Introduction
address@hidden Introduction
+
+The QEMU Machine Protocol (@acronym{QMP}) allows applications to
+operate a QEMU instance.
+
+QMP is @uref{http://www.json.org, JSON} based and features the
+following:
+
address@hidden @bullet
address@hidden
+Lightweight, plain-text, easy to parse data format
address@hidden
+Asynchronous messages support (ie. events)
address@hidden
+Capabilities Negotiation
address@hidden
+Introspection
address@hidden itemize
+
+For detailed information on QEMU Machine Protocol, the specification
+is in @file{qmp-spec.txt}.
+
address@hidden Usage
+
+You can use the @option{-qmp} option to enable QMP. For example, the
+following makes QMP available on localhost port 4444:
+
address@hidden
+$ qemu [...] -qmp tcp:localhost:4444,server,nowait
address@hidden example
+
+However, for more flexibility and to make use of more options, the
address@hidden command-line option should be used. For instance, the
+following example creates one HMP instance (human monitor) on stdio
+and one QMP instance on localhost port 4444:
+
address@hidden
+$ qemu [...] -chardev socket,id=mon1,host=localhost,port=4444,server,nowait \
+ -mon chardev=mon1,mode=control,pretty=on
address@hidden example
+
+Please refer to QEMU's manpage for more information.
+
address@hidden Simple testing
+
+To manually test QMP one can connect with telnet and issue commands by
+hand:
+
address@hidden
+$ telnet localhost 4444
+Trying 127.0.0.1...
+Connected to localhost.
+Escape character is '^]'.
address@hidden
+ "QMP": @{
+ "version": @{
+ "qemu": @{
+ "micro": 50,
+ "minor": 6,
+ "major": 1
+ @},
+ "package": ""
+ @},
+ "capabilities": [
+ ]
+ @}
address@hidden
+
address@hidden "execute": "qmp_capabilities" @}
address@hidden
+ "return": @{
+ @}
address@hidden
+
address@hidden "execute": "query-status" @}
address@hidden
+ "return": @{
+ "status": "prelaunch",
+ "singlestep": false,
+ "running": false
+ @}
address@hidden
address@hidden example
+
address@hidden Wiki
+
+Please refer to the @uref{http://wiki.qemu-project.org/QMP, QMP QEMU
+ wiki page} for more details on QMP.
+
address@hidden API Reference
address@hidden API Reference
+
address@hidden for texi2pod:
address@hidden man begin DESCRIPTION
+
address@hidden qemu-qapi.texi
+
address@hidden man end
+
address@hidden man begin SEEALSO
+The HTML documentation of QEMU for more precise information.
address@hidden man end
+
address@hidden Commands and Events Index
address@hidden Commands and Events Index
address@hidden fn
+
address@hidden Data Types Index
address@hidden Data Types Index
address@hidden tp
+
address@hidden
diff --git a/docs/qmp-intro.txt b/docs/qmp-intro.txt
deleted file mode 100644
index f6a3a03..0000000
--- a/docs/qmp-intro.txt
+++ /dev/null
@@ -1,87 +0,0 @@
- QEMU Machine Protocol
- =====================
-
-Introduction
-------------
-
-The QEMU Machine Protocol (QMP) allows applications to operate a
-QEMU instance.
-
-QMP is JSON[1] based and features the following:
-
-- Lightweight, text-based, easy to parse data format
-- Asynchronous messages support (ie. events)
-- Capabilities Negotiation
-
-For detailed information on QMP's usage, please, refer to the following files:
-
-o qmp-spec.txt QEMU Machine Protocol current specification
-o qmp-commands.txt QMP supported commands (auto-generated at build-time)
-o qmp-events.txt List of available asynchronous events
-
-[1] http://www.json.org
-
-Usage
------
-
-You can use the -qmp option to enable QMP. For example, the following
-makes QMP available on localhost port 4444:
-
-$ qemu [...] -qmp tcp:localhost:4444,server,nowait
-
-However, for more flexibility and to make use of more options, the -mon
-command-line option should be used. For instance, the following example
-creates one HMP instance (human monitor) on stdio and one QMP instance
-on localhost port 4444:
-
-$ qemu [...] -chardev stdio,id=mon0 -mon chardev=mon0,mode=readline \
- -chardev socket,id=mon1,host=localhost,port=4444,server,nowait \
- -mon chardev=mon1,mode=control,pretty=on
-
-Please, refer to QEMU's manpage for more information.
-
-Simple Testing
---------------
-
-To manually test QMP one can connect with telnet and issue commands by hand:
-
-$ telnet localhost 4444
-Trying 127.0.0.1...
-Connected to localhost.
-Escape character is '^]'.
-{
- "QMP": {
- "version": {
- "qemu": {
- "micro": 50,
- "minor": 6,
- "major": 1
- },
- "package": ""
- },
- "capabilities": [
- ]
- }
-}
-
-{ "execute": "qmp_capabilities" }
-{
- "return": {
- }
-}
-
-{ "execute": "query-status" }
-{
- "return": {
- "status": "prelaunch",
- "singlestep": false,
- "running": false
- }
-}
-
-Please, refer to the qapi-schema.json file for a complete command reference.
-
-QMP wiki page
--------------
-
-http://wiki.qemu-project.org/QMP
diff --git a/docs/writing-qmp-commands.txt b/docs/writing-qmp-commands.txt
index 44c14db..de54977 100644
--- a/docs/writing-qmp-commands.txt
+++ b/docs/writing-qmp-commands.txt
@@ -8,7 +8,7 @@ into the QAPI framework implementation.
For an in-depth introduction to the QAPI framework, please refer to
docs/qapi-code-gen.txt. For documentation about the QMP protocol,
-start with docs/qmp-intro.txt.
+start with docs/qemu-qmp-ref.texi.
== Overview ==
--
2.10.0
- [Qemu-devel] [PATCH v3 05/14] qapi: fix missing symbol @prefix, (continued)
- [Qemu-devel] [PATCH v3 05/14] qapi: fix missing symbol @prefix, Marc-André Lureau, 2016/11/07
- [Qemu-devel] [PATCH v3 04/14] qapi: fix schema symbol sections, Marc-André Lureau, 2016/11/07
- [Qemu-devel] [PATCH v3 06/14] qapi: fix various symbols mismatch in documentation, Marc-André Lureau, 2016/11/07
- [Qemu-devel] [PATCH v3 07/14] qapi: use one symbol per line, Marc-André Lureau, 2016/11/07
- [Qemu-devel] [PATCH v3 09/14] qapi: add some sections in docs, Marc-André Lureau, 2016/11/07
- [Qemu-devel] [PATCH v3 10/14] docs: add master qapi texi files,
Marc-André Lureau <=
- [Qemu-devel] [PATCH v3 08/14] qapi: add missing colon-ending for section name, Marc-André Lureau, 2016/11/07
- [Qemu-devel] [PATCH v3 12/14] texi2pod: learn quotation, deftp and deftypefn, Marc-André Lureau, 2016/11/07
- [Qemu-devel] [PATCH v3 11/14] qapi: add qapi2texi script, Marc-André Lureau, 2016/11/07
- [Qemu-devel] [PATCH v3 14/14] build-sys: add qapi doc generation targets, Marc-André Lureau, 2016/11/07
- [Qemu-devel] [PATCH v3 13/14] qmp-commands: (SQUASHED) move doc to schema, Marc-André Lureau, 2016/11/07