HomeFreeBSD

bhyve/snapshot: drop mkdir when creating the unix domain socket

Description

bhyve/snapshot: drop mkdir when creating the unix domain socket

Add /var/run/bhyve/ to BSD.var.dist so we don't have to call mkdir when
creating the unix domain socket for a given bhyve vm.

The path to the unix domain socket for a bhyve vm will now be
/var/run/bhyve/vmname instead of /var/run/bhyve/checkpoint/vmname

Move BHYVE_RUN_DIR from snapshot.c to snapshot.h so it can be shared
to bhyvectl(8).

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D28783

(cherry picked from commit 5ce2d4a1c2922821b9940473213c0d75469755fc)

Details

Provenance
rewAuthored on Feb 19 2021, 2:48 AM
jhbCommitted on Jan 26 2023, 6:40 PM
Reviewer
jhb
Differential Revision
D28783: bhyve/snapshot: drop mkdir when creating the unix domain socket
Parents
rG4fc5b31e2f31: libvmm: clean up vmmapi.h
Branches
Unknown
Tags
Unknown