From: Paolo Bonzini Date: Wed, 22 Oct 2025 12:52:48 +0000 (+0200) Subject: accel/mshv: initialize thread name X-Git-Tag: v10.2.0-rc1~40^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2cd3c1d35a06a62b25afa80c5baf381ce4b56805;p=thirdparty%2Fqemu.git accel/mshv: initialize thread name The initialization was dropped when the code was copied from existing accelerators. Coverity knows (CID 1641400). Fix it. Signed-off-by: Paolo Bonzini --- diff --git a/accel/mshv/mshv-all.c b/accel/mshv/mshv-all.c index 45174f7c4e..80428d130d 100644 --- a/accel/mshv/mshv-all.c +++ b/accel/mshv/mshv-all.c @@ -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));