mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 00:40:07 +01:00
feat: Add QMP configuration variables (#1360)
This commit is contained in:
1 parent
8b6624cf2f
commit
cb8f440564
2 files changed
+11
-1
No files matched your search
@@ -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