Skip to contentSkip to conversation

docs/devel: try and impose some organisation

RFC PATCH In review Alex Bennée 2 participants 2 messages Mar 9, 2022 – Mar 11, 2022

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 docs/devel: try and impose some organisation

We have a growing set of developer docs but the index is currently in order of when stuff was added. Try and make things a bit easier to find my adding sub indexes and organising into themes.

---
 docs/devel/index-api.rst       | 15 +++++++++++
 docs/devel/index-build.rst     | 20 +++++++++++++++
 docs/devel/index-internals.rst | 22 ++++++++++++++++
 docs/devel/index-process.rst   | 18 +++++++++++++
 docs/devel/index-tcg.rst       | 17 +++++++++++++
 docs/devel/index.rst           | 46 ++++++----------------------------
 6 files changed, 99 insertions(+), 39 deletions(-)
 create mode 100644 docs/devel/index-api.rst
 create mode 100644 docs/devel/index-build.rst
 create mode 100644 docs/devel/index-internals.rst
 create mode 100644 docs/devel/index-process.rst
 create mode 100644 docs/devel/index-tcg.rst
docs/devel/index-api.rst new file +15 -0
new file mode 100644
index 0000000000..b749240272
@@ -0,0 +1,15 @@
+Internal QEMU APIs
+------------------
+
+Details about how QEMU's various internal APIs. Most of these are
+generated from in-code annotations to function prototypes.
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   bitops
+   loads-stores
+   memory
+   modules
+   ui
docs/devel/index-build.rst new file +20 -0
new file mode 100644
index 0000000000..982ee801bd
@@ -0,0 +1,20 @@
+QEMU Build and Test System
+--------------------------
+
+Details about how QEMU's build system works and how it is integrated
+into our testing infrastructure. You will need to understand some of
+the basics if you are adding new files and targets to the build.
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   build-system
+   kconfig
+   testing
+   qtest
+   ci
+   qapi-code-gen
+   fuzzing
+   control-flow-integrity
+      
docs/devel/index-internals.rst new file +22 -0
new file mode 100644
index 0000000000..78270e89b3
@@ -0,0 +1,22 @@
+Internal Subsystem Information
+------------------------------
+
+Details about QEMU's various subsystems including how to add features to them.
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   qom
+   atomics
+   block-coroutine-wrapper
+   clocks
+   ebpf_rss
+   migration
+   multi-process
+   reset
+   s390-dasd-ipl
+   tracing
+   vfio-migration
+   writing-monitor-commands
+      
docs/devel/index-process.rst new file +18 -0
new file mode 100644
index 0000000000..0290762c08
@@ -0,0 +1,18 @@
+QEMU Community Processes
+------------------------
+
+Notes about how to interact with the community and how and where to submit patches.
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   code-of-conduct
+   conflict-resolution
+   style
+   submitting-a-patch
+   trivial-patches
+   stable-process
+   submitting-a-pull-request
+   secure-coding-practices
+      
docs/devel/index-tcg.rst new file +17 -0
new file mode 100644
index 0000000000..daa63e9a9a
@@ -0,0 +1,17 @@
+TCG Emulation
+-------------
+
+Details about QEMU's Tiny Code Generator and the infrastructure
+associated with emulation. You do not need to worry about this if you
+are only implementing things for HW accelerated hypervisors.
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   tcg
+   decodetree
+   multi-thread-tcg
+   tcg-icount
+   tcg-plugins
+      
docs/devel/index.rst +7 -39

51 lines not on this page · raw message

Signature · 1 line
2.30.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Alex Bennée

We have a growing set of developer docs but the index is currently in order of when stuff was added. Try and make things a bit easier to find my adding sub indexes and organising into themes.

Quoted 13 lines
---
 docs/devel/index-api.rst       | 15 +++++++++++
 docs/devel/index-build.rst     | 20 +++++++++++++++
 docs/devel/index-internals.rst | 22 ++++++++++++++++
 docs/devel/index-process.rst   | 18 +++++++++++++
 docs/devel/index-tcg.rst       | 17 +++++++++++++
 docs/devel/index.rst           | 46 ++++++----------------------------
 6 files changed, 99 insertions(+), 39 deletions(-)
 create mode 100644 docs/devel/index-api.rst
 create mode 100644 docs/devel/index-build.rst
 create mode 100644 docs/devel/index-internals.rst
 create mode 100644 docs/devel/index-process.rst
 create mode 100644 docs/devel/index-tcg.rst

Yeah, the sub-indexes idea looks good to me. It's good to start this before it gets out of hand :-)

As discussed on IRC, there seems to be some whitespace damage:

$> git describe
v6.2.0-2381-g034e818c93

$> ~/Mail/patch-temp/cur/1647009097.180136_1.paraplu\:2\,S
Applying: docs/devel: try and impose some organisation .git/rebase-apply/patch:61: trailing whitespace.

.git/rebase-apply/patch:89: trailing whitespace.

.git/rebase-apply/patch:113: trailing whitespace.

.git/rebase-apply/patch:136: trailing whitespace.

.git/rebase-apply/patch:61: new blank line at EOF. +
warning: squelched 3 whitespace errors
warning: 8 lines add whitespace errors.

FWIW:

[...]

Signature · 1 line
/kashyap