Skip to content

Commit

Permalink
no need flush
Browse files Browse the repository at this point in the history
Signed-off-by: Pierrick Bouvier <[email protected]>
  • Loading branch information
pbo-linaro committed Nov 28, 2024
1 parent 06d6c38 commit 1d4efb9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions plugins/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,18 +267,6 @@ static void qemu_plugin_vcpu_init__async(CPUState *cpu, run_on_cpu_data unused)
assert(cpu->cpu_index != UNASSIGNED_CPU_INDEX);
qemu_rec_mutex_lock(&plugin.lock);

/*
* We want to flush tb when a second cpu appear.
* When generating plugin code, we optimize cpu_index for num_vcpus == 1.
*/
if (plugin.num_vcpus == 1) {
qemu_rec_mutex_unlock(&plugin.lock);
start_exclusive();
qemu_rec_mutex_lock(&plugin.lock);
tb_flush(cpu);
end_exclusive();
}

plugin.num_vcpus = MAX(plugin.num_vcpus, cpu->cpu_index + 1);
plugin_cpu_update__locked(&cpu->cpu_index, NULL, NULL);
success = g_hash_table_insert(plugin.cpu_ht, &cpu->cpu_index,
Expand Down

0 comments on commit 1d4efb9

Please sign in to comment.