From: Claudio Fontana Date: Fri, 16 Oct 2020 08:00:32 +0000 (+0200) Subject: hax: unbreak accelerator cpu code after cpus.c split X-Git-Tag: qemu-xen-4.16.0-rc4~570^2~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a1b0e4613006704fb02209df548ce9fde62232e0;p=qemu-xen.git 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 Fixes: e92558e4bf8059ce4f0b310afe218802b72766bc Signed-off-by: Claudio Fontana Message-Id: <20201016080032.13914-1-cfontana@suse.de> Signed-off-by: Paolo Bonzini --- diff --git a/target/i386/hax-cpus.c b/target/i386/hax-cpus.c index 99770e590c..f72c85bd49 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);