Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MixrJ-0001y5-7b for qemu-devel@nongnu.org; Wed, 02 Sep 2009 17:59:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MixrE-0001w9-LT for qemu-devel@nongnu.org; Wed, 02 Sep 2009 17:59:17 -0400 Received: from [199.232.76.173] (port=60908 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MixrE-0001w6-Fq for qemu-devel@nongnu.org; Wed, 02 Sep 2009 17:59:12 -0400 Received: from smtp6-g21.free.fr ([212.27.42.6]:35176) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MixrD-0007Sx-RU for qemu-devel@nongnu.org; Wed, 02 Sep 2009 17:59:12 -0400 From: Jean-Christophe DUBOIS Date: Wed, 2 Sep 2009 23:59:04 +0200 Message-Id: <1251928744-404-1-git-send-email-jcd@tribudubois.net> Subject: [Qemu-devel] [PATCH] fix vl.c compilation if CONFIG_KVM is not defined List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jean-Christophe DUBOIS vl.c will not link if CONFIG_KVM is not defined. This patch fixes the problem. Signed-off-by: Jean-Christophe Dubois --- 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