[doc] kvmfr/libvirt: change double quotes to single quotes

virt-manager (or libvirt itself) tends to preserve outer quotation marks but explode inner double-quotes into '&quot' which is annoying.

this looks nicer when pasted into the XML editor and applied

Also used double-quotes for the QEMU <6.2 example for consistency

PS: added myself to AUTHORS since this is my first contribution
This commit is contained in:
majcosta 2024-06-01 20:08:55 -03:00 committed by Geoffrey McRae
parent 695cbc2d61
commit d21bdebc52
2 changed files with 10 additions and 9 deletions

View File

@ -69,3 +69,4 @@ MakiseKurisu <saberconer@gmail.com> (MakiseKurisu)
Zenithal <i@zenithal.me> (ZenithalHourlyRate) Zenithal <i@zenithal.me> (ZenithalHourlyRate)
Kamplom <6284968128@protonmail.ch> (kamplom) Kamplom <6284968128@protonmail.ch> (kamplom)
Jacob McNamee <jacob@jacobmcnamee.com> (jacobmcnamee) Jacob McNamee <jacob@jacobmcnamee.com> (jacobmcnamee)
Marco Antonio J. Costa <marco.antonio.costa@gmail.com> (majcosta)

View File

@ -157,15 +157,15 @@ should use this XML block to configure their VM for kvmfr:
.. code:: xml .. code:: xml
<qemu:commandline> <qemu:commandline>
<qemu:arg value='-device'/> <qemu:arg value="-device"/>
<qemu:arg value='{"driver":"ivshmem-plain","id":"shmem0","memdev":"looking-glass"}'/> <qemu:arg value="{'driver':'ivshmem-plain','id':'shmem0','memdev':'looking-glass'}"/>
<qemu:arg value='-object'/> <qemu:arg value="-object"/>
<qemu:arg value='{"qom-type":"memory-backend-file","id":"looking-glass","mem-path":"/dev/kvmfr0","size":33554432,"share":true}'/> <qemu:arg value="{'qom-type':'memory-backend-file','id':'looking-glass','mem-path':'/dev/kvmfr0','size':33554432,'share':true}"/>
</qemu:commandline> </qemu:commandline>
.. note:: .. note::
- The ``"size"`` tag represents the size of the shared memory device in - The ``'size'`` tag represents the size of the shared memory device in
bytes. Once you determine the proper size of the device as per bytes. Once you determine the proper size of the device as per
:ref:`Determining Memory <libvirt_determining_memory>`, use the figure you :ref:`Determining Memory <libvirt_determining_memory>`, use the figure you
got to calculate the size in bytes: got to calculate the size in bytes:
@ -178,10 +178,10 @@ legacy syntax for IVSHMEM setup:
.. code:: xml .. code:: xml
<qemu:commandline> <qemu:commandline>
<qemu:arg value='-device'/> <qemu:arg value="-device"/>
<qemu:arg value='ivshmem-plain,id=shmem0,memdev=looking-glass'/> <qemu:arg value="ivshmem-plain,id=shmem0,memdev=looking-glass"/>
<qemu:arg value='-object'/> <qemu:arg value="-object"/>
<qemu:arg value='memory-backend-file,id=looking-glass,mem-path=/dev/kvmfr0,size=32M,share=yes'/> <qemu:arg value="memory-backend-file,id=looking-glass,mem-path=/dev/kvmfr0,size=32M,share=yes"/>
</qemu:commandline> </qemu:commandline>
.. note:: .. note::