From 321c1cb10b93b5a32b8d1299653f434ab44a8535 Mon Sep 17 00:00:00 2001 From: Jean-Christophe DUBOIS Date: Wed, 2 Sep 2009 23:59:04 +0200 Subject: [PATCH] fix vl.c compilation if CONFIG_KVM is not defined vl.c will not link if CONFIG_KVM is not defined. This patch fixes the problem. Signed-off-by: Jean-Christophe Dubois Signed-off-by: Anthony Liguori --- vl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vl.c b/vl.c index 6d535b91e81..4205fea57a1 100644 --- a/vl.c +++ b/vl.c @@ -3671,7 +3671,8 @@ static void *kvm_cpu_thread_fn(void *arg) block_io_signals(); qemu_thread_self(env->thread); - kvm_init_vcpu(env); + if (kvm_enabled()) + kvm_init_vcpu(env); /* signal CPU creation */ qemu_mutex_lock(&qemu_global_mutex); -- 2.39.5