edfb339d38
Switch to using an nvlist with nvlist_send()/nvlist_recv() to communicate from bhyvectl(8) to bhyve(8). The idea is that a bhyve process receives a command with with a set of arguments. The nvlist here is structured to reflect that premise. For example, to snapshot the vm, the expected nvlist looks like: { cmd=START_CHECKPOINT, filename="filename" } Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D33977
29 lines
402 B
Makefile
29 lines
402 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG= bhyvectl
|
|
SRCS= bhyvectl.c
|
|
PACKAGE= bhyve
|
|
|
|
MAN= bhyvectl.8
|
|
|
|
LIBADD= vmmapi util
|
|
|
|
WARNS?= 3
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/amd64/vmm
|
|
|
|
.if ${MK_BHYVE_SNAPSHOT} != "no"
|
|
LIBADD+= nv
|
|
CFLAGS+= -DBHYVE_SNAPSHOT
|
|
|
|
# usr.sbin/bhyve/snapshot.h needs ucl header
|
|
CFLAGS+= -I${SRCTOP}/contrib/libucl/include
|
|
CFLAGS+= -I${SRCTOP}/usr.sbin/bhyve
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|