Skip to contentSkip to conversation

docs/devel: Organize devel manual into further subsections

PATCH Superseded John Snow 3 participants 16 messages Aug 4, 2021 – Aug 5, 2021

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

John Snow

author
#0 lore raw

cover docs/devel: Organize devel manual into further subsections

It's a bit cluttered. On my way to converting the QAPI/QMP documents to ReST I thought it could do with another organizational level to help make sense of things a bit more quickly.

John Snow (6):
docs/devel: create "Community & Governance" subsection docs/devel: create "Developing QEMU" subsection docs/devel: create "Testing & Debugging" subsection docs/devel: create TCG subsection
docs/devel: create "Subsystem APIs" subsection docs/devel: create "Miscellaneous Topics" subsection

 docs/devel/index.rst                        | 39 ++++-----------------
 docs/devel/section-community-governance.rst |  9 +++++
 docs/devel/section-development.rst          | 12 +++++++
 docs/devel/section-misc.rst                 | 15 ++++++++
 docs/devel/section-subsystems.rst           | 16 +++++++++
 docs/devel/section-tcg.rst                  | 11 ++++++
 docs/devel/section-testing-debugging.rst    | 12 +++++++
 7 files changed, 81 insertions(+), 33 deletions(-)
 create mode 100644 docs/devel/section-community-governance.rst
 create mode 100644 docs/devel/section-development.rst
 create mode 100644 docs/devel/section-misc.rst
 create mode 100644 docs/devel/section-subsystems.rst
 create mode 100644 docs/devel/section-tcg.rst
 create mode 100644 docs/devel/section-testing-debugging.rst
Signature · 1 line
2.31.1
author
#1 lore raw

PATCH 1/6 docs/devel: create "Community & Governance" subsection

Plonk the Code of Conduct and Conflict Resolution Policy guides into a new "Community & Governance" subsection.

---
 docs/devel/index.rst                        | 3 +--
 docs/devel/section-community-governance.rst | 9 +++++++++
 2 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 docs/devel/section-community-governance.rst
docs/devel/index.rst +1 -2
index 153979caf4b..f32883da8ed 100644
@@ -9,8 +9,7 @@ modifying QEMU's source code.
    :maxdepth: 2
    :includehidden:
 
-   code-of-conduct
-   conflict-resolution
+   section-community-governance
    build-system
    style
    kconfig
docs/devel/section-community-governance.rst new file +9 -0
new file mode 100644
index 00000000000..2c7e07257d1
@@ -0,0 +1,9 @@
+Community & Governance
+======================
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   code-of-conduct
+   conflict-resolution
Signature · 1 line
2.31.1
author
#3 lore raw

PATCH 2/6 docs/devel: create "Developing QEMU" subsection

In reply to John Snow
---
 docs/devel/index.rst               |  6 +-----
 docs/devel/section-development.rst | 12 ++++++++++++
 2 files changed, 13 insertions(+), 5 deletions(-)
 create mode 100644 docs/devel/section-development.rst
docs/devel/index.rst +1 -5
index f32883da8ed..3cdfb786f1a 100644
@@ -10,9 +10,7 @@ modifying QEMU's source code.
    :includehidden:
 
    section-community-governance
-   build-system
-   style
-   kconfig
+   section-development
    testing
    fuzzing
    control-flow-integrity
@@ -20,11 +18,9 @@ modifying QEMU's source code.
    memory
    migration
    atomics
-   stable-process
    ci
    qtest
    decodetree
-   secure-coding-practices
    tcg
    tcg-icount
    tracing
docs/devel/section-development.rst new file +12 -0
new file mode 100644
index 00000000000..bba4fea30cb
@@ -0,0 +1,12 @@
+Developing QEMU
+===============
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   build-system
+   kconfig
+   style
+   secure-coding-practices
+   stable-process
Signature · 1 line
2.31.1
author
#5 lore raw

PATCH 3/6 docs/devel: create "Testing & Debugging" subsection

In reply to John Snow
---
 docs/devel/index.rst                     |  6 +-----
 docs/devel/section-testing-debugging.rst | 12 ++++++++++++
 2 files changed, 13 insertions(+), 5 deletions(-)
 create mode 100644 docs/devel/section-testing-debugging.rst
docs/devel/index.rst +1 -5
index 3cdfb786f1a..c560cc78497 100644
@@ -11,19 +11,15 @@ modifying QEMU's source code.
 
    section-community-governance
    section-development
-   testing
-   fuzzing
+   section-testing-debugging
    control-flow-integrity
    loads-stores
    memory
    migration
    atomics
-   ci
-   qtest
    decodetree
    tcg
    tcg-icount
-   tracing
    multi-thread-tcg
    tcg-plugins
    bitops
docs/devel/section-testing-debugging.rst new file +12 -0
new file mode 100644
index 00000000000..e59ddab4cf5
@@ -0,0 +1,12 @@
+Testing & Debugging
+===================
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   ci
+   fuzzing
+   qtest
+   testing
+   tracing
Signature · 1 line
2.31.1
author
#7 lore raw

PATCH 4/6 docs/devel: create TCG subsection

In reply to John Snow
---
 docs/devel/index.rst       |  5 +----
 docs/devel/section-tcg.rst | 11 +++++++++++
 2 files changed, 12 insertions(+), 4 deletions(-)
 create mode 100644 docs/devel/section-tcg.rst
docs/devel/index.rst +1 -4
index c560cc78497..71ed48881ef 100644
@@ -12,16 +12,13 @@ modifying QEMU's source code.
    section-community-governance
    section-development
    section-testing-debugging
+   section-tcg
    control-flow-integrity
    loads-stores
    memory
    migration
    atomics
    decodetree
-   tcg
-   tcg-icount
-   multi-thread-tcg
-   tcg-plugins
    bitops
    ui
    reset
docs/devel/section-tcg.rst new file +11 -0
new file mode 100644
index 00000000000..ff046983742
@@ -0,0 +1,11 @@
+TCG - Tiny Code Generator
+=========================
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   tcg
+   tcg-icount
+   multi-thread-tcg
+   tcg-plugins
Signature · 1 line
2.31.1
author
#10 lore raw

PATCH 5/6 docs/devel: create "Subsystem APIs" subsection

In reply to John Snow

---

I tried to grab documents that appeared to document literal internal interfaces of QEMU (that weren't better described by some other subsection) and put them here in this section.

Name isn't perfect, feel free to suggest alternatives.

---
 docs/devel/index.rst              | 10 +---------
 docs/devel/section-subsystems.rst | 16 ++++++++++++++++
 2 files changed, 17 insertions(+), 9 deletions(-)
 create mode 100644 docs/devel/section-subsystems.rst
docs/devel/index.rst +1 -9
index 71ed48881ef..da579a7b666 100644
@@ -13,19 +13,11 @@ modifying QEMU's source code.
    section-development
    section-testing-debugging
    section-tcg
+   section-subsystems
    control-flow-integrity
-   loads-stores
-   memory
-   migration
-   atomics
    decodetree
-   bitops
-   ui
-   reset
    s390-dasd-ipl
-   clocks
    qom
-   modules
    block-coroutine-wrapper
    multi-process
    ebpf_rss
docs/devel/section-subsystems.rst new file +16 -0
new file mode 100644
index 00000000000..fbe21f85adf
@@ -0,0 +1,16 @@
+Subsystem APIs
+==============
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   atomics
+   bitops
+   loads-stores
+   clocks
+   memory
+   ui
+   migration
+   reset
+   modules
Signature · 1 line
2.31.1
author
#12 lore raw

PATCH 6/6 docs/devel: create "Miscellaneous Topics" subsection

In reply to John Snow

The hallmark of any truly great taxonomical reorganization: the bin of leftover bits and pieces that didn't neatly fit elsewhere.

---
 docs/devel/index.rst        |  9 +--------
 docs/devel/section-misc.rst | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 8 deletions(-)
 create mode 100644 docs/devel/section-misc.rst
docs/devel/index.rst +1 -8
index da579a7b666..ef14f3302e1 100644
@@ -14,11 +14,4 @@ modifying QEMU's source code.
    section-testing-debugging
    section-tcg
    section-subsystems
-   control-flow-integrity
-   decodetree
-   s390-dasd-ipl
-   qom
-   block-coroutine-wrapper
-   multi-process
-   ebpf_rss
-   vfio-migration
+   section-misc
docs/devel/section-misc.rst new file +15 -0
new file mode 100644
index 00000000000..804852ff61c
@@ -0,0 +1,15 @@
+Miscellaneous Topics
+====================
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   control-flow-integrity
+   decodetree
+   s390-dasd-ipl
+   qom
+   block-coroutine-wrapper
+   multi-process
+   ebpf_rss
+   vfio-migration
Signature · 1 line
2.31.1
Reviewed-by on v1 6/6
#13 lore raw

Re: [PATCH 6/6] docs/devel: create "Miscellaneous Topics" subsection

Quoted 15 lines · John Snow

The hallmark of any truly great taxonomical reorganization: the bin of leftover bits and pieces that didn't neatly fit elsewhere.

---
 docs/devel/index.rst        |  9 +--------
 docs/devel/section-misc.rst | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 8 deletions(-)
 create mode 100644 docs/devel/section-misc.rst
docs/devel/index.rst +0 -0
index da579a7b666..ef14f3302e1 100644

docs/devel/index.rst modifying QEMU's source code. · line 18

Quoted 5 lines
docs/devel/index.rst +0 -2
@@ -14,11 +14,4 @@ modifying QEMU's source code.
    section-testing-debugging
    section-tcg
    section-subsystems
-   control-flow-integrity
-   decodetree

decodetree is TCG as per Peter's comment

docs/devel/index.rst modifying QEMU's source code. · line 20

Quoted 2 lines
docs/devel/index.rst +0 -2
-   s390-dasd-ipl
-   qom

I feel as though QOM should be in the Developing QEMU section as it's a fairly core part of the programming experience. Maybe?

Anyway it's an improvement:

Signature · 1 line
Alex Bennée
author
#14 lore raw

Re: [PATCH 6/6] docs/devel: create "Miscellaneous Topics" subsection

Quoted 26 lines · Alex Bennée
Quoted 15 lines · John Snow

The hallmark of any truly great taxonomical reorganization: the bin of leftover bits and pieces that didn't neatly fit elsewhere.

---
 docs/devel/index.rst        |  9 +--------
 docs/devel/section-misc.rst | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 8 deletions(-)
 create mode 100644 docs/devel/section-misc.rst
docs/devel/index.rst +0 -0
index da579a7b666..ef14f3302e1 100644

docs/devel/index.rst modifying QEMU's source code. · line 18

Quoted 5 lines
docs/devel/index.rst +0 -2
@@ -14,11 +14,4 @@ modifying QEMU's source code.
    section-testing-debugging
    section-tcg
    section-subsystems
-   control-flow-integrity
-   decodetree

decodetree is TCG as per Peter's comment

Quoted 7 lines

docs/devel/index.rst modifying QEMU's source code. · line 20

Quoted 2 lines
docs/devel/index.rst +0 -2
-   s390-dasd-ipl
-   qom

I feel as though QOM should be in the Developing QEMU section as it's a fairly core part of the programming experience. Maybe?

I'm guilty of doing a lot of things in parallel, because I wasn't sure which things would be accepted quickly and which might lead to a longer process, but I intend to create an "API" section that covers QOM, qdev, QMP, etc -- I just recently converted the qmp/qapi docs, so there's enough for a nice subsection there.

Quoted 5 lines

Anyway it's an improvement:

Thanks. I'll have to re-spin anyway because of the QAPI doc work I did, so there's time to talk about this one.

--js

Reviewed-by on the v1 series
#15 lore raw
In reply to John Snow
Quoted 5 lines · John Snow

It's a bit cluttered. On my way to converting the QAPI/QMP documents to ReST I thought it could do with another organizational level to help make sense of things a bit more quickly.

Quoted 7 lines

John Snow (6):
docs/devel: create "Community & Governance" subsection docs/devel: create "Developing QEMU" subsection docs/devel: create "Testing & Debugging" subsection docs/devel: create TCG subsection
docs/devel: create "Subsystem APIs" subsection docs/devel: create "Miscellaneous Topics" subsection

I think 'decodetree' should also live in the TCG subsection; otherwise, whole series

thanks
-- PMM