]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
accel/mshv: initialize thread name
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Oct 2025 12:52:48 +0000 (14:52 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 28 Oct 2025 13:50:06 +0000 (14:50 +0100)
The initialization was dropped when the code was copied from existing
accelerators.  Coverity knows (CID 1641400).  Fix it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/mshv/mshv-all.c

index 45174f7c4eba08134a4021f504a9d25047da9ef1..80428d130d5202391a50f7dc55560aa2018ad086 100644 (file)
@@ -596,6 +596,9 @@ static void mshv_start_vcpu_thread(CPUState *cpu)
 {
     char thread_name[VCPU_THREAD_NAME_SIZE];
 
+    snprintf(thread_name, VCPU_THREAD_NAME_SIZE, "CPU %d/MSHV",
+             cpu->cpu_index);
+
     cpu->thread = g_malloc0(sizeof(QemuThread));
     cpu->halt_cond = g_malloc0(sizeof(QemuCond));