CVS: cvs.openbsd.org: src

Dave Voutila <[email protected]>
Newsgroups gmane.os.openbsd.cvs
Message-ID <[email protected]>
CVSROOT:	/cvs
Module name:	src
Changes by:	[email protected]	2026/07/17 07:09:18

Modified files:
	usr.sbin/vmd   : priv.c virtio.c vm.c vmd.c vmd.h vmm.c 

Log message:
vmd(8): disambiguate fd variable naming

Split out fd tracking in the global "struct vmd" instance with
explicit names to not reuse the same one for storing semantically
different fds. Some vmd processes were using .vmd_fd to track the
open /dev/vmm while another used it for a socket(2) instance for
ioctls. This makes it hard to reason about and future changes
harder to review.

No intended behavioral change.

Testing help from Mischa Peters.

ok @hshoexer
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.