mirror of
				https://gitlab.com/qemu-project/qemu.git
				synced 2025-10-30 07:57:14 +08:00 
			
		
		
		
	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 <pbonzini@redhat.com>
This commit is contained in:
		| @ -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)); | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Paolo Bonzini
					Paolo Bonzini