mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-08-28 11:56:03 +00:00
feat: Add QMP configuration variables (#1360)
This commit is contained in:
@@ -98,3 +98,5 @@ An empty default means the variable is unset and its value is determined automat
|
||||
| `DEBUG` | `N` | Enables verbose debug output. |
|
||||
| `TRACE` | `N` | Enables shell command tracing. |
|
||||
| `HOST_DEBUG` | `N` | Enables debug output for the DSM host helper. |
|
||||
| `MONITOR` | | QEMU monitor configuration. |
|
||||
| `QMP` | | QEMU Machine Protocol configuration. |
|
||||
|
||||
+9
-1
@@ -1,6 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
: "${QMP:=""}"
|
||||
: "${MONITOR:=""}"
|
||||
|
||||
DEF_OPTS="-nodefaults -boot strict=on"
|
||||
DEV_OPTS=""
|
||||
|
||||
@@ -23,8 +26,13 @@ configureMemory() {
|
||||
|
||||
configureMonitor() {
|
||||
|
||||
MON_OPTS="-name $PROCESS,process=$PROCESS,debug-threads=on"
|
||||
MON_OPTS=""
|
||||
[ -n "$QMP" ] && MON_OPTS+=" -qmp $QMP"
|
||||
[ -n "$MONITOR" ] && MON_OPTS+=" -monitor $MONITOR"
|
||||
|
||||
MON_OPTS+=" -name $PROCESS,process=$PROCESS,debug-threads=on"
|
||||
MON_OPTS+=" -pidfile $QEMU_PID"
|
||||
MON_OPTS="${MON_OPTS# }"
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user