Skip to contentSkip to conversation

fix vl.c compilation if CONFIG_KVM is not defined

PATCH New Jean-Christophe DUBOIS 1 participant 1 message Sep 2, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 vl.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
vl.c +2 -1
index 1bdc586..4188178 100644
@@ -3944,7 +3944,8 @@ static void tcg_init_vcpu(void *_env)
 
 static void kvm_start_vcpu(CPUState *env)
 {
-    kvm_init_vcpu(env);
+    if (kvm_enabled())
+        kvm_init_vcpu(env);
     env->thread = qemu_mallocz(sizeof(QemuThread));
     env->halt_cond = qemu_mallocz(sizeof(QemuCond));
     qemu_cond_init(env->halt_cond);
Signature · 1 line
1.6.0.4