Signed-off-by: Jan Kiszka <jan.kiszka@xxxxxxxxxxx> --- cpus.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/cpus.c b/cpus.c index c7a5dec..9b3f218 100644 --- a/cpus.c +++ b/cpus.c @@ -1199,8 +1199,6 @@ void list_cpus(FILE *f, fprintf_function cpu_fprintf, const char *optarg) #include <sys/syscall.h> -__thread CPUState *current_env; - static CPUState *kvm_debug_cpu_requested; unsigned long kvm_get_thread_id(void) @@ -1379,7 +1377,6 @@ static void *ap_main_loop(void *_env) { CPUState *env = _env; - current_env = env; env->thread_id = kvm_get_thread_id(); env->halt_cond = qemu_mallocz(sizeof(QemuCond)); @@ -1393,7 +1390,7 @@ static void *ap_main_loop(void *_env) setup_kernel_sigmask(env); /* signal VCPU creation */ - current_env->created = 1; + env->created = 1; qemu_cond_signal(&qemu_cpu_cond); /* and wait for machine initialization */ -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html