hax: unbreak accelerator cpu code after cpus.c split
PATCH 1/1 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 <[email protected]>
Fixes e92558e4bf8059ce4f0b310afe218802b72766bc
Signed-off-by Claudio Fontana <[email protected]>
--- target/i386/hax-cpus.c | 1 + 1 file changed, 1 insertion(+)
target/i386/hax-cpus.c +1 -0
@@ -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);
Signature · 1 line
2.26.2
Paolo Bonzini
AppliedQuoted 19 lines · Claudio Fontana
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 <[email protected]>Fixes e92558e4bf8059ce4f0b310afe218802b72766bcSigned-off-by Claudio Fontana <[email protected]>--- target/i386/hax-cpus.c | 1 + 1 file changed, 1 insertion(+)target/i386/hax-cpus.c +0
-0
target/i386/hax-cpus.c static void *hax_cpu_thread_fn(void *arg) · line 44
Quoted 7 lines
target/i386/hax-cpus.c +1
-0@@ -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);
Queued, thanks.
Paolo
Quoted 10 lines · Claudio Fontana
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 <[email protected]>Fixes e92558e4bf8059ce4f0b310afe218802b72766bcSigned-off-by Claudio Fontana <[email protected]>
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
---
Quoted 20 lines
target/i386/hax-cpus.c | 1 + 1 file changed, 1 insertion(+)target/i386/hax-cpus.c +1
-1@@ -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); --2.26.2