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 <jcd@tribudubois.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Jean-Christophe DUBOIS 2009-09-02 23:59:04 +02:00 committed by Anthony Liguori
parent 4d22419661
commit 321c1cb10b
1 changed files with 2 additions and 1 deletions

3
vl.c
View File

@ -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);