From: Jean-Christophe DUBOIS Date: Wed, 2 Sep 2009 21:59:04 +0000 (+0200) Subject: fix vl.c compilation if CONFIG_KVM is not defined X-Git-Tag: v0.12.0-rc0~1242 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=321c1cb10b93b5a32b8d1299653f434ab44a8535;p=thirdparty%2Fqemu.git 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 --- 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);