summary refs log tree commit diff stats
path: root/gitlab/issues_text/target_missing/host_missing/accel_missing/1302
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/issues_text/target_missing/host_missing/accel_missing/1302')
-rw-r--r--gitlab/issues_text/target_missing/host_missing/accel_missing/130217
1 files changed, 17 insertions, 0 deletions
diff --git a/gitlab/issues_text/target_missing/host_missing/accel_missing/1302 b/gitlab/issues_text/target_missing/host_missing/accel_missing/1302
new file mode 100644
index 000000000..808f37726
--- /dev/null
+++ b/gitlab/issues_text/target_missing/host_missing/accel_missing/1302
@@ -0,0 +1,17 @@
+Per-thread logging flag must be made immutable
+Description of problem:
+The problem is that the code assumes it isn't possible to switch from global logging to per-thread logging and vice-versa per design, but it lags appropriate checks to enforce it. Enabling or disabling per-thread logging at runtime from the monitor causes unexpected results.
+Steps to reproduce:
+Enabling per-thread logging at runtime:
+
+1. Start QEMU : `./qemu-system-x86_64 -S -monitor stdio -D qemu.log.%d`
+2. Enable per-thread logging from the HMP monitor : `(qemu) log tid`
+3. Fails with `Filename template with '%d' required for 'tid'` even though such a template was passed with `-D`.
+
+Disabling per-thread logging at runtime:
+
+1. Start QEMU : `./qemu-system-x86_64 -S -monitor stdio -D qemu.log.%d -d tid,cpu_reset`
+2. Disable per-thread logging from the HMP monitor: `(qemu) log cpu_reset`
+3. QEMU creates a log file with a bogus `qemu.log.%d` name.
+Additional information:
+[Series](https://patchew.org/QEMU/20221104120059.678470-1-groug@kaod.org/) posted and already reviewed by @rth7680 .