[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] fix vl.c compilation if CONFIG_KVM is not defined
From: |
Jean-Christophe DUBOIS |
Subject: |
[Qemu-devel] [PATCH] fix vl.c compilation if CONFIG_KVM is not defined |
Date: |
Wed, 2 Sep 2009 23:59:04 +0200 |
vl.c will not link if CONFIG_KVM is not defined.
This patch fixes the problem.
Signed-off-by: Jean-Christophe Dubois <address@hidden>
---
vl.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/vl.c b/vl.c
index 1bdc586..4188178 100644
--- a/vl.c
+++ b/vl.c
@@ -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);
--
1.6.0.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] fix vl.c compilation if CONFIG_KVM is not defined,
Jean-Christophe DUBOIS <=