Only open /dev/vmm once in vmd(8).
authordv <dv@openbsd.org>
Sat, 14 Jan 2023 20:55:55 +0000 (20:55 +0000)
committerdv <dv@openbsd.org>
Sat, 14 Jan 2023 20:55:55 +0000 (20:55 +0000)
commit2748f5e225ff2609bc6086a165874a65b38b1a20
tree747930dbfc8331ef3a510611718db0942470f086
parentd4e23fe7544b01187ebf3ac8ae32e955445ee666
Only open /dev/vmm once in vmd(8).

Have the parent process open /dev/vmm and send the fd to the vmm
child process. Only the vmm process and its resulting children
(guest vms) need it for ioctl calls.

ok kn@
usr.sbin/vmd/vmd.c
usr.sbin/vmd/vmd.h
usr.sbin/vmd/vmm.c