summaryrefslogtreecommitdiff
path: root/usr.sbin/vmd/vmd.h
diff options
context:
space:
mode:
authorDave Voutila <dv@cvs.openbsd.org>2023-07-27 09:27:44 +0000
committerDave Voutila <dv@cvs.openbsd.org>2023-07-27 09:27:44 +0000
commitd12474bf2035d60b0a637dd6a4c918ae74c6cbd5 (patch)
treebf409cbdfac0b5191d5d9f91c4f6141a5f06877d /usr.sbin/vmd/vmd.h
parenteeed7657b91120978a2e2b31d7eacad67ae19e50 (diff)
vmd(8): fix verbose logging in child processes.
The introduction of exec for vm's and fork+exec for virtio block and network devices missed passing the log verbosity in argv. Add the "-v" arguments based on current vverbosity at time of exec. ok brynet@, mlarkin@
Diffstat (limited to 'usr.sbin/vmd/vmd.h')
-rw-r--r--usr.sbin/vmd/vmd.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/vmd/vmd.h b/usr.sbin/vmd/vmd.h
index 744b8d19574..19995e951c7 100644
--- a/usr.sbin/vmd/vmd.h
+++ b/usr.sbin/vmd/vmd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmd.h,v 1.123 2023/07/13 18:31:59 dv Exp $ */
+/* $OpenBSD: vmd.h,v 1.124 2023/07/27 09:27:43 dv Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -102,6 +102,10 @@
/* Unique local address for IPv6 */
#define VMD_ULA_PREFIX "fd00::/8"
+/* Verbosity arguments for use when caling execvp(2). */
+#define VMD_VERBOSE_1 "-v";
+#define VMD_VERBOSE_2 "-vv";
+
enum imsg_type {
IMSG_VMDOP_START_VM_REQUEST = IMSG_PROC_MAX,
IMSG_VMDOP_START_VM_CDROM,