diff options
author | Jean-Christophe DUBOIS <jcd@tribudubois.net> | 2009-09-02 23:59:04 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-09-09 14:57:21 -0500 |
commit | 321c1cb10b93b5a32b8d1299653f434ab44a8535 (patch) | |
tree | b1e60923419cb9c6b4d5b191f44fb8ac6c7daf19 | |
parent | 4d224196614a005b519682b3eaff312ec71b5b97 (diff) | |
download | qemu-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>
-rw-r--r-- | vl.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |