aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Fontana <cfontana@suse.de>2020-10-16 10:00:32 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-10-17 10:45:53 -0400
commita1b0e4613006704fb02209df548ce9fde62232e0 (patch)
tree98c494e1a43bd3bb897ef7744880ae96d73eebab
parentfc69fa216cf52709b1279a592364e50c674db6ff (diff)
downloadqemu-a1b0e4613006704fb02209df548ce9fde62232e0.zip
qemu-a1b0e4613006704fb02209df548ce9fde62232e0.tar.gz
qemu-a1b0e4613006704fb02209df548ce9fde62232e0.tar.bz2
hax: unbreak accelerator cpu code after cpus.c split
during my split of cpus.c, code line "current_cpu = cpu" was removed by mistake, causing hax to break. This commit fixes the situation restoring it. Reported-by: Volker RĂ¼melin <vr_qemu@t-online.de> Fixes: e92558e4bf8059ce4f0b310afe218802b72766bc Signed-off-by: Claudio Fontana <cfontana@suse.de> Message-Id: <20201016080032.13914-1-cfontana@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--target/i386/hax-cpus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/i386/hax-cpus.c b/target/i386/hax-cpus.c
index 99770e5..f72c85b 100644
--- a/target/i386/hax-cpus.c
+++ b/target/i386/hax-cpus.c
@@ -38,6 +38,7 @@ static void *hax_cpu_thread_fn(void *arg)
qemu_thread_get_self(cpu->thread);
cpu->thread_id = qemu_get_thread_id();
+ current_cpu = cpu;
hax_init_vcpu(cpu);
cpu_thread_signal_created(cpu);
qemu_guest_random_seed_thread_part2(cpu->random_seed);