From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: missing ifdef Date: Thu, 13 Nov 2008 10:54:17 +0200 Message-ID: <20081113085417.GJ20617@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: avi@redhat.com Return-path: Received: from mx2.redhat.com ([66.187.237.31]:56904 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751206AbYKMIyI (ORCPT ); Thu, 13 Nov 2008 03:54:08 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mAD8s7jR019194 for ; Thu, 13 Nov 2008 03:54:07 -0500 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Gleb Natapov diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c index 9a5a1b6..80c29a3 100644 --- a/qemu/qemu-kvm.c +++ b/qemu/qemu-kvm.c @@ -454,9 +454,11 @@ static void *ap_main_loop(void *_env) kvm_create_vcpu(kvm_context, env->cpu_index); kvm_qemu_init_env(env); +#ifdef USE_KVM_DEVICE_ASSIGNMENT /* do ioperm for io ports of assigned devices */ LIST_FOREACH(data, &ioperm_head, entries) on_vcpu(env, kvm_arch_do_ioperm, data); +#endif /* signal VCPU creation */ pthread_mutex_lock(&qemu_mutex); -- Gleb.