Re: [PATCH] Fix a typo in docs/formatdomain.rst

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just now took my daily look at the list and saw this patch...

On 3/5/25 11:42 AM, Ján Tomko wrote:
On a Wednesday in 2025, Yalan Zhang wrote:
Fix a typo and update the setting in the example. The documentation
explains that "when passt is the backend,...the ``<source>``
path/type/mode are all implied to be "matching the passt process"
so **must not** be specified." Additionally, this source dev setting is
ignored in practice. Therefore, let's remove it from the example to avoid any
confusion.

Signed-off-by: Yalan Zhang <yalzhang@xxxxxxxxxx>
---
docs/formatdomain.rst | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
index cbe378e61d..e84e0a0e8e 100644
--- a/docs/formatdomain.rst
+++ b/docs/formatdomain.rst
@@ -5154,7 +5154,7 @@ destined for the host toward the guest instead), and a socket between
passt and QEMU forwards that traffic on to the guest (and back out,
of course).


Oops, I have not looked at how this renders when reviewing the original
patch - that the extra characters prevent the :since: tag from working.

-*(:since:`Since 11.1.0 (QEMU and KVM only)` you may prefer to use the
+:since:`Since 11.1.0 (QEMU and KVM only)` you may prefer to use the
passt backend with the more efficient and performant type='vhostuser'
rather than type='user'. All the options related to passt in the
paragraphs below here also apply when using the passt backend with

Additional context:
  type='vhostuser'; any other details specific to vhostuser are
  described* `here
  <formatdomain.html#vhost-user-connection-with-passt-backend>`__.)

So the asterisk ending the italics and the ending parenthesis should be
removed too.

Yeah, sorry I didn't notice that the italicization not only didn't work, but also prevented the :since: tag from working. That's unfortunate - I would have preferred for that paragraph to be italicized :-/


I can squash that change in before pushing, unless someone objects
to removing the italics and parenthesis.

@@ -6378,7 +6378,6 @@ setting guest-side IP addresses with ``<ip>`` and port forwarding with
     <interface type='vhostuser'>
       <backend type='passt'/>
       <mac address='52:54:00:3b:83:1a'/>
-       <source dev='enp1s0'/>


It is correct the path/type/mode in <source> are not used or allowed for type='vhostuser', but that's not what is being set in this example - it is setting source dev, which *is* valid to set - for both flavors of passt connection the source dev is the name of the host network device passt uses when figuring out what default route to provide to the guest in its DHCP responses (and also what IP address and netmask to provide by default in the DHCP response when specific IP/netmask aren't set).

So this line should remain in the example. Please don't remove it.



       <ip address='10.30.0.5 prefix='24'/>
     </interface>
   </devices>
--

Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>


Jano




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux