Page MenuHomeFreeBSD

virtio: add introduction to virtio, document virtio.h
Needs RevisionPublic

Authored by freebsd_igalic.co on Sep 13 2023, 10:42 PM.
Tags
None
Referenced Files
F83963640: D41853.diff
Fri, May 17, 11:44 AM
Unknown Object (File)
Apr 12 2024, 11:12 AM
Unknown Object (File)
Apr 8 2024, 5:12 PM
Unknown Object (File)
Apr 8 2024, 3:16 AM
Unknown Object (File)
Mar 30 2024, 8:00 PM
Unknown Object (File)
Mar 18 2024, 4:24 AM
Unknown Object (File)
Mar 17 2024, 2:31 AM
Unknown Object (File)
Mar 17 2024, 1:00 AM

Details

Reviewers
bryanv
cperciva
mhorne
alfredo
fernape
Group Reviewers
manpages
Summary

Add an entry page for the virtio subsystem and explain how it's held
together, then describe all virtio.h functions

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 53653
Build 50544: arc lint + arc unit

Event Timeline

I'd like to first hear some feedback on language, grammar, consistency, before opening this up to the people who know the code.
But I will say this: I'm not happy with this man page.
I'd much rather virtio(9) was an intro page into the virtio APIs, but I don't know how to slice it, yet.

pstef added inline comments.
share/man/man9/virtio.9
159

Not clear to me what is supposed to be plural or possessive here.

199

buses?

240

I'd remove the however or at least move it to the beginning of the sentence.

304

buses?
I'd move See to the next line

309

reinitialization or re-initialization

313

New sentence, new line?
There are more instances of this, I'll skip some of them.

340

I'd definitely move Conversely to the next line

freebsd_igalic.co marked an inline comment as done.
freebsd_igalic.co marked 6 inline comments as done.

thank you for the review @pstef .
This update should address it.

My small take on this.

Thanks for working on this!

share/man/man9/virtio.9
62

VirtIO vs virtio in the rest of the document, including the summary.
For consistency, I would use VirtIO, since that seems to be the name of the technology/framework.

219

Avoid contractions:

it's --> it is

356

Since it is mentioned in the manual page, I'd probably add a cross reference for devmatch(8) and pci(9)

freebsd_igalic.co marked an inline comment as done.

address @fernape's review

share/man/man9/virtio.9
62

i think i do that. I only use "virtio" once, in .Xr virtio 4

share/man/man9/virtio.9
62

I was thinking in the brief initial description:

virtio kernel programming interfaces vs VirtIO kernel programming interfaces

freebsd_igalic.co marked an inline comment as done.

One additional thing: virtio.9 is not hooked to the build. Could you add it to the Makefile?

This revision is now accepted and ready to land.Sep 21 2023, 2:11 PM
fernape requested changes to this revision.Sep 21 2023, 2:12 PM
This revision now requires changes to proceed.Sep 21 2023, 2:12 PM

One additional thing: virtio.9 is not hooked to the build. Could you add it to the Makefile?

I just realized I haven't stated that anywhere in the review, only in my request for review: https://lists.freebsd.org/archives/freebsd-virtualization/2023-September/001607.html

so then: does this man page make sense in this shape or would it benefit from being split thematically?
if the latter, where should it be split?

if the former, I'll happily hook it to the Makefile, including all of its aliases.

One additional thing: virtio.9 is not hooked to the build. Could you add it to the Makefile?

I just realized I haven't stated that anywhere in the review, only in my request for review: https://lists.freebsd.org/archives/freebsd-virtualization/2023-September/001607.html

so then: does this man page make sense in this shape or would it benefit from being split thematically?
if the latter, where should it be split?

if the former, I'll happily hook it to the Makefile, including all of its aliases.

Ah, ok. I missed that, sorry.

I'm not sure we should split it.
I'm not familiar with the VirtIO API so I would like others to have a look at this :-)