aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorJean-Christophe DUBOIS <jcd@tribudubois.net>2009-09-02 23:59:04 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-09 14:57:21 -0500
commit321c1cb10b93b5a32b8d1299653f434ab44a8535 (patch)
treeb1e60923419cb9c6b4d5b191f44fb8ac6c7daf19 /vl.c
parent4d224196614a005b519682b3eaff312ec71b5b97 (diff)
downloadqemu-321c1cb10b93b5a32b8d1299653f434ab44a8535.zip
qemu-321c1cb10b93b5a32b8d1299653f434ab44a8535.tar.gz
qemu-321c1cb10b93b5a32b8d1299653f434ab44a8535.tar.bz2
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>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 6d535b9..4205fea 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);