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:
parent
1b21518f73
commit
2cd3c1d35a
1 changed files with 3 additions and 0 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue