|
From: | Paolo Bonzini |
Subject: | Re: [PATCH v3 2/5] softmmu/cpus: Free cpu->thread in generic_destroy_vcpu_thread() |
Date: | Wed, 23 Mar 2022 15:43:21 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 |
On 3/21/22 15:14, Mark Kanda wrote:
diff --git a/accel/tcg/tcg-accel-ops.c b/accel/tcg/tcg-accel-ops.c index ea7dcad674..527592c4d7 100644 --- a/accel/tcg/tcg-accel-ops.c +++ b/accel/tcg/tcg-accel-ops.c @@ -94,6 +94,7 @@ void tcg_handle_interrupt(CPUState *cpu, int mask)static void tcg_accel_ops_init(AccelOpsClass *ops){ + ops->destroy_vcpu_thread = generic_destroy_vcpu_thread; if (qemu_tcg_mttcg_enabled()) { ops->create_vcpu_thread = mttcg_start_vcpu_thread; ops->kick_vcpu_thread = mttcg_kick_vcpu_thread;
This should not be done for the icount case, where there is only one thread. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |