Re: kern/59165: vio9p(4): expose tag through sysctl or device properties

"Greg A. Woods" <[email protected]>
Newsgroups gmane.os.netbsd.current,gmane.os.netbsd.devel.kernel
Organization Planix, Inc.
Message-ID <[email protected]>
I was looking into when and why vio9p(4) started working (on amd64 I
have it working in 10.99.12, as of early April) and I ran into mention
of a sysctl to see the tag names, and then I found PR#59165.

There's no mention of this sysctl node in the viop(4) manual page
though, nor in sysctl(7) (though I wouldn't expect it in the latter).

I see the code is there in sys/dev/pci/vio9p.c, but it doesn't seem to
work for me:


$ uname -a
NetBSD nbt2.local 10.99.12 NetBSD 10.99.12 (GENERIC) #1: Tue Apr  8 14:29:37 PDT 2025  [email protected]:/Users/woods/build/woods/very.local/trunk-x86_64-amd64-obj/Volumes/work/woods/g-NetBSD-src/sys/arch/amd64/compile/GENERIC amd64
$ /sbin/modstat | fgrep vio9p
vio9p                      driver   builtin  -        0       - virtio
$ fgrep vio9p /var/run/dmesg.boot
vio9p0 at virtio3: features: 0x10000001<INDIRECT_DESC,MOUNT_TAG>
virtio3: allocated 24576 byte for virtqueue 0 for vio9p, size 128
vio9p0: tagged as share
$ /sbin/sysctl hw.vio9p
sysctl: second level name 'vio9p' in 'hw.vio9p' is invalid
$ /sbin/sysctl -a | fgrep vio9p
kern.drivers = [[...]], [356 -1 vio9p], [[...]]

I think the code looks right, and given I see the output of the device
printf that's executed right above that code, well....

For the record I'm running this under QEMU, with UTM, on macOS(i386),
and accessing the shared directory via 9p is working very well.

Is anyone else who might be using vio9p(4) seeing this sysctl node?

--
					Greg A. Woods <[email protected]>

Kelowna, BC     +1 250 762-7675           RoboHack <[email protected]>
Planix, Inc. <[email protected]>     Avoncote Farms <[email protected]>
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRuK6dmwVAucmRxuh9mfXG3eL/0fwUCaSZaQQAKCRBmfXG3eL/0
fwiBAKCA9CpvBt2i9YggIkscw2/G03UuOgCePiWy8kG71pZrOqGMljfSfsy4h+A=
=oA6C
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.