Skip to contentSkip to conversation

docs: Move orphan top-level .rst files into manuals

PATCH In review Peter Maydell 3 participants 21 messages Nov 12, 2020 – Nov 19, 2020 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

cover docs: Move orphan top-level .rst files into manuals

Currently we have a handful of rST documents that are sat in the top level docs/ directory and do not get built into the manuals. These are a legacy from the period after we'd decided we wanted rST format documentation but before we'd set up the manual structure. This patchset moves them all into at least plausibly suitable places in the manual set:

* virtio-net-failover, cpu-hotplug, virtio-pmem all go into the system manual
* microvm goes into the system manual, but first we have to create a structure in target-i386.rst that lets us have a list of multiple machine types (along the pattern that target-arm.rst does)
* pr-manager.rst goes into the system manual, but the part of it documenting the qemu-pr-helper executable needs to go into the tools manual

If anybody who cares about the x86 machine models would like to create some documentation of the others ("q35", "isapc", "xenpv", "xenfv") you now have a place for it to live :-)

Since there's no good way to cross-reference between different manuals there is no direct link between the pr-manager.rst and the qemu-pr-helper.rst; my proposal for fixing that is the recent "build a single manual, not five" RFC.

thanks
-- PMM

Peter Maydell (9):
docs: Move virtio-net-failover.rst into the system manual
docs: Move cpu-hotplug.rst into the system manual
docs: Move virtio-pmem.rst into the system manual docs/system/virtio-pmem.rst: Fix minor style issues
docs: Split out 'pc' machine model docs into their own file
docs: Move microvm.rst into the system manual
docs: Move pr-manager.rst into the system manual
docs: Split qemu-pr-helper documentation into tools manual docs/system/pr-manager.rst: Fix minor docs nits

 docs/meson.build                          |  1 +
 docs/{ => system}/cpu-hotplug.rst         |  0
 docs/{ => system/i386}/microvm.rst        |  5 +-
 docs/system/i386/pc.rst                   |  7 ++
 docs/system/index.rst                     |  4 +
 docs/{ => system}/pr-manager.rst          | 44 ++---------
 docs/system/target-i386.rst               | 19 +++--
 docs/{ => system}/virtio-net-failover.rst |  0
 docs/system/virtio-pmem.rst               | 75 +++++++++++++++++++
 docs/tools/conf.py                        |  2 +
 docs/tools/index.rst                      |  1 +
 docs/tools/qemu-pr-helper.rst             | 90 +++++++++++++++++++++++
 docs/virtio-pmem.rst                      | 76 -------------------
 13 files changed, 204 insertions(+), 120 deletions(-)
 rename docs/{ => system}/cpu-hotplug.rst (100%)
 rename docs/{ => system/i386}/microvm.rst (98%)
 create mode 100644 docs/system/i386/pc.rst
 rename docs/{ => system}/pr-manager.rst (68%)
 rename docs/{ => system}/virtio-net-failover.rst (100%)
 create mode 100644 docs/system/virtio-pmem.rst
 create mode 100644 docs/tools/qemu-pr-helper.rst
 delete mode 100644 docs/virtio-pmem.rst
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/9 docs: Move virtio-net-failover.rst into the system manual

The virtio-net-failover documentation is currently orphan and not included in any manual; move it into the system manual, immediately following the general network emulation section.

---
 docs/system/index.rst                     | 1 +
 docs/{ => system}/virtio-net-failover.rst | 0
 2 files changed, 1 insertion(+)
 rename docs/{ => system}/virtio-net-failover.rst (100%)
docs/system/index.rst +1 -0
index c0f685b818e..d0613cd5f72 100644
@@ -21,6 +21,7 @@ Contents:
    monitor
    images
    net
+   virtio-net-failover
    usb
    ivshmem
    linuxboot
docs/system/virtio-net-failover.rst renamed from docs/virtio-net-failover.rst +0 -0
similarity index 100%
rename from docs/virtio-net-failover.rst
rename to docs/system/virtio-net-failover.rst
Signature · 1 line
2.20.1
Reviewed-by on v1 1/9
#2 lore raw

Re: [for-5.2 1/9] docs: Move virtio-net-failover.rst into the system manual

Quoted 5 lines · Peter Maydell

The virtio-net-failover documentation is currently orphan and not included in any manual; move it into the system manual, immediately following the general network emulation section.

Signature · 1 line
Alex Bennée
#3 lore raw

PATCH 2/9 docs: Move cpu-hotplug.rst into the system manual

In reply to Peter Maydell

The cpu-hotplug.rst documentation is currently orphan and not included in any manual; move it into the system manual.

---
 docs/{ => system}/cpu-hotplug.rst | 0
 docs/system/index.rst             | 1 +
 2 files changed, 1 insertion(+)
 rename docs/{ => system}/cpu-hotplug.rst (100%)
docs/system/cpu-hotplug.rst renamed from docs/cpu-hotplug.rst +0 -0
similarity index 100%
rename from docs/cpu-hotplug.rst
rename to docs/system/cpu-hotplug.rst
docs/system/index.rst +1 -0
index d0613cd5f72..0f0f6d2e99d 100644
@@ -29,6 +29,7 @@ Contents:
    tls
    gdb
    managed-startup
+   cpu-hotplug
    targets
    security
    deprecated
Signature · 1 line
2.20.1
#5 lore raw

PATCH 3/9 docs: Move virtio-pmem.rst into the system manual

In reply to Peter Maydell
---
 docs/system/index.rst             | 1 +
 docs/{ => system}/virtio-pmem.rst | 0
 2 files changed, 1 insertion(+)
 rename docs/{ => system}/virtio-pmem.rst (100%)
docs/system/index.rst +1 -0
index 0f0f6d2e99d..2a5155c67dc 100644
@@ -30,6 +30,7 @@ Contents:
    gdb
    managed-startup
    cpu-hotplug
+   virtio-pmem
    targets
    security
    deprecated
docs/system/virtio-pmem.rst renamed from docs/virtio-pmem.rst +0 -0
similarity index 100%
rename from docs/virtio-pmem.rst
rename to docs/system/virtio-pmem.rst
Signature · 1 line
2.20.1
#7 lore raw

PATCH 4/9 docs/system/virtio-pmem.rst: Fix minor style issues

In reply to Peter Maydell

The virtio-pmem documentation has some minor style issues we hadn't noticed since we weren't rendering it in our docs:

* Sphinx doesn't complain about overlong title-underlining the way it complains about too-short underlining, but it looks odd; make the underlines of the top level title the right length

* Indent of paragraphs makes them render as blockquotes; remove the indent so they just render as normal text

* Leading 'o' isn't rst markup, so it just renders as a literal "o"; reformat as a subsection heading instead

* "QEMU" in the document title and section headings are a bit odd and unnecessary since this is the QEMU manual; delete or rephrase them

* There's no need to specify what QEMU version the device first appeared in.

---
 docs/system/virtio-pmem.rst | 55 ++++++++++++++++++-------------------
 1 file changed, 27 insertions(+), 28 deletions(-)
docs/system/virtio-pmem.rst +27 -28
index 4bf5d004432..e5f91eff1c2 100644
@@ -1,38 +1,37 @@
 
-========================
-QEMU virtio pmem
-========================
+===========
+virtio pmem
+===========
 
- This document explains the setup and usage of the virtio pmem device
- which is available since QEMU v4.1.0.
-
- The virtio pmem device is a paravirtualized persistent memory device
- on regular (i.e non-NVDIMM) storage.
+This document explains the setup and usage of the virtio pmem device.
+The virtio pmem device is a paravirtualized persistent memory device
+on regular (i.e non-NVDIMM) storage.
 
 Usecase
 --------
 
-  Virtio pmem allows to bypass the guest page cache and directly use
-  host page cache. This reduces guest memory footprint as the host can
-  make efficient memory reclaim decisions under memory pressure.
+Virtio pmem allows to bypass the guest page cache and directly use
+host page cache. This reduces guest memory footprint as the host can
+make efficient memory reclaim decisions under memory pressure.
 
-o How does virtio-pmem compare to the nvdimm emulation supported by QEMU?
+How does virtio-pmem compare to the nvdimm emulation?
+-----------------------------------------------------
 
-  NVDIMM emulation on regular (i.e. non-NVDIMM) host storage does not
-  persist the guest writes as there are no defined semantics in the device
-  specification. The virtio pmem device provides guest write persistence
-  on non-NVDIMM host storage.
+NVDIMM emulation on regular (i.e. non-NVDIMM) host storage does not
+persist the guest writes as there are no defined semantics in the device
+specification. The virtio pmem device provides guest write persistence
+on non-NVDIMM host storage.
 
 virtio pmem usage
 -----------------
 
-  A virtio pmem device backed by a memory-backend-file can be created on
-  the QEMU command line as in the following example::
+A virtio pmem device backed by a memory-backend-file can be created on
+the QEMU command line as in the following example::
 
     -object memory-backend-file,id=mem1,share,mem-path=./virtio_pmem.img,size=4G
     -device virtio-pmem-pci,memdev=mem1,id=nv1
 
-  where:
+where:
 
   - "object memory-backend-file,id=mem1,share,mem-path=<image>, size=<image size>"
     creates a backend file with the specified size.
@@ -40,8 +39,8 @@ virtio pmem usage
   - "device virtio-pmem-pci,id=nvdimm1,memdev=mem1" creates a virtio pmem
     pci device whose storage is provided by above memory backend device.
 
-  Multiple virtio pmem devices can be created if multiple pairs of "-object"
-  and "-device" are provided.
+Multiple virtio pmem devices can be created if multiple pairs of "-object"
+and "-device" are provided.
 
 Hotplug
 -------
@@ -59,14 +58,14 @@ the guest::
 Guest Data Persistence
 ----------------------
 
- Guest data persistence on non-NVDIMM requires guest userspace applications
- to perform fsync/msync. This is different from a real nvdimm backend where
- no additional fsync/msync is required. This is to persist guest writes in
- host backing file which otherwise remains in host page cache and there is
- risk of losing the data in case of power failure.
+Guest data persistence on non-NVDIMM requires guest userspace applications
+to perform fsync/msync. This is different from a real nvdimm backend where
+no additional fsync/msync is required. This is to persist guest writes in
+host backing file which otherwise remains in host page cache and there is
+risk of losing the data in case of power failure.
 
- With virtio pmem device, MAP_SYNC mmap flag is not supported. This provides
- a hint to application to perform fsync for write persistence.
+With virtio pmem device, MAP_SYNC mmap flag is not supported. This provides
+a hint to application to perform fsync for write persistence.
 
 Limitations
 ------------
Signature · 1 line
2.20.1
Reviewed-by on v1 4/9
#8 lore raw

Re: [for-5.2 4/9] docs/system/virtio-pmem.rst: Fix minor style issues

Quoted 39 lines · Peter Maydell

The virtio-pmem documentation has some minor style issues we hadn't noticed since we weren't rendering it in our docs:

* Sphinx doesn't complain about overlong title-underlining the way it complains about too-short underlining, but it looks odd; make the underlines of the top level title the right length

* Indent of paragraphs makes them render as blockquotes; remove the indent so they just render as normal text

* Leading 'o' isn't rst markup, so it just renders as a literal "o"; reformat as a subsection heading instead

* "QEMU" in the document title and section headings are a bit odd and unnecessary since this is the QEMU manual; delete or rephrase them

* There's no need to specify what QEMU version the device first appeared in.

---
 docs/system/virtio-pmem.rst | 55 ++++++++++++++++++-------------------
 1 file changed, 27 insertions(+), 28 deletions(-)
docs/system/virtio-pmem.rst +3 -4
index 4bf5d004432..e5f91eff1c2 100644
@@ -1,38 +1,37 @@
 
-========================
-QEMU virtio pmem
-========================
+===========
+virtio pmem
+===========
 
- This document explains the setup and usage of the virtio pmem device

docs/system/virtio-pmem.rst line 11

Quoted 10 lines
docs/system/virtio-pmem.rst +3 -4
- which is available since QEMU v4.1.0.
-
- The virtio pmem device is a paravirtualized persistent memory device
- on regular (i.e non-NVDIMM) storage.
+This document explains the setup and usage of the virtio pmem device.
+The virtio pmem device is a paravirtualized persistent memory device
+on regular (i.e non-NVDIMM) storage.
 
 Usecase
 --------

nit: but we didn't fix this while we were at it?

Anyway:

Signature · 1 line
Alex Bennée
Reviewed-by on v1 4/9
#9 lore raw

Re: [for-5.2 4/9] docs/system/virtio-pmem.rst: Fix minor style issues

In reply to Peter Maydell
Quoted 109 lines

The virtio-pmem documentation has some minor style issues we hadn't noticed since we weren't rendering it in our docs:

* Sphinx doesn't complain about overlong title-underlining the way it complains about too-short underlining, but it looks odd; make the underlines of the top level title the right length

* Indent of paragraphs makes them render as blockquotes; remove the indent so they just render as normal text

* Leading 'o' isn't rst markup, so it just renders as a literal "o"; reformat as a subsection heading instead

* "QEMU" in the document title and section headings are a bit odd and unnecessary since this is the QEMU manual; delete or rephrase them

* There's no need to specify what QEMU version the device first appeared in.

---
 docs/system/virtio-pmem.rst | 55 ++++++++++++++++++-------------------
 1 file changed, 27 insertions(+), 28 deletions(-)
docs/system/virtio-pmem.rst +23 -26
index 4bf5d004432..e5f91eff1c2 100644
@@ -1,38 +1,37 @@
 
-========================
-QEMU virtio pmem
-========================
+===========
+virtio pmem
+===========
 
- This document explains the setup and usage of the virtio pmem device
- which is available since QEMU v4.1.0.
-
- The virtio pmem device is a paravirtualized persistent memory device
- on regular (i.e non-NVDIMM) storage.
+This document explains the setup and usage of the virtio pmem device.
+The virtio pmem device is a paravirtualized persistent memory device
+on regular (i.e non-NVDIMM) storage.
 
 Usecase
 --------
 
-  Virtio pmem allows to bypass the guest page cache and directly use
-  host page cache. This reduces guest memory footprint as the host can
-  make efficient memory reclaim decisions under memory pressure.
+Virtio pmem allows to bypass the guest page cache and directly use
+host page cache. This reduces guest memory footprint as the host can
+make efficient memory reclaim decisions under memory pressure.
 
-o How does virtio-pmem compare to the nvdimm emulation supported by QEMU?
+How does virtio-pmem compare to the nvdimm emulation?
+-----------------------------------------------------
 
-  NVDIMM emulation on regular (i.e. non-NVDIMM) host storage does not
-  persist the guest writes as there are no defined semantics in the device
-  specification. The virtio pmem device provides guest write persistence
-  on non-NVDIMM host storage.
+NVDIMM emulation on regular (i.e. non-NVDIMM) host storage does not
+persist the guest writes as there are no defined semantics in the device
+specification. The virtio pmem device provides guest write persistence
+on non-NVDIMM host storage.
 
 virtio pmem usage
 -----------------
 
-  A virtio pmem device backed by a memory-backend-file can be created on
-  the QEMU command line as in the following example::
+A virtio pmem device backed by a memory-backend-file can be created on
+the QEMU command line as in the following example::
 
     -object memory-backend-file,id=mem1,share,mem-path=./virtio_pmem.img,size=4G
     -device virtio-pmem-pci,memdev=mem1,id=nv1
 
-  where:
+where:
 
   - "object memory-backend-file,id=mem1,share,mem-path=<image>, size=<image size>"
     creates a backend file with the specified size.
@@ -40,8 +39,8 @@ virtio pmem usage
   - "device virtio-pmem-pci,id=nvdimm1,memdev=mem1" creates a virtio pmem
     pci device whose storage is provided by above memory backend device.
 
-  Multiple virtio pmem devices can be created if multiple pairs of "-object"
-  and "-device" are provided.
+Multiple virtio pmem devices can be created if multiple pairs of "-object"
+and "-device" are provided.
 
 Hotplug
 -------
@@ -59,14 +58,14 @@ the guest::
 Guest Data Persistence
 ----------------------
 
- Guest data persistence on non-NVDIMM requires guest userspace applications
- to perform fsync/msync. This is different from a real nvdimm backend where
- no additional fsync/msync is required. This is to persist guest writes in
- host backing file which otherwise remains in host page cache and there is
- risk of losing the data in case of power failure.
+Guest data persistence on non-NVDIMM requires guest userspace applications
+to perform fsync/msync. This is different from a real nvdimm backend where
+no additional fsync/msync is required. This is to persist guest writes in

docs/system/virtio-pmem.rst the guest:: · line 71

Quoted 10 lines
docs/system/virtio-pmem.rst +4 -2
+host backing file which otherwise remains in host page cache and there is
+risk of losing the data in case of power failure.
 
- With virtio pmem device, MAP_SYNC mmap flag is not supported. This provides
- a hint to application to perform fsync for write persistence.
+With virtio pmem device, MAP_SYNC mmap flag is not supported. This provides
+a hint to application to perform fsync for write persistence.
 
 Limitations
 ------------
#10 lore raw

PATCH 5/9 docs: Split out 'pc' machine model docs into their own file

In reply to Peter Maydell

Currently target-i386.rst includes the documentation of the 'pc' machine model inline. Split it out into its own file, in a similar way to target-i386.rst; this gives us a place to put documentation of other i386 machine models, such as 'microvm'.

---
 docs/system/i386/pc.rst     |  7 +++++++
 docs/system/target-i386.rst | 18 +++++++++++++-----
 2 files changed, 20 insertions(+), 5 deletions(-)
 create mode 100644 docs/system/i386/pc.rst
docs/system/i386/pc.rst new file +7 -0
new file mode 100644
index 00000000000..d543c11a5cd
@@ -0,0 +1,7 @@
+i440fx PC (``pc-i440fx``, ``pc``)
+=================================
+
+Peripherals
+~~~~~~~~~~~
+
+.. include:: ../target-i386-desc.rst.inc
docs/system/target-i386.rst +13 -5
index 51be03d881f..1612ddba907 100644
@@ -1,14 +1,22 @@
 .. _QEMU-PC-System-emulator:
 
-x86 (PC) System emulator
-------------------------
+x86 System emulator
+-------------------
 
 .. _pcsys_005fdevices:
 
-Peripherals
-~~~~~~~~~~~
+Board-specific documentation
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-.. include:: target-i386-desc.rst.inc
+..
+   This table of contents should be kept sorted alphabetically
+   by the title text of each file, which isn't the same ordering
+   as an alphabetical sort by filename.
+
+.. toctree::
+   :maxdepth: 1
+
+   i386/pc
 
 .. include:: cpu-models-x86.rst.inc
 
Signature · 1 line
2.20.1
Reviewed-by on v1 5/9
#11 lore raw

Re: [for-5.2 5/9] docs: Split out 'pc' machine model docs into their own file

Quoted 6 lines · Peter Maydell

Currently target-i386.rst includes the documentation of the 'pc' machine model inline. Split it out into its own file, in a similar way to target-i386.rst; this gives us a place to put documentation of other i386 machine models, such as 'microvm'.

Signature · 1 line
Alex Bennée
#12 lore raw

PATCH 6/9 docs: Move microvm.rst into the system manual

In reply to Peter Maydell

Now that target-i386.rst has a place to list documentation of machines other than the 'pc' machine, we have a place we can move the microvm documentation to.

---
 docs/{ => system/i386}/microvm.rst | 5 ++---
 docs/system/target-i386.rst        | 1 +
 2 files changed, 3 insertions(+), 3 deletions(-)
 rename docs/{ => system/i386}/microvm.rst (98%)
docs/system/i386/microvm.rst renamed from docs/microvm.rst +2 -3
similarity index 98%
rename from docs/microvm.rst
rename to docs/system/i386/microvm.rst
index fcf41fc1f6f..1675e37d3e7 100644
@@ -1,6 +1,5 @@
-====================
-microvm Machine Type
-====================
+'microvm' virtual platform (``microvm``)
+========================================
 
 ``microvm`` is a machine type inspired by ``Firecracker`` and
 constructed after its machine model.
docs/system/target-i386.rst +1 -0
index 1612ddba907..22ba5ce2c0f 100644
@@ -16,6 +16,7 @@ Board-specific documentation
 .. toctree::
    :maxdepth: 1
 
+   i386/microvm
    i386/pc
 
 .. include:: cpu-models-x86.rst.inc
Signature · 1 line
2.20.1
Reviewed-by on v1 6/9
#13 lore raw

Re: [for-5.2 6/9] docs: Move microvm.rst into the system manual

Quoted 5 lines · Peter Maydell

Now that target-i386.rst has a place to list documentation of machines other than the 'pc' machine, we have a place we can move the microvm documentation to.

That said the x86 section runs straight into board models and I feel it would be nice if we could persuade the x86 guys to write a bit of pre-amble similar to what we have for Arm that explains the status of KVM and TCG for x86 guests and the point of i440 and q35 models.

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

PATCH 7/9 docs: Move pr-manager.rst into the system manual

In reply to Peter Maydell

Move the pr-manager documentation into the system manual. Some of it (the documentation of the pr-manager-helper tool) should be in tools, but we will split it up after moving it.

---
 docs/system/index.rst            | 1 +
 docs/{ => system}/pr-manager.rst | 0
 2 files changed, 1 insertion(+)
 rename docs/{ => system}/pr-manager.rst (100%)
docs/system/index.rst +1 -0
index 2a5155c67dc..e5a35817a24 100644
@@ -31,6 +31,7 @@ Contents:
    managed-startup
    cpu-hotplug
    virtio-pmem
+   pr-manager
    targets
    security
    deprecated
docs/system/pr-manager.rst renamed from docs/pr-manager.rst +0 -0
similarity index 100%
rename from docs/pr-manager.rst
rename to docs/system/pr-manager.rst
Signature · 1 line
2.20.1
Reviewed-by on v1 7/9
#15 lore raw

Re: [for-5.2 7/9] docs: Move pr-manager.rst into the system manual

Quoted 5 lines · Peter Maydell

Move the pr-manager documentation into the system manual. Some of it (the documentation of the pr-manager-helper tool) should be in tools, but we will split it up after moving it.

Signature · 1 line
Alex Bennée
#16 lore raw

PATCH 8/9 docs: Split qemu-pr-helper documentation into tools manual

In reply to Peter Maydell

Split the documentation of the qemu-pr-helper binary into the tools manual, and give it a manpage like our other standalone executables.

---
 docs/meson.build              |  1 +
 docs/system/pr-manager.rst    | 38 ++-------------
 docs/tools/conf.py            |  2 +
 docs/tools/index.rst          |  1 +
 docs/tools/qemu-pr-helper.rst | 90 +++++++++++++++++++++++++++++++++++
 5 files changed, 99 insertions(+), 33 deletions(-)
 create mode 100644 docs/tools/qemu-pr-helper.rst
docs/meson.build +1 -0
index bf8204a08fa..ebd85d59f98 100644
@@ -60,6 +60,7 @@ if build_docs
     'tools': {
         'qemu-img.1': (have_tools ? 'man1' : ''),
         'qemu-nbd.8': (have_tools ? 'man8' : ''),
+        'qemu-pr-helper.8': (have_tools ? 'man8' : ''),
         'qemu-trace-stap.1': (config_host.has_key('CONFIG_TRACE_SYSTEMTAP') ? 'man1' : ''),
         'virtfs-proxy-helper.1': (have_virtfs_proxy_helper ? 'man1' : ''),
         'virtiofsd.1': (have_virtiofsd ? 'man1' : ''),
docs/system/pr-manager.rst +5 -33
index 9b1de198b1b..3f5b9f94dcd 100644
@@ -50,39 +50,11 @@ Alternatively, using ``-blockdev``::
           -blockdev node-name=hd,driver=raw,file.driver=host_device,file.filename=/dev/sdb,file.pr-manager=helper0
           -device scsi-block,drive=hd
 
-----------------------------------
-Invoking :program:`qemu-pr-helper`
-----------------------------------
-
-QEMU provides an implementation of the persistent reservation helper,
-called :program:`qemu-pr-helper`.  The helper should be started as a
-system service and supports the following option:
-
--d, --daemon              run in the background
--q, --quiet               decrease verbosity
--v, --verbose             increase verbosity
--f, --pidfile=path        PID file when running as a daemon
--k, --socket=path         path to the socket
--T, --trace=trace-opts    tracing options
-
-By default, the socket and PID file are placed in the runtime state
-directory, for example :file:`/var/run/qemu-pr-helper.sock` and
-:file:`/var/run/qemu-pr-helper.pid`.  The PID file is not created
-unless :option:`-d` is passed too.
-
-:program:`qemu-pr-helper` can also use the systemd socket activation
-protocol.  In this case, the systemd socket unit should specify a
-Unix stream socket, like this::
-
-    [Socket]
-    ListenStream=/var/run/qemu-pr-helper.sock
-
-After connecting to the socket, :program:`qemu-pr-helper`` can optionally drop
-root privileges, except for those capabilities that are needed for
-its operation.  To do this, add the following options:
-
--u, --user=user           user to drop privileges to
--g, --group=group         group to drop privileges to
+You will also need to ensure that the helper program
+:command:`qemu-pr-helper` is running, and that it has been
+set up to use the same socket filename as your QEMU commandline
+specifies. See the qemu-pr-helper documentation or manpage for
+further details.
 
 ---------------------------------------------
 Multipath devices and persistent reservations
docs/tools/conf.py +2 -0
index 9052d17d6d4..4760d36ff2a 100644
@@ -22,6 +22,8 @@ man_pages = [
      ['Fabrice Bellard'], 1),
     ('qemu-nbd', 'qemu-nbd', u'QEMU Disk Network Block Device Server',
      ['Anthony Liguori <[email protected]>'], 8),
+    ('qemu-pr-helper', 'qemu-pr-helper', 'QEMU persistent reservation helper',
+     [], 8),
     ('qemu-trace-stap', 'qemu-trace-stap', u'QEMU SystemTap trace tool',
      [], 1),
     ('virtfs-proxy-helper', 'virtfs-proxy-helper',
docs/tools/index.rst +1 -0
index 232ce9f3e46..b99f86c7c66 100644
@@ -12,6 +12,7 @@ Contents:
 
    qemu-img
    qemu-nbd
+   qemu-pr-helper
    qemu-trace-stap
    virtfs-proxy-helper
    virtiofsd
docs/tools/qemu-pr-helper.rst new file +90 -0

90 lines not on this page · raw message

Signature · 1 line
2.20.1
#18 lore raw

PATCH 9/9 docs/system/pr-manager.rst: Fix minor docs nits

In reply to Peter Maydell

Fix a couple of nits in pr-manager.rst:
* the title marker for the top level heading is overlength
* stray capital 'R' in the middle of a sentence

---
 docs/system/pr-manager.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
docs/system/pr-manager.rst +3 -3
index 3f5b9f94dcd..b19a0c15e66 100644
@@ -1,8 +1,8 @@
-======================================
+===============================
 Persistent reservation managers
-======================================
+===============================
 
-SCSI persistent Reservations allow restricting access to block devices
+SCSI persistent reservations allow restricting access to block devices
 to specific initiators in a shared storage setup.  When implementing
 clustering of virtual machines, it is a common requirement for virtual
 machines to send persistent reservation SCSI commands.  However,
Signature · 1 line
2.20.1
#20 lore raw
In reply to Peter Maydell
Quoted 16 lines · Peter Maydell

Currently we have a handful of rST documents that are sat in the top level docs/ directory and do not get built into the manuals. These are a legacy from the period after we'd decided we wanted rST format documentation but before we'd set up the manual structure. This patchset moves them all into at least plausibly suitable places in the manual set:

* virtio-net-failover, cpu-hotplug, virtio-pmem all go into the system manual
* microvm goes into the system manual, but first we have to create a structure in target-i386.rst that lets us have a list of multiple machine types (along the pattern that target-arm.rst does)
* pr-manager.rst goes into the system manual, but the part of it documenting the qemu-pr-helper executable needs to go into the tools manual

Quoted 3 lines

If anybody who cares about the x86 machine models would like to create some documentation of the others ("q35", "isapc", "xenpv", "xenfv") you now have a place for it to live :-)

I should have read the cover letter ;-)

Anyway I also ran a build through rtd:

https://qemu-stsquad.readthedocs.io/en/docs-review/index.html

Signature · 1 line
Alex Bennée